List current as of v4.3.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
1. Open a command prompt and navigate to /etc/nginx/ssl | |
2. issue "openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr" | |
3. Get your certificate - Go to your certificate authority and give them the CSR | |
4. copy your new crt to the /etc/nginx/ssl and give it read priveledges | |
5. reconfigure your nginx.conf, here is mine. The first part redirects 80 to 443, the second part listens to 443 and is optimized to return Ruby on Rails application requests using gzip and unicorn. |
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 was tested on puppet v3.6.1 but believe the fix was in v3.5 | |
yumrepo { 'epel': | |
ensure => present, | |
baseurl => 'http://whatever' | |
... | |
} | |
# This purges any yumrepo resource that isn't specified anywhere in manifest. | |
# On node run `puppet resource yumrepo` to get a list of all yumrepo resources |
December 13, 2016 - This gist has been moved to a dedicated github repo, https://github.com/vrillusions/ubuntu-kickstart, no more updates will be posted to this gist.
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/bash | |
# Open a new instance of KeePassX with the specified database | |
# | |
# release: 2014-08-18 | |
# src: https://gist.github.com/vrillusions/4b1156054019437d969c | |
set -e | |
set -u | |
I hereby claim:
- I am vrillusions on github.
- I am vrillusions (https://keybase.io/vrillusions) on keybase.
- I have a public key whose fingerprint is 4704 CA9C DC4B 315F AD2D 0FD4 B899 1FDD 7A82 5389
To claim this, I am signing this object:
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 taken from https://github.com/praetorian-inc/Hob0Rule and I wanted to | |
# look up what all these meant. So using the documentation[1] here's what all | |
# these mean. The explanation precedes each pattern and the example input | |
# word is superman | |
# | |
# These are the most common substitutions people do when creating passwords. | |
# Thus it would be in your best interest to not choose a password that would | |
# match any of these patterns or almost match when given a dictionary of | |
# common words. | |
# |
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
# Normalize line endings of text files | |
* text=auto | |
# Add exclusions here after running reset operation | |
#bin/** -text | |
# Ignore files on running `git archive` | |
/.github export-ignore | |
/.gitattributes export-ignore | |
/.gitignore export-ignore |
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
# Original use case for this is on a jenkins server where jobs wipe their working | |
# directories and wipes the virtual environment with it. Was abandoned as we just | |
# got a regular caching server that it uses | |
# run these at initial setup and if requirements or pip version changes | |
# and yes old version of pip used `pip install --download` and newer versions | |
# use `pip download`. | |
mkdir -p "${HOME}/.cache/pip/localcache" | |
pip install --download "${HOME}/.cache/pip/localcache" -U pip setuptools | |
pip install --no-index --find-links="${HOME}/.cache/pip/localcache" -U pip setuptools |
OlderNewer