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
#SingleInstance | |
; Sharpkeys: | |
; - LAlt -> RControl | |
; - Copilot -> LAlt | |
; copilot-key "Special: Right Shift (00_36)" to Left Windows (E0_5B) | |
; ~LWin::vkE8 ; prevents windows key |
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 | |
set -eEuo pipefail | |
declare -A name_pid | |
declare -A name_start | |
( | |
echo "eka started" | |
sleep 1 |
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 | |
set -eEuo pipefail | |
set -x | |
storage=local-btrfs | |
mkdir -p /var/lib/vz/snippets | |
cd /root |
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
#SingleInstance | |
; MsgBox "yo dawg" | |
; ^+r::Reload | |
SelectAll := 0 | |
LWin::LAlt | |
LAlt::LWin |
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 | |
set -euo pipefail | |
export PAGER="" | |
TARGET_DBNAME=$1 | |
psql --dbname "$TARGET_DBNAME" -c "SELECT * FROM pg_stat_activity;" | |
#TODO: user hardcoded to postgres |
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/local/bin/php | |
<?php | |
require_once("config.inc"); | |
require_once("system.inc"); | |
require_once("interfaces.inc"); | |
require_once("util.inc"); | |
$subsystem = !empty($argv[1]) ? $argv[1] : ''; | |
$type = !empty($argv[2]) ? $argv[2] : ''; |
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
version: '3.9' | |
services: | |
worker: | |
image: ghcr.io/usvacomputer/platform/worker:2adbe3a8aa4ff7f5f7edc30131148184b1c4c1ed | |
environment: | |
- USVA_ENV=matti-1 | |
- USVA_DOMAIN=usva.io | |
- USVA_NAME=default | |
privileged: true |
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
SELECT * | |
FROM `project.dataset.table` | |
WHERE | |
time BETWEEN PARSE_TIMESTAMP("%Y%m%d", @DS_START_DATE) AND PARSE_TIMESTAMP("%Y%m%d", @DS_END_DATE) |
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
while true; do | |
nodesWithFailingPods="" | |
if failedPods=$(kubectl get pods -n default --no-headers | awk '$4 > 1 {print $1}') && [[ "$failedPods" != "" ]]; then | |
for failedPod in $failedPods; do | |
echo "$(date) pod failed too many times: '$failedPod'" | |
if failedPodNodeName=$(kubectl get pod -n default "$failedPod" -ojsonpath='{.spec.nodeName'}); then | |
nodesWithFailingPods="$nodesWithFailingPods $failedPodNodeName" | |
fi | |
done |
NewerOlder