I hereby claim:
- I am leucos on github.
- I am leucos (https://keybase.io/leucos) on keybase.
- I have a public key ASD5ci-OAGGxbyDvDxpVlTnsWBzkBjsMgufONqXDlvbaDwo
To claim this, I am signing this object:
| #!/bin/bash | |
| set -eu | |
| # | |
| # This program watches new files and moves them from one machine to another | |
| # | |
| # How it works | |
| # | |
| # mover.sh will recursively watch old files in a directory using find. When the |
| #!/bin/bash | |
| set -eu | |
| # | |
| # This program watches new files and moves them from one machine to another | |
| # | |
| # How it works | |
| # | |
| # mover.sh will recursively watch changes in a directory using inotifywait. |
| package main | |
| import ( | |
| "fmt" | |
| "syscall" | |
| "golang.org/x/crypto/ssh/terminal" | |
| passwordvalidator "github.com/lane-c-wagner/go-password-validator" | |
| ) |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| ) | |
| func main() { | |
| if len(os.Args) != 2 { | |
| fmt.Println("usage: spamcause gggruggvucft...") |
| #!/bin/bash | |
| # This snippet will send a SMS when next EDF Tempo day is not Blue | |
| # Better run this around noon | |
| # https://particulier.edf.fr/fr/accueil/contrat-et-conso/options/tempo.html#/selection-bp | |
| RTE_AUTH="xyz" # sbase64 auth token; ee https://data.rte-france.com/ for an account; then create an "App" for "Tempo Like Supply Contract" | |
| TWILIO_ACCOUNT_ID="someid" # see https://www.twilio.com/console | |
| TWILIO_AUTH_TOKEN="sometoken" # see https://www.twilio.com/console | |
| FROM_PHONE="+33999999" # phon# to send from, see https://www.twilio.com/console |
| #!/bin/bash | |
| STAGED_GO_FILES=$(git diff --cached --name-only -- "\.go$") | |
| if [[ "$STAGED_GO_FILES" = "" ]]; then | |
| exit 0 | |
| fi | |
| GOLINT=$GOPATH/bin/golint | |
| GOIMPORTS=$GOPATH/bin/goimports |
| #!/bin/bash | |
| # | |
| # Ansible role test shim. | |
| # | |
| # Usage: [OPTIONS] ./tests/test.sh | |
| # - distro: a supported Docker distro version (default = "centos7") | |
| # - playbook: a playbook in the tests directory (default = "test.yml") | |
| # - role_dir: the directory where the role exists (default = $PWD) | |
| # - cleanup: whether to remove the Docker container (default = true) | |
| # - container_id: the --name to set for the container (default = timestamp) |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # ran vi @hook post | |
| DOCKER_RULES_DIR=/tmp/ferm | |
| for table in ${DOCKER_RULES_DIR}/*; do | |
| iptables-restore -n ${table} | |
| done |
| SELECT table_schema "Data Base Name", | |
| sum( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB", | |
| sum( data_free )/ 1024 / 1024 "Free Space in MB", | |
| engine "Engine" | |
| FROM information_schema.TABLES | |
| GROUP BY table_schema; |