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
# What is this: | |
# Call this script when you want to commit customization changes | |
# from your customized repo. | |
# | |
# How it works: | |
# Creates a new temp git worktree for the customization branch | |
# and updates the tracked files with your local changes. | |
# Output of `git diff` used for patches. | |
# Deleted files are deleted, but you have to add new files manually. | |
# After copy, it calls $EDITOR <temp dir> and wait until you close. |
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
srcJson = """ | |
{"menu": { | |
"id": "file", | |
"value": "File", | |
"popup": { | |
"menuitem": [ | |
{"value": "New", "onclick": "CreateNewDoc()"}, | |
{"value": "Open", "onclick": "OpenDoc()"}, | |
{"value": "Close", "onclick": "CloseDoc()"} | |
] |
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
> flutter packages pub run build_runner build --verbose --delete-conflicting-outputs | |
[INFO] Generating build script... | |
[INFO] Generating build script completed, took 514ms | |
[INFO] BuildDefinition:Initializing inputs | |
[INFO] BuildDefinition:Reading cached asset graph... | |
[INFO] BuildDefinition:Reading cached asset graph completed, took 99ms | |
[INFO] BuildDefinition:Checking for updates since last build... | |
[INFO] BuildDefinition:Checking for updates since last build completed, took 752ms |
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
apiVersion: batch/v1beta1 | |
kind: CronJob | |
spec: | |
concurrencyPolicy: Forbid | |
jobTemplate: | |
spec: | |
template: | |
spec: | |
containers: | |
- name: &jobContainer job |
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
sudo killall -HUP mDNSResponder | |
sudo killall mDNSResponderHelper | |
sudo dscacheutil -flushcache |
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
#!/bin/bash | |
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:" | |
if ping -c3 ilo.blacksalt.cloud | grep -q "3 packets transmitted, 0 received"; then | |
poff myvpn > /dev/null || true | |
pon myvpn | |
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
#!/usr/bin/bash | |
export PATH=/usr/local/bin:/usr/bin | |
[[ -f /var/run/pv.lock ]] && exit 0 | |
touch /var/run/pv.lock | |
createPv () | |
{ | |
local pvRoot="$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
-- This query shows a few statistical aspects of a series of numbers | |
WITH | |
-- Customization | |
baseTable AS -- Insert your select here. Define a column called 'numericValue' which will be used in the rest of the queries | |
(SELECT round((obs_tmst - tmst)*24*60) numericValue FROM apwx_msg A WHERE wx_type = 'METAR/SPECI' AND REGEXP_LIKE(msg_comment, 'M?[0-9]{2}/[M-]?([0-9]{2}|//)')), | |
groupingBase AS (SELECT 0 groupingBase FROM dual), -- Grouping base is used as a reference value for interval calculations. It can ignore the range of baseTable. | |
groupInterval AS (SELECT null groupInterval FROM dual) -- Use NULL for automatic group interveral | |
-- Calculate statistics |