Script now found in https://github.com/icy/sops-695

This file contains hidden or 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
``` | |
# Purpose : Wait until es is green | |
# Author : Ky-Anh Huynh | |
# License : Public domain | |
# | |
# Usage example | |
# | |
# RETRIES=10 wait_for_es http://hostname:port | |
# | |
wait_for_es() { |
This file contains hidden or 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
https://github.com/icy/kustomize-misc/tree/master/2995 | |
``` | |
$ diff <(ryaml < current.yaml) <(ryaml < current-test.yaml ) | |
26a27,28 | |
> nodeSelector: | |
> mine/group: my_worker_group | |
37,38d38 | |
< nodeSelector: | |
< mine/group: my_worker_group |
This file contains hidden or 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 | |
# | |
# Script to remove GPG user (recipient) with git-crypt | |
# | |
# It will re-initialize git-crypt for the repository and re-add all keys except | |
# the one requested for removal. | |
# | |
# Note: You still need to change all your secrets to fully protect yourself. | |
# Removing a user will prevent them from reading future changes but they will | |
# still have a copy of the data up to the point of their removal. |
This file contains hidden or 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 | |
# Unlock the directory, we need the unencrypted versions of the files | |
git crypt unlock | |
# Re-initialize git crypt, generating a new key | |
rm .git/git-crypt/keys/default | |
git crypt init | |
# Make the key available to the current users |
This file contains hidden or 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 ruby | |
# Author : Ky-Anh Huynh | |
# License : MIT | |
# Date : 2020-05-02 | |
# Usage : | |
# | |
# $ gem install watir headless | |
# $ pacman -s xvfb | |
# $ PASSWORD="your_router_password" ./restart.rb |
This file contains hidden or 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 | |
UA="Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0" | |
COOKIES="cookies-google-com.txt" | |
_URLS_PER_PROC=20 | |
_MAX_PROCS=6 | |
_METER_WIDTH=50 | |
queue=0 |
This file contains hidden or 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 ruby | |
# Purpose : Extremely stupid dns resolver for laptop | |
# Author : Ky-Anh Huynh | |
# License : MIT | |
# Requirements | |
# | |
# * dnscrypt-proxy, or another upstream listen on 127.0.0.1:52 | |
# * NetworkManager |
This file contains hidden or 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
## Makefile | |
.PHONY: default | |
default: | |
@echo This is default | |
.PHONY: tests | |
tests: | |
@echo We have tests. All tests passed. |