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
package main | |
import ( | |
"fmt" | |
"github.com/tushar2708/altcsv" | |
"log" | |
"os" | |
"strconv" | |
"strings" | |
) |
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
package main | |
import ( | |
"bytes" | |
"encoding/csv" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" |
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
class CountdownCard extends HTMLElement { | |
set hass(hass) { | |
if (!this.content) { | |
const card = document.createElement('ha-card'); | |
card.header = 'Timer'; | |
this.content = document.createElement('div'); | |
this.content.style.padding = '0 16px 16px'; | |
card.appendChild(this.content); | |
this.appendChild(card); | |
} |
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 | |
set -euo pipefail | |
IFS=$'\n\t' | |
echo "$@" | |
THISFILE="$(readlink ${BASH_SOURCE[0]} || echo ${BASH_SOURCE[0]})" | |
REPO_DIR="$( cd "$( dirname "$(dirname "$THISFILE" )" )" && pwd )" | |
YQ=$(command -v yq-1.15 || command -v yq) |
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
export PYTHONIOENCODING="UTF-8" | |
export VAULT_ADDR="https://vault.mgit.cz:8200" | |
export GO111MODULE=on | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi | |
# git identities | |
if which karn > /dev/null; then eval "$(karn init)"; fi |
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
ALTER TABLE user_statuses | |
ADD CONSTRAINT "disable_users_statuses" CHECK ("message" = '_disabled_feature_'); |
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
bytes srcaddr destaddr | |
672431 18.194.124.11 172.22.58.146 | |
397891 172.22.58.146 54.36.149.12 | |
259854 172.20.65.159 172.22.58.146 | |
256635 172.20.94.121 172.22.58.146 | |
196342 172.20.94.121 172.22.58.146 | |
103871 172.22.51.161 172.22.58.146 | |
37874 172.22.58.146 172.20.65.159 | |
32806 172.22.58.146 18.194.124.11 | |
28692 172.22.82.116 172.22.58.146 |
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 | |
set -euo pipefail | |
IFS=$'\n\t' | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
function test-stable { | |
for PHASE in $(kubectl -n kube-system get pods -l app=nginx -o json | jq -r '.items[].status.phase'); do | |
if [[ "$PHASE" != "Running" ]]; then | |
echo "pod is $PHASE, waiting" | |
return 1 |
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
@@ -1,2 +1,3 @@ | |
session.save_handler = redis | |
session.save_path = "tcp://redis.k8s.mangoweb.org?prefix=beton-beta." | |
+max_execution_time = 60 |
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 | |
set -euo pipefail | |
IFS=$'\n\t' | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
source /tmp/x | |
function handler() { | |
d " child: caught SIGTERM signal, exiting" | |
exit 0 |
NewerOlder