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 | |
FILE=$1 | |
FILE_ENC="$FILE.enc" | |
encrypt() { | |
openssl enc -aes-256-cbc -e -in "$FILE" -out "$FILE_ENC" -pass "pass:$PASS" | |
} | |
decrypt() { |
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
us04logfiles.zoom.us |
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
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--no-deploy traefik --disable traefik --kube-apiserver-arg service-node-port-range=1-60000 --write-kubeconfig-mode 644 --write-kubeconfig /path/to/.kube/config --tls-san PUBLIC_IP_HERE " sh -s - |
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 | |
# | |
# Usage: group.sh target_directory 4 | |
# Result: | |
# target_directory/part1of3/...files from January till April (inclusive) | |
# target_directory/part2of3/...files from May till August | |
# target_directory/part3of3/...files from September till December | |
# | |
set -e |
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 | |
# | |
# Usage: group.sh target_directory | |
# Result: | |
# target_directory/2020/...files from 2020 | |
# target_directory/2021/...files from 2021 | |
# | |
set -e |
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
help: ## Show this help message | |
@egrep '^(.+)\:\ ##\ (.+)' ${MAKEFILE_LIST} | column -t -c 2 -s ':#' | |
do-something: ## This command will do something | |
echo "something" | |
.PHONY: help |
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
function fish_prompt --description 'Write out the prompt' | |
set -l last_status $status | |
set_color $fish_color_cwd | |
echo -n (prompt_pwd) | |
set_color normal | |
__terlar_git_prompt | |
fish_hg_prompt | |
echo |
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
resource "null_resource" "volume" { | |
connection { | |
type = "ssh" | |
host = "ip" | |
user = "user" | |
private_key = file("~/.ssh/id_rsa") | |
} | |
triggers = { | |
dir = var.dir_path |
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
{ | |
"tls": true, | |
"tlsverify": true, | |
"tlscacert": "/path/to/certs/ca.pem", | |
"tlscert": "/path/to/certs/server-cert.pem", | |
"tlskey": "/path/to/certs/server-key.pem", | |
"hosts": [ | |
"unix:///var/run/docker.sock", | |
"tcp://0.0.0.0:2376" | |
] |
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
import 'dart:async'; | |
import 'package:stream_transform/src/from_handlers.dart'; | |
extension OfType<T> on Stream<T> { | |
Stream<T> ofType<ActionType>() { | |
return transform(fromHandlers( | |
handleData: (element, sink) { | |
if (element is ActionType) { | |
sink.add(element); |
NewerOlder