Find it here: https://github.com/ikatyang/emoji-cheat-sheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance, Force | |
SendMode Input | |
SetWorkingDir, %A_ScriptDir% | |
; Hotkeys | |
; if a single line, no need for a return at the end | |
; if multiple lines, use a return at the end of each line | |
#K::Run, ms-settings:connecteddevices ; Win+K - Open Windows Bluetooth Devices |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This function creates a folder and cd into it | |
function mcd { | |
param ( | |
[Parameter(Mandatory = $true)] | |
[string]$folderName | |
) | |
New-Item -ItemType Directory -Force -Path $folderName | |
Set-Location -Path $folderName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Activate a Python Virtual Environment | |
Function vea { | |
Get-ChildItem activate.ps1 -Recurse -Depth 2 | % { $_.FullName } | Invoke-Expression | |
} | |
## Deactivate a Python Virtual Environment | |
Function ved { | |
Invoke-Expression "deactivate -nondestructive" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set a user environment variable in PowerShell | |
setx MACHINE Brand1 | |
# echo $env:MACHINE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This command requires gh cli to be installed | |
OWNERORG="test" | |
REPOSITORY="test" | |
GHUSERNAME="test" | |
gh api repos/$OWNERORG/$REPOSITORY/collaborators/$USERNAME/permission | jq '.permission' -r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var addressSpace = [ | |
'10.0.0.0/22' | |
] | |
var subnets = [ | |
{ | |
name: 'test1' | |
subnetPrefix: '10.0.3.0/26' | |
} | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rasphone "<INSERT-YOUR-VPN-CONNECTION-NAME>" | |
$wshell = New-Object -ComObject wscript.shell; | |
$wshell.AppActivate('Network Connections') | |
Sleep 2 | |
$wshell.SendKeys('~') | |
Sleep 2 | |
$wshell.SendKeys('~') |
NewerOlder