Click to change datasets.
Previous: Part 1.
openssl req -x509 -newkey rsa:1024 -keyout server.key -out server.crt -days 9999 -nodes | |
chown root:root server.key | |
chmod 400 server.key |
$ mkdir Dropbox/Screenshots | |
$ defaults write com.apple.screencapture location Dropbox/Screenshots |
/* | |
* jquery.pluginTemplate.js | |
* | |
*/ | |
(function( $ ){ | |
$.fn.pluginName = function(options) { | |
// there's no need to do $(this) because | |
// "this" is already a jquery object |
http://devcenter.heroku.com/articles/quickstart | |
http://martinciu.com/2011/11/deploying-hubot-to-heroku-like-a-boss.html | |
1. install RVM: https://rvm.beginrescueend.com/ | |
2. install Ruby: rvm install 1.9.2 && rvm use 1.9.2 --default | |
3. install Heroku: sudo gem install heroku | |
4. install Homebrew: https://github.com/mxcl/homebrew/wiki/Installation |
<?php | |
// Use in the "Post-Receive URLs" section of your GitHub repo. | |
if ( $_POST['payload'] ) { | |
shell_exec( 'cd /srv/www/git-repo/ && git reset --hard HEAD && git pull' ); | |
} | |
?>hi |
http://davesouth.org/stories/how-to-set-up-dnsmasq-on-snow-leopard-for-local-wildcard-domains | |
http://inspirix.wikispaces.com/dnsmasq-on-OSX | |
- Can I install dnsmasq w/homebrew instead of macports? | |
- What exactly are those 2 and how are they different? | |
- Can (do I want to) I have them installed simultaneously? |
Click to change datasets.
Previous: Part 1.
DECLARE @StartDate DATETIME, @EndDate DATETIME | |
SELECT | |
@StartDate = | |
CASE WHEN 'Today' THEN CAST(FLOOR(CAST(GetDate() AS FLOAT)) AS DATETIME) | |
CASE WHEN 'This Week' THEN DATEADD(dd, -1 * (DATEPART(dw, GETDATE()) - 1), CAST(FLOOR(CAST(GETDATE() AS FLOAT)) AS DATETIME)) | |
CASE WHEN 'ThisMonth' THEN DATEADD(dd, -1 * (DATEPART(d, GETDATE()) - 1), CAST(FLOOR(CAST(GETDATE() AS FLOAT)) AS DATETIME)) | |
ELSE '1/1/1900' | |
END | |
/** | |
* Donation Center Pattern Library | |
*/ | |
ul { | |
list-style: none; | |
overflow: auto; | |
} | |
li { |
/** | |
* Donation Center Color Pattern Library | |
*/ | |
body { | |
background-color: #FBFBFB; | |
color: #7B7B7B; | |
} | |
ul { | |
list-style: none; |