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
<?php | |
$query = db_select('node', 'n'); | |
$string = dpq($query, TRUE); | |
dd($string); |
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() { | |
var WAITFORIT; | |
// style objects for styles bc lazy | |
var divstyles = { | |
'width' : '300px', | |
'height' : '150px', | |
'backgroundColor' : '#fff', | |
'position' : 'fixed', |
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 | |
if [ ! -t 0 ]; then | |
user=/dev/stdin | |
elif [ $1 ]; then | |
user=$1 | |
else | |
echo "Usage: $1 [username <string>] $2 [-m msg <string>]" 1>&2; exit 1; | |
fi |
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
var net = require('net') | |
var through = require('through2') | |
var server = process.argv[2] | |
var path = process.argv[3] | |
var host = process.argv[4] | |
var socket = net.connect(80, server) | |
var req = ["GET " + path + " HTTP/1.1\r\n", |
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/sh | |
# Make freebsd vm | |
# fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/VM-IMAGES/10.1-RELEASE/amd64/Latest/FreeBSD-10.1-RELEASE-amd64.raw.xz | |
VM="FreeBSD10" | |
RAW_IMG="$1" | |
BASE_IMG="${RAW_IMG%.raw}" | |
VMDK_IMG="${BASE_IMG}.vmdk" |
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
var menubar = require('menubar') | |
var exec = require('child_process').exec | |
var fs = require('fs') | |
var mb = menubar() | |
mb.on('ready', function ready () { | |
console.log('Ready!') | |
fetchTimes() | |
}) |