git checkout -b otherrepo-master mastergit pull https://github.com/otherrepo/my-repo-name.git master| /// <summary> | |
| /// This class provides information about the running application. | |
| /// </summary> | |
| public static class ApplicationInfo | |
| { | |
| private static readonly Lazy<string> _productName = new Lazy<string>(GetProductName); | |
| private static readonly Lazy<string> _version = new Lazy<string>(GetVersion); | |
| private static readonly Lazy<string> _company = new Lazy<string>(GetCompany); | |
| private static readonly Lazy<string> _copyright = new Lazy<string>(GetCopyright); | |
| private static readonly Lazy<string> _applicationPath = new Lazy<string>(GetApplicationPath); |
| using System; | |
| using System.Runtime.Remoting; | |
| using System.Runtime.Remoting.Channels; | |
| using System.Runtime.Remoting.Channels.Ipc; | |
| using System.Threading; | |
| namespace SingleInstance | |
| { | |
| class Program | |
| { |
| using UnityEngine; | |
| [RequireComponent( typeof(Camera) )] | |
| public class FlyCamera : MonoBehaviour { | |
| public float acceleration = 50; // how fast you accelerate | |
| public float accSprintMultiplier = 4; // how much faster you go when "sprinting" | |
| public float lookSensitivity = 1; // mouse look sensitivity | |
| public float dampingCoefficient = 5; // how quickly you break to a halt after you stop your input | |
| public bool focusOnEnable = true; // whether or not to focus and lock cursor immediately on enable |
| #include <Windows.h> | |
| #include <stdio.h> | |
| #define GAME_DIR L"D:\\Games\\Genshin Impact\\Genshin Impact game" | |
| #define DLL_PATH "C:\\Users\\Khang\\source\\repos\\mhynot2-rewritten\\x64\\Debug\\mhynot2-rewritten.dll" | |
| int main() { | |
| printf("hi\n"); | |
| SetCurrentDirectoryW(GAME_DIR); |
| ### Basic ### | |
| # The directory to store the downloaded file. | |
| dir=${HOME}/Downloads | |
| # Downloads the URIs listed in FILE. | |
| input-file=${HOME}/.aria2/aria2.session | |
| # Save error/unfinished downloads to FILE on exit. | |
| save-session=${HOME}/.aria2/aria2.session | |
| # Save error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits. Default: 0 | |
| save-session-interval=60 | |
| # Set the maximum number of parallel downloads for every queue item. See also the --split option. Default: 5 |
adb is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
To get the list of your installed applications:
This is a PoC for running PM2 as a Windows Service under the Local Service account instead of the Local System account.
pm2 or pm2-windows-service installed yet. (The Powershell script will run npm i)
pm2-service-uninstall before running this scriptnpm and npm-cache global folders should be somewhere accessible to NT AUTHORITY\LocalService.
wpasupplicantsudo nmcli radio wifi onsudo iwconfigsudo iwlist wlp3s0 scannetplan by dropping a file called 01-netcfg.yaml into /etc/netplan/ or edit existing file there. See example below.netplan try, netplan generate, netplan apply.