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
#!/bin/sh | |
HOMENETWORK="192.168.100.0/24" | |
HOMENETIF="eth0" | |
HOMEVPNIF="tun0" | |
iptables --flush | |
# default policy | |
iptables -P INPUT DROP |
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
cd "C:\Program Files\Oracle\VirtualBox" | |
VBoxManage modifyhd <path to vdi image> --resize <new size in mb> |
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
ClientAliveInterval 360 | |
ClientAliveCountMax 0 | |
PermitEmptyPasswords no | |
PermitRootLogin no | |
Protocol 2 | |
Port 3089 | |
PasswordAuthentication no | |
AuthenticationMethods publickey | |
PubkeyAuthentication yes | |
IgnoreRhosts 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
#/etc/network/interfaces | |
auto eth0 | |
iface eth0 inet static | |
address 192.168.100.101 | |
netmask 255.255.255.0 | |
network 192.168.100.0 | |
broadcast 192.168.100.255 | |
gateway 192.168.100.1 | |
dns-nameservers 1.1.1.1 1.0.0.1 |
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
# Install needed packages | |
sudo apt install cifs-utils | |
# Add a mount line to /etc/fstab | |
//<ip>/<share> <mount point> cifs credentials=<credentials file>,uid=<user id>,gid=<group id>,vers=2.0 0 0 |
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
; Start Program | |
; If Program is already started, maximize and focus its window. | |
; If Program is started but minimized, maximize it. | |
; If Program is not started, start it. | |
ActivateProgram(name, executable, path) | |
{ | |
Process,Exist,%executable% | |
If Errorlevel != 0 ;Errorlevel returns pid of process | |
{ |
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 IP-address | |
New-NetIPAddress -InterfaceAlias "Ethernet" -IPAddress "192.168.1.200" -AddressFamily IPv4 -PrefixLength 24 -DefaultGateway 192.168.1.1 | |
# Set DNS server | |
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses 1.1.1.1,1.0.0.1 | |
# Allow remote connections | |
Set-Item WSMAN:\localhost\Client\TrustedHosts -value RemoteComputerName -force | |
# Create AD forest |
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
<# | |
.SYNOPSIS | |
Replace tokens in a file with values. | |
.DESCRIPTION | |
Finds tokens in a given file and replace them with values. It is best used to replace configuration values in a release pipeline. | |
.PARAMETER InputFile | |
The file containing the tokens. |
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
# Auto-detect text files | |
* text=auto eol=lf | |
# Whitespace exclusions | |
*.txt whitespace=-blank-at-eof,-space-before-tab,-tab-in-indent,trailing-space,tabwidth=2 | |
*.md whitespace=-blank-at-eof,-space-before-tab,-tab-in-indent,trailing-space,tabwidth=2 | |
*.js whitespace=-blank-at-eof,-space-before-tab,-tab-in-indent,trailing-space,tabwidth=2 | |
*.ts whitespace=-blank-at-eof,-space-before-tab,-tab-in-indent,trailing-space,tabwidth=2 | |
*.json whitespace=-blank-at-eof,-space-before-tab,-tab-in-indent,trailing-space,tabwidth=2 |
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
{ | |
"scripts": { | |
"postinstall": "husky install" | |
}, | |
"devDependencies": { | |
"@commitlint/cli": "^11.0.0", | |
"@commitlint/config-conventional": "^11.0.0", | |
"husky": "^4.3.5" | |
}, | |
"commitlint": { |
OlderNewer