This file contains hidden or 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
# I used the following command to generate my images: | |
# mogrify -resize 96x96 -gravity center -extent 96x96 -format jpg \ | |
# -path outlook -background black -strip -coalesce -quality 95 *.jpg | |
# Add the Quest AD and Exchange snap-ins | |
Add-PSSnapin Quest.ActiveRoles.ADManagement -ErrorAction SilentlyContinue | |
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin -ErrorAction SilentlyContinue | |
Get-Mailbox -ResultSize Unlimited -RecipientTypeDetails UserMailbox | ForEach { | |
$username = $_.SamAccountName |
This file contains hidden or 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! EditScss() | |
" The current file | |
let file = expand("%") | |
" The current file's basename plus .scss | |
let scss = expand("%:r") . ".scss" | |
" If the file exists | |
if filereadable(scss) | |
" Prompt the user and store the user's choice (1-indexed) in a variable |
This file contains hidden or 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
error publishing - {"stack":"Error: forbidden Maintainer should have name and email: {\"name\":\"beaugunderson\"}: beaugunderson-spearmint\n at Request._callback (/var/locker/node_modules/npm/lib/utils/npm-registry-client/request.js:180:12)\n at Request.callback (/var/locker/node_modules/npm/node_modules/request/main.js:99:22)\n at Request. (/var/locker/node_modules/npm/node_modules/request/main.js:361:18)\n at Request.emit (events.js:64:17)\n at IncomingMessage. (/var/locker/node_modules/npm/node_modules/request/main.js:327:16)\n at IncomingMessage.emit (events.js:81:20)\n at HTTPParser.onMessageComplete (http.js:133:23)\n at Socket.ondata (http.js:1227:22)\n at Socket._onReadable (net.js:683:27)\n at IOWatcher.onReadable [as callback] (net.js:177:10)","message":"forbidden Maintainer should have name and email: {\"name\":\"beaugunderson\"}: beaugunderson-spearmint"} |
This file contains hidden or 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
HTTP/1.1 200 OK | |
X-Powered-By: Express | |
Access-Control-Allow-Origin: * | |
Set-Cookie: singly.id=REDACTED; domain=.singly.com; path=/; expires=Fri, 24 Feb 2012 23:15:45 GMT | |
x-powered-by: Express, Express | |
set-cookie: locker.project.id=REDACTED; path=/; expires=Sat, 11 Feb 2012 03:15:46 GMT; httpOnly | |
access-control-allow-origin: * | |
access-control-allow-headers: X-Requested-With | |
content-type: image/jpeg | |
content-length: 58752 |
This file contains hidden or 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
" Human-readable long epoch dates (long meaning those that include milliseconds) | |
function! DateFromLongEpoch() | |
" Let the shell divide because vim only supports 32 bit ints | |
let sdate=system("echo $((". expand("<cword>") ."/1000))") | |
" Format the date | |
let human=tolower(substitute(strftime("%m/%d/%y %I:%M:%S%p", sdate), "\\\<0", "", "g")) | |
return human ." (". (sdate - localtime()) ." seconds from now)" | |
endfunc |
This file contains hidden or 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 loadenv_inner() { | |
cat .env | while read line; do | |
echo export $line | |
done | |
} | |
function loadenv() { | |
if [ -f .env ]; then | |
eval `loadenv_inner` | |
else |
This file contains hidden or 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
[ec2-23-20-4-55.compute-1.amazonaws.com] sudo: npm shrinkwrap | |
[ec2-23-20-4-55.compute-1.amazonaws.com] out: [37m[40mnpm[0m [0m[31m[40mERR![0m[35m[0m Error: Problems were encountered | |
[ec2-23-20-4-55.compute-1.amazonaws.com] out: [0m[37m[40mnpm[0m [0m[31m[40mERR![0m[35m[0m Please correct and try again. | |
[ec2-23-20-4-55.compute-1.amazonaws.com] out: [0m[37m[40mnpm[0m [0m[31m[40mERR![0m[35m[0m extraneous: [email protected] /srv/singly/hallway/node_modules/mime-magic | |
[ec2-23-20-4-55.compute-1.amazonaws.com] out: [0m[37m[40mnpm[0m [0m[31m[40mERR![0m[35m[0m extraneous: [email protected] /srv/singly/hallway/node_modules/libxml-to-js | |
[ec2-23-20-4-55.compute-1.amazonaws.com] out: [0m[37m[40mnpm[0m [0m[31m[40mERR![0m[35m[0m extraneous: [email protected] /srv/singly/hallway/node_modules/aws2js | |
[ec2-23-20-4-55.compute-1.amazonaws.com] out: [0m[37m[40mnpm[0m [0m[31m[40mERR![0m[35m[0m at shrinkwrap_ (/usr/lib/nodejs/npm/lib/shrinkwrap.js:28:15) | |
[ec2-23-20-4-55.compu |
This file contains hidden or 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
diff -r -u node_modules/oauth/lib/oauth.js oauth/lib/oauth.js | |
--- node_modules/oauth/lib/oauth.js 2012-03-02 13:38:30.000000000 -0800 | |
+++ oauth/lib/oauth.js 2012-11-10 11:42:55.000000000 -0800 | |
@@ -309,7 +309,8 @@ | |
headers["Authorization"]= authorization; | |
} | |
- headers["Host"] = parsedUrl.host | |
+ headers["Host"] = parsedUrl.host; | |
+ headers["Referer"] = 'http://localhost:8042'; |
This file contains hidden or 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 | |
RETURN=0 | |
COUNT=0 | |
while [ $RETURN == 0 ]; do | |
COUNT=$(($COUNT + 1)) | |
echo "Test run $COUNT" |
This file contains hidden or 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
var original = cb; | |
cb = function wrapper() { | |
var args = arguments; | |
process.nextTick(function () { | |
original.apply(wrapper, args); | |
}); | |
}; |
OlderNewer