# Template .NET Core build # This template allows you to validate your .NET Core package. # The workflow allows running tests and code linting on the default branch. # To run your pipeline on a Windows machine, create a self-hosted Windows runner. # For instructions on setting up a […]
Music
Github Action Runners
Add new self-hosted runner · Adding a self-hosted runner requires that you download, configure, and execute the GitHub Actions Runner. By downloading and configuring the GitHub Actions Runner, you agree to the GitHub Terms of Service or GitHub Corporate Terms of Service, as applicable. Runner image macOS Linux Windows Architecture […]
Linux change lid closure behaviour
/etc/systemd/logind.conf HandleLidSwitch=lock – lock when lid closed HandleLidSwitch=ignore = do nothing HandleLidSwitch=poweroff – shutdown HandleLidSwitch=hibernate – hibernate ubuntu restart machine
Umbraco Api
Important for Api Creation Links: Good using Umbraco.Web.Mvc; // Allows to use – [PluginController(“AwesomeProducts”)] using System.Web.Http; [HttpGet] public IEnumerable<string> Posts() { return new[] { “Post 1″,”Post 2″,”Post 3” }; } Good one todo: using System; using System.Collections.Generic; using Umbraco.Web.Mvc; using System.Web.Http; using Umbraco.Web.WebApi; namespace Prodo.HousingSolutions.Web.Controllers.Api.Test { // Umbraco/AwesomeProducts/PostsApi/Test [PluginController(“AwesomeProducts”)] public […]
Create a sample .NET project
Create a sample .NET project To set up a .NET project to work with dependencies, we’ll use Visual Studio Code. Visual Studio Code includes an integrated terminal, which makes creating a new project easy. If you don’t want to use another code editor, you can run the commands in this […]
String to date and DateTime
Converting the string to Date and DateTime uses several functions/methods like strtotime(), getDate(). We will see what these functions do. strtotime() – This is basically a function which returns the number of seconds passed since Jan 1, 1970, just like a linux machine timestamp. It returns the number of seconds […]
Migration helper – Search
User Friendly Download Search Replace DB v 4.1.1 here. Use it carefully! If you have compatibility problems or are running on an older server for whatever reason, then please use v 3.1.0 Made by interconnect/it CLI Utility curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar chmod +x wp-cli.phar sudo mv wp-cli.phar /usr/bin/wp-cli sudo -u www-data php wp-cli search-replace “https://www.justcartridges.com” […]