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 8080; | |
server_name proxy; | |
location / { | |
resolver 8.8.8.8; | |
proxy_set_header Accept-Encoding ""; | |
proxy_pass http://xkcd.com$uri$is_args$args; | |
} | |
} |
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
# https://www.virtualbox.org/manual/ch04.html#idp54739648 | |
# http://www.turnkeylinux.org/docs/virtualbox-guest-addons | |
apt-get install dkms | |
# Insert Guest Additions CD image... | |
sudo mount /dev/cdrom /mnt | |
cd /mnt | |
sudo ./VBoxLinuxAdditions.run | |
# Restart | |
xrandr |
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
# Choco | |
# https://www.howtogeek.com/224342/how-to-clean-install-windows-10/ | |
# https://www.howtogeek.com/216751/bloatware-banished-windows-10-eliminates-the-need-to-ever-reinstall-windows-on-new-pcs/ | |
# Useful scripts: | |
# https://github.com/CADbloke/BoxStarter/blob/master/CADbloke-Boxstarter-Dev.ps1 | |
# https://github.com/CADbloke/BoxStarter/blob/master/CADbloke-Boxstarter.ps1 | |
## Install |
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
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime | |
open ~/.bash_profile | |
sublime . |
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
import java.io.File | |
if (args.size < 2) { | |
println("This script transforms a .properties file in different formats.") | |
println("Please provide arguments: <file> <mode>") | |
println("Modes:") | |
println(" - environment: Print out properties in a Docker Compose environment attribute format") | |
println(" - env-file: Print out properties in a Docker Compose environment file attribute format") | |
println(" - configmap: Print out properties in a Kubernetes Configmap (YAML) format") | |
println(" - adoc-table: Print out an ASCII Doctor table") |
OlderNewer