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
[user] | |
name = granbom | |
email = [email protected] | |
[credential] | |
helper = cache --timeout=3600 | |
[push] | |
default = simple |
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/sudoers.d/90-init-users | |
pg ALL=(ALL) NOPASSWD:ALL | |
sudo apt install build-essential | |
sudo apt install git | |
git config --global user.name "John Doe" | |
git config --global user.email [email protected] | |
* ruby and gem | |
https://github.com/rvm/ubuntu_rvm |
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
rsync -r -e "ssh" --progress ~/repos/granbom.se/_site/ cloud:/var/www/granbom/_site |
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
server { | |
listen 80; | |
server_name example.com www.example.com; | |
access_log off; | |
return 301 https://example.com$request_uri; | |
} | |
server { | |
listen 443 ssl; |
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
certbot certonly --webroot -w /var/www/example/ -d www.example.com -d example.com | |
certbot certonly --webroot -w /var/www/example/ -d example.com -d www.example.com --post-hook="service nginx reload" | |
certbot certificates | |
# windows | |
certbot certonly --manual --preferred-challenges http -d example.com -d www.example.com | |
openssl pkcs12 -inkey privkey.pem -in cert.pem -in fullchain.pem -export -out example.pfx |
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
-o %(series)s.s%(season_number)02de%(episode_number)02d.%(title)s.%(height)sp-%(id)s.%(ext)s | |
-f 'bestvideo[height<=720]+bestaudio/best[height<=720]' | |
--restrict-filenames |
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
dotnet publish -f netcoreapp2.0 -c Release |
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
C:\Windows\System32\shutdown.exe /s /t 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
# It's most likely because Citrix Receiver only include a few root certs | |
# and the server you are connecting to is not using one of these. | |
# To map more root certs to Citrix Receiver in Ubuntu do this: | |
sudo ln -s /usr/share/ca-certificates/mozilla/* /opt/Citrix/ICAClient/keystore/cacerts/ | |
sudo c_rehash /opt/Citrix/ICAClient/keystore/cacerts/ |
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
# to=timestamp | |
ffmpeg -i input -ss 00:01:00 -to 00:02:00 output | |
# t=duration | |
ffmpeg -i input -ss 00:01:00 -t 00:02:00 output | |
# concat | |
ffmpeg -i "concat:input1.ts|input2.ts|input3.ts" -c copy output.ts | |
# convert all files in dir from srt to vtt |
OlderNewer