Testing sign git commits
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
#!/usr/bin/env bash | |
# while read line; do | |
# echo "${line}" | |
# done < "${1:-/dev/stdin}" | |
# cat "${1:-/dev/stdin}" | |
# cat <&0 |
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
find . -name node_modules -type d -prune -print0 \ | |
| xargs -0 -n1 du -s -k \ | |
| awk '{ s += $1 } END { printf "%.1f MB",s / 1024 }' |
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
187.177.139.8:8080 | |
110.93.214.36:30759 | |
45.182.156.236:52668 | |
185.63.253.202:5836 | |
201.204.168.106:63141 | |
103.216.82.153:6666 | |
94.130.20.85:31288 | |
173.249.30.197:8118 | |
77.94.123.91:33380 | |
119.226.97.170:8080 |
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
const increaseDeliveryIntents = assign({ | |
deliveryIntents: (context) => context.deliveryIntents + 1, | |
}); | |
Machine({ | |
id: 'orders', | |
initial: 'PENDING', | |
context: { | |
deliveryIntents: 0, | |
}, |
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
#!make | |
include .env | |
export $(shell sed 's/=.*//' .env) | |
test: ## Testing environment vars into .env | |
env |
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
#!/bin/bash | |
cat <<EOF | kubectl apply -f - | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: tiller | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 |
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
#!/bin/bash | |
# | |
# URL encode script for encoding text. | |
# | |
# Syntax: | |
# | |
# urlencode <string> | |
# | |
# Example: | |
# |
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
#!/usr/bin/env sh | |
gsettings set org.gnome.shell.extensions.dash-to-dock autohide false | |
gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed false | |
gsettings set org.gnome.shell.extensions.dash-to-dock intellihide false | |
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
const fs = require('fs'); | |
const path = require('path'); | |
const readStream = fs.createReadStream(path.join(__dirname, 'generated-big-file.csv')); | |
const writeStream = fs.createWriteStream(path.join(__dirname, 'generated-big-file-copy.csv')); | |
readStream.pipe(writeStream); | |
readStream.on('end', () => writeStream.end()); |