cpu-count.js:
console.log(require('os').cpus().length);
To compile:
gcc -shared -fPIC intercept.c -o intercept.so -ldl
alias גררר="replace_hebrew_with_latin" | |
replace_hebrew_with_latin() { | |
previous_command=$(history | tail -n 1 | sed 's/^[ ]*[0-9]*[ ]*//') | |
latin_command=$(echo "$previous_command" | tr 'פםןוטארק׳/ףךלחיעכגדשץתצמנהבסז' 'poiuytrewq;lkjhgfdsa.,mnbvcxz') | |
# Display the translated command | |
echo "Translated Command: $latin_command" | |
# Ask for confirmation before executing | |
echo "Do you want to execute this command? [Press Enter again]" |
cpu-count.js:
console.log(require('os').cpus().length);
To compile:
gcc -shared -fPIC intercept.c -o intercept.so -ldl
[ | |
{ | |
"title": "Aboleth", | |
"icon": "imp-laugh", | |
"contents": [ | |
"subtitle | Large aberration, lawful evil", | |
"rule", | |
"property | Armor class | 17 (Natural Armor)", | |
"property | Hit points | 135 (18d10 + 36)", | |
"property | Speed | 10 ft., swim 40 ft. ", |
#!/usr/bin/env groovy | |
pipeline { | |
agent any | |
tools {nodejs "latest"} | |
stages { | |
stage('preflight') { | |
steps { | |
echo sh(returnStdout: true, script: 'env') | |
sh 'node -v' | |
} |
# Official framework image. Look for the different tagged releases at: | |
# https://hub.docker.com/r/library/node/tags/ | |
image: node:6 | |
before_script: | |
- npm install | |
# This folder is cached between builds | |
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache | |
cache: |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
Picking the right architecture = Picking the right battles + Managing trade-offs