FROM node:0.12.7
RUN apt-get update -y
RUN apt-get install -y libcairo2-dev libjpeg62-turbo-dev libpango1.0-dev libgif-dev build-essential g++ software-properties-common
RUN mkdir /home/dockerthing
EXPOSE 4000
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 git-push-all() { | |
for i in `git remote`; do | |
echo "Pushing to $i" | |
git push $i $1 | |
done | |
} |
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
string(11) "Phase is 0." | |
array(5) { | |
[0]=> | |
string(51) "/home/vagrant/.composer/vendor/drush/drush/commands" | |
[1]=> | |
string(25) "/usr/share/drush/commands" | |
[2]=> | |
string(20) "/home/vagrant/.drush" | |
[3]=> | |
string(14) "/var/www/drush" |
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
foreach ($arr as $key => $val) { | |
if (!is_numeric($key)) { | |
continue; | |
} | |
// do stuff here. | |
} |
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
lspci | |
00:00.0 Host bridge: ATI Technologies Inc RX780/RX790 Chipset Host Bridge | |
00:02.0 PCI bridge: ATI Technologies Inc RD790 PCI to PCI bridge (external gfx0 port A) | |
00:0a.0 PCI bridge: ATI Technologies Inc RD790 PCI to PCI bridge (PCI express gpp port F) | |
00:11.0 SATA controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode] | |
00:12.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller | |
00:12.1 USB Controller: ATI Technologies Inc SB7x0 USB OHCI1 Controller | |
00:12.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller | |
00:13.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller | |
00:13.1 USB Controller: ATI Technologies Inc SB7x0 USB OHCI1 Controller |
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 | |
error_reporting(0); | |
set_error_handler('custHandler'); | |
register_shutdown_function('shutdownHandler'); | |
function custHandler($errno, $errstr, $errfile, $errline, $errcontext) | |
{ | |
echo "Custom handler called."; |
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 | |
error_reporting(E_ALL); | |
var_dump(ini_get('display_errors')); | |
var_dump(ini_get('error_reporting')); | |
//set_error_handler('custHandler'); | |
register_shutdown_function('shutdownHandler'); |
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
require 'ruble' | |
command 'Generate Entity Getter/Setters' do |cmd| | |
cmd.key_binding = 'M1+M2+G' | |
cmd.scope = 'source.php' | |
cmd.output = :replace_document | |
cmd.input = :document | |
cmd.invoke do |context| | |
file = context.TM_SELECTED_FILES.match(/([a-zA-Z0-9]+)\.php/)[1] | |
line = STDIN.read | |
columns = line.scan(/@Column\(name="([^"]+)", type="([^"]+)"/) |
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 | |
$test_url = 'https://gist.github.com/2286656'; | |
$bits = explode('/', $test_url); | |
$id = array_pop($bits); | |
$raw_url = 'https://raw.github.com/gist/' . $id; | |
$ch = curl_init($raw_url); |
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
constructor(platform: Platform) { | |
platform | |
.ready() | |
.then(() => { | |
// statusBar.overlaysWebView(false); | |
statusBar.styleDefault(); | |
splashScreen.hide(); | |
this.dumblog.realLog = console; |
OlderNewer