I hereby claim:
- I am kurtroberts on github.
- I am kurtroberts (https://keybase.io/kurtroberts) on keybase.
- I have a public key ASA70wmzqCJjoErdlX8kpu7lj9CdWPXYcWL_lHdFwa7EIgo
To claim this, I am signing this object:
var getNextDay = function (initialDate) { | |
initialDate.setDate(initialDate.getDate() + 1); | |
return initialDate; | |
}, | |
dayOff = function (day) { | |
if (day.getDay() == 0 || day.getDay() == 6) { | |
return true; | |
} | |
return false; |
I hereby claim:
To claim this, I am signing this object:
//TL;DR - Read the MDN page and skip all the tutorials: | |
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise | |
//ES6 | |
var x = new Promise((resolve, reject) => { | |
setTimeout(function () { resolve('test'); }, 5000); | |
}); | |
x.then((msg) => console.log(msg)); |
$ php -a | |
php > echo ('' == (string)$some ? 1 : 0); | |
1 | |
php > echo ('' == $some ? 1 : 0); | |
1 | |
php > echo ('' === $some ? 1 : 0); | |
0 | |
php > echo ('' === (string)$some ? 1 : 0); | |
1 |
<?php | |
//if your permissions are set insecurely, he can't prove you did it either! | |
echo "Let's do this!!!"; | |
ob_start(); | |
echo "exec('rm index.php');"; | |
eval(ob_get_clean()); |
//JSHint brought my attention to the fact that some PERLisms are just not cool in JS anymore... | |
//This is cool with JSHint: | |
console.time('if1'); | |
for (var i = 0; i < 100000; i++) { | |
if(1) { //nice and safe, and don't even THINK of skipping those {}s, even though you don't need them either... | |
console.log(1 + 1); | |
} | |
} | |
console.timeEnd('if1'); |
$ ps aux | grep dobe | |
root 45838 0.0 0.0 4332424 576 ?? Ss 17May18 0:00.26 /Library/PrivilegedHelperTools/com.adobe.ARMDC.SMJobBlessHelper | |
root 45837 0.0 0.0 4331920 588 ?? Ss 17May18 0:00.16 /Library/PrivilegedHelperTools/com.adobe.ARMDC.Communicator | |
hyxf 32829 0.0 0.1 4981964 7072 ?? S 4May18 0:14.98 /Applications/Utilities/Adobe Creative Cloud/CCLibrary/CCLibrary.app/Contents/MacOS/../libs/node /Applications/Utilities/Adobe Creative Cloud/CCLibrary/CCLibrary.app/Contents/MacOS/../js/server.js | |
hyxf 32749 0.0 0.1 5019532 8556 ?? S 4May18 0:37.82 /Applications/Utilities/Adobe Creative Cloud/CCXProcess/CCXProcess.app/Contents/MacOS/../libs/node /Applications/Utilities/Adobe Creative Cloud/CCXProcess/CCXProcess.app/Contents/MacOS/../js/main.js | |
hyxf 640 0.0 0.4 5250672 36188 ?? S 25Apr18 3:03.46 /Library/Application Support/Adobe/Adobe Desktop Common/HEX/Adobe CEF Helper.app/Content |
// ==UserScript== | |
// @name Brutally remove Lynda updates from linkedin | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Because srsly, what have I ever done to deserve bombardment by wordpress ads? | |
// @author You | |
// @match https://www.linkedin.com/feed/ | |
// @grant none | |
// ==/UserScript== |
## To install Kibana | |
sudo docker pull sebp/elk:latest | |
## To run the link on your localhost just to test | |
docker run --link zentral_elastic_1:elasticsearch -p 127.0.0.1:5601:5601 --net zentral_default kibana | |
## After this, you should be able to access the Kibana dashboard from 127.0.0.1:5601 | |
## Edit the base.json under conf/start/zentral/base.json | |
vi ./conf/start/zentral/base.json |
var x = 0 | |
/*** | |
While this comment seems like it might be the | |
beginning of a new statement, you should be careful what | |
your believe. ;) You should always check */+2/* or *+3* times | |
what the code is doing and what someone is explaining | |
in the comments. Sometimes crazy code likes to hide | |
inside really big comments. | |
Automatic semicolon insertion is great, until it isn't. |