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
#first time setup only | |
sudo apt-get install git | |
sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt | |
# I had to restart apache with a stubbed *.443 section, do this, and then | |
# add the SSL* directives in. | |
sudo -H ./letsencrypt-auto certonly --standalone -d example.com |
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
<Directory /var/www/html/example.com/public_html> | |
Require all granted | |
</Directory> | |
<VirtualHost *:80> | |
ServerName example.com | |
ServerAlias www.example.com | |
Redirect / https://example.com/ | |
</VirtualHost> | |
<VirtualHost *:443> | |
SSLEngine On |
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
// ** MySQL settings - You can get this info from your web host ** // | |
/** The name of the database for WordPress */ | |
define('DB_NAME', 'wp_example_com'); | |
/** MySQL database username */ | |
define('DB_USER', 'examplecom'); | |
/** MySQL database password */ | |
define('DB_PASSWORD', '!@(87P@ss'); |
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
<Directory /var/www/html/example.com/public_html> | |
Require all granted | |
</Directory> | |
<VirtualHost *:80> | |
ServerName example.com | |
ServerAlias www.example.com | |
ServerAdmin email@example.com | |
DocumentRoot /var/www/html/example.com/public_html |
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
<Directory /var/www/html/example.com/public_html/> | |
Options Indexes FollowSymLinks | |
AllowOverride All | |
Require all granted | |
</Directory> |
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
mysqldump wp_example_com --host mysql.db.example.com -u examplecom -p > example.com.sql |
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
// ** MySQL settings - You can get this info from your web host ** // | |
/** The name of the database for WordPress */ | |
define('DB_NAME', 'wp_example_com'); | |
/** MySQL database username */ | |
define('DB_USER', 'examplecom'); | |
/** MySQL database password */ | |
define('DB_PASSWORD', 'ASD9@!h12'); |
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://en.wikipedia.org/wiki/Web_colors#X11_color_names | |
-- hs.streamdeck.init(function(connected, sd) | |
-- device = hs.streamdeck.getDevice(1) | |
-- device.setButtonColor("1", hs.drawing.color.x11.teal) | |
-- end) | |
applications = { "Messages", "iTunes", "Skype for Business", "iTerm2", "Microsoft Outlook", "HipChat", "Microsoft OneNote", "MacVim", "RubyMine", "Firefox" } | |
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "pageup", function() |
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
function move_to_third(r,c) | |
local win = hs.window.focusedWindow() | |
local f = win:frame() | |
local screen = win:screen() | |
local extents = screen:frame() | |
f.x = extents.x + (extents.w / 3) * c | |
f.y = extents.y + (extents.h / 3) * r | |
f.w = extents.w / 3 | |
f.h = extents.h / 3 |
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
export PMPSVN='http://cvs.appriss.com/svn/softeng/projects/pmp' | |
export PATH=~/bin:$PATH | |
export DYLD_LIBRARY_PATH=~/instantclient_11_2 | |
#alias gvim='mvim' | |
export EDITOR=/usr/local/bin/mvim | |
export NARWHAL_ENGINE=jsc | |
export RSENSE_HOME=~/.vim/bundle/rsense | |
export PATH="/Library/PostgreSQL/9.2/bin:/usr/local/narwhal/bin:$PATH" |