prevent sleep
macos >> caffeinate -dimu linusx >> keep-presence –seconds 180
macos >> caffeinate -dimu linusx >> keep-presence –seconds 180
watch -n 1 ‘netstat -tunapl | grep “:80|:443″‘
git config core.sshCommand “ssh -i ~/.ssh/some_key -F /dev/null” or ssh-agent bash -c ‘ssh-add ~/.ssh/some_key; git pull git@some.server:some/repo.git’ and git config user.name “UserName” git config user.email “userNameEmail@someWhereIn.net” ~/.ssh/config Host github.public HostName github.com IdentityFile ~/.ssh/id_ed25519 Host github.personal…
developer console: document.designMode = ‘on’;
var=$(echo $(wget whatthecommit.com -q -O -) | tr -d ‘\n’ | sed -e ‘s/.*<p>\(.*\)<\/p>.*/\1/’ | awk ‘{split($0,a,”</p>”); print a[1]}’) git commit -e -m “${var}” github.com/made2591/funny-commit/blob/master/funnycommit.sh whatthecommit.com
return preg_replace(‘/((\w+\W*){‘ . ($maxWords – 1) . ‘}(\w+))(.*)/’, ‘${1}’, $string)
var_dump((function (): string { setlocale(LC_TIME, ‘de_DE’); return date(‘F’, mktime(0, 0, 0, (int)date(‘m’))); })());
(function () { var randoms = Math.ceil(Math.random() * 1000000000); var someJs = “./path/to/assets/js/script.js?r=” + randoms; window.onload = function() { var script = document.createElement(‘script’); script.src = someJs; document.body.appendChild(script); } }());
— Kill the query after 1,000 milliseconds SELECT /*+ MAX_EXECUTION_TIME(1000) */ * FROM t1 INNER JOIN t2 WHERE … dev.mysql.com/blog-archive/server-side-select-statement-timeouts/
el = el.replace(/(]+)>)/gi, “”).trim();