Key(s) | Command(s) |
---|---|
h, j, k, l | left, up, down, right |
0, ^, $ | beginning, first character, end of line |
f, F | go to next occurrence of character on current line |
gg, G, : | go to first line, last line, line number |
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 | |
function duplicate_bean($bean){ | |
$exclude = array( | |
'id', | |
'date_entered', | |
'date_modified' | |
); | |
$newbean = new $bean->object_name; | |
foreach($bean->field_defs as $def){ |
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
{ | |
"passfail": false, // Stop on first error | |
"maxerr": 100, // Maximum error before stopping | |
"node": true, // Enable globals available when code is running inside of the NodeJS runtime environment. | |
"browser": true, // Standard browser globals e.g. `window`, `document`. | |
"esnext": true, // Allow ES.next specific features such as `const` and `let`. | |
"bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.). | |
"camelcase": false, // Permit only camelcase for `var` and `object indexes`. | |
"curly": false, // Require {} for every new block or scope. | |
"eqeqeq": true, // Require triple equals i.e. `===`. |
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
$('.user-actions-follow-button').filter(function(){ return $(this).find('.follow-text:visible').size(); }).sort(function() { | |
return .5 - Math.random(); | |
}).slice(0, 1000).click(); |
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
node_modules/.bin/browserify -t coffeeify --extension=".coffee" -s GatebluWebsocket index.coffee > public/gateblu-websocket.js && hs -p 3444 |
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
mkdir -p ~/tmp/devices | |
cd ~/tmp/devices | |
npm init -y | |
npm install meshblu-blink1 | |
cd meshblu-blink1 | |
echo '{ | |
"uuid": "370b01b5-1927-44a1-a30b-2147430a4fae", | |
"token": "561bbf70d2aa2db62d22d8f85c19155c52184995", | |
"server": "meshblu.octoblu.com", | |
"port": 443 |
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
npm install meshblu-util -g | |
mkdir -p ~/tmp/devices | |
cd ~/tmp/devices | |
npm init -y | |
npm install meshblu-blink1 | |
cd meshblu-blink1 | |
meshblu-util register -t 'device:blink1' > meshblu.json | |
echo "YAY!!! Device created manually run 'npm start'" |
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
docker run \ | |
--name gateblu-forever \ | |
-e DEBUG=gateblu-forever* \ | |
-e MESHBLU_SERVER=meshblu.octoblu.com \ | |
-e MESHBLU_PORT=3000 \ | |
-e MESHBLU_UUID=c6366d66-7bb8-438d-908e-5cc724aa5c0e \ | |
-e MESHBLU_TOKEN=f7d0d2c3850045e986b2a34a94142c34 | |
octoblu/gateblu-forever:latest |
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
tmux set -g status-right '#(powerline tmux right)' |
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 meshblu = new Meshblu(config); | |
console.log('starting...'); | |
meshblu.connect(function(response){ | |
var update = { | |
"optionsSchema":{ | |
"type":"object", | |
"properties":{ | |
"allowRemoteStart":{ | |
"type":"boolean", |