To generate a Certificate Sign Request with SHA256 hashing algorithm and 4096 bits encryption key with openssl:
openssl genrsa -out example.com.key 4096
openssl req -new -sha256 -key example.com.key -out example.com.csr
Or all in one:
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction |
#!/bin/sh | |
SSH_HOST=user@host # Change this accordingly. | |
SSH_PORT=22 # If SSH server is listening on different port, change this. | |
PROXY_INTERFACE="Ethernet" # Change this to Wi-Fi, if you are on wireless, or to whatever your NIC is. | |
PROXY_HOST=localhost # This doesn't change. | |
PROXY_PORT=8080 # Pick a different port if you like. | |
if [[ $1 == "start" ]]; then | |
ssh -D $PROXY_PORT -f -C -q -N $SSH_HOST -p$SSH_PORT |
hdiutil create -format UDZO -srcfolder folder_to_compress archive_name.dmg |
#!/usr/bin/python | |
"""Print a swatch using all 256 colors of 256-color-capable terminals.""" | |
__author__ = "Marius Gedminas <[email protected]>" | |
__url__ = "https://gist.github.com/mgedmin/2762225" | |
__version__ = '2.0' | |
def hrun(start, width, padding=0): |
msiexec /a PathToMSIFile /qb TARGETDIR=DirectoryToExtractTo |
{ | |
"theme": "Afterglow.sublime-theme", | |
"color_scheme": "Packages/Theme - Afterglow/Afterglow.tmTheme", | |
"tabs_small": true, | |
"sidebar_size_12": true, | |
"sidebar_row_padding_medium": true, | |
"status_bar_brighter": true, | |
"color_inactive_tabs": true, | |
"tabs_padding_small": true, | |
"font_face": "Inconsolata-g" |
Create ~/.inputrc and fill it with this: | |
"\e[A": history-search-backward | |
"\e[B": history-search-forward |
# -p get all images, etc. needed to display HTML page. | |
# --mirror turns on recursion and time-stamping, sets infinite | |
# recursion depth and keeps FTP directory listings | |
# --html-extension save HTML docs with .html extensions | |
# --convert-links make links in downloaded HTML point to local files. | |
wget --mirror -p --html-extension --convert-links www.example.com |