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
White='\033[1;37m' | |
Black='\033[0;30m' | |
DarkGray='\033[1;30m' | |
Red='\033[0;31m' | |
Green='\033[0;32m' | |
Blue='\033[0;34m' | |
Purple='\033[0;35m' | |
Cyan='\033[0;36m' | |
Yellow='\033[1;33m' | |
Orange='\033[0;33m' |
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
# docker-compose --file docker-registry-compose.yml --log-level DEBUG up --detach --build | |
registry: | |
restart: always | |
image: registry:2 | |
ports: | |
- 8150:5000 | |
volumes: | |
- /home/docker/:/var/lib/registry |
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
# 1 | |
Get-WmiObject -Class Win32_UserAccount | |
# Sample result: | |
#2 | |
Get-LocalGroupMember -name users | |
# Sample result: | |
#3 | |
Get-LocalUser |
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
# Download youtube playlist | |
youtube-dl -o "d:/download/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" -f "best[width>=1080][ext=mp4]" https://www.youtube.com/playlist?list=PL-something |
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-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) |
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
publi class Project | |
{ | |
public void DoScrum() | |
{ | |
Developers.ForEach(dev => | |
{ | |
if(dev.IsMe) | |
{ | |
Talking.Start(() => { | |
if(NothingFurtherToSay |
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
# Windows Server 2008+ or Windows Vista+ | |
netsh advfirewall firewall set rule group="remote desktop" new enable=Yes |
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
ng new general-app --verbose --skip-tests --directory app --style less --routing |
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
class JsonSerializationProgram | |
{ | |
static void Main(string[] args) | |
{ | |
var person = new Person | |
{ | |
firstName = "John", | |
lastName = "Doe", | |
dateOfBirth = new MyDate | |
{ |