- Do you have an Github account ? If not create one.
- Install required tools
- Latest Git Client
- gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
MESSAGE=" | |
<table><thead><tr><td colspan=\"2\"><b>Build starting</b></td></tr></thead> | |
<tbody> | |
<tr><td><b>Tag</b></td><td>${build_tag}</td></tr> | |
<tr><td><b>Built for</b></td><td>${built_for}</td></tr> | |
<tr><td><b>Built by</b></td><td>${built_by}</td></tr> | |
</tbody> | |
</table> | |
" | |
curl -s -X POST \ |
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
--- | |
parser: babel-eslint | |
parserOptions: | |
ecmaVersion: 6 | |
sourceType: "module" | |
ecmaFeatures: | |
jsx: true | |
plugins: | |
- react | |
env: |
#!/bin/bash | |
# based on: https://gist.github.com/linhmtran168/2286aeafe747e78f53bf | |
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep "\.jsx\{0,1\}$") | |
if [[ "$STAGED_FILES" = "" ]]; then | |
exit 0 | |
fi | |
# Escape code | |
esc=`echo -en "\033"` |
# /etc/systemd/system/swapon.service | |
# from: https://www.matthowlett.com/notes/2015/08/01/coreos-swap.html | |
# sudo systemctl enable swapon.service | |
# restart | |
# or | |
# sudo systemctl start swapon | |
[Unit] | |
Description=Turn on swap | |
[Service] |
node { | |
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
echo 'No quotes, pipeline command in single quotes' | |
sh 'echo $BUILD_NUMBER' // 1 | |
echo 'Double quotes are silently dropped' | |
sh 'echo "$BUILD_NUMBER"' // 1 | |
echo 'Even escaped with a single backslash they are dropped' | |
sh 'echo \"$BUILD_NUMBER\"' // 1 | |
echo 'Using two backslashes, the quotes are preserved' | |
sh 'echo \\"$BUILD_NUMBER\\"' // "1" |
// === Arrays | |
var [a, b] = [1, 2]; | |
console.log(a, b); | |
//=> 1 2 | |
// Use from functions, only select from pattern | |
var foo = () => [1, 2, 3]; |
WebSockets is a modern HTML5 standard which makes communication between client and server a lot more simpler than ever. We are all familiar with the technology of sockets. Sockets have been fundamental to network communication for a long time but usually the communication over the browser has been restricted. The general restrictions
# Install tpm + plugins with: | |
# git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm | |
# trigger plugin install with: prefix + I | |
# trigger plugin update with: prefix + U | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
set -g @plugin 'laktak/extrakto' |