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
import datetime | |
import calendar | |
import argparse | |
from pprint import pprint | |
def read_properties(filepath,delimiter='---\n'): | |
properties = {} | |
cur_line = None | |
with open(filepath) as f: |
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
.header on | |
.mode column | |
PRAGMA foreign_keys = ON; | |
CREATE TABLE customers ( | |
id INTEGER PRIMARY KEY, | |
years_tenure REAL, | |
state TEXT, | |
clv REAL | |
); |
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
Dmin7 G7 Cmaj7 Fmaj7 Bmin7♭5 E7 Amin7 | |
Gmin7 C7 Fmaj7 B♭maj7 Emin7♭5 A7 Dmin7 | |
Cmin7 F7 B♭maj7 E♭maj7 Amin7♭5 D7 Gmin7 | |
Fmin7 B♭7 E♭maj7 A♭maj7 Dmin7♭5 G7 Cmin7 | |
B♭min7 E♭7 A♭maj7 D♭maj7 Gmin7♭5 C7 Fmin7 | |
E♭min7 A♭7 D♭maj7 G♭maj7 Cmin7♭5 F7 B♭min7 | |
A♭min7 D♭7 G♭maj7 C♭maj7 Fmin7♭5 B♭7 E♭min7 | |
C#min7 F#7 Bmaj7 Emaj7 B♭min7♭5 E♭7 A♭min7 | |
F#min7 B7 Emaj7 Amaj7 D#min7♭5 G#7 C#min7 | |
Bmin7 E7 Amaj7 Dmaj7 G#min7♭5 C#7 F#min7 |
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
access-analyzer:ApplyArchiveRule | |
access-analyzer:CancelPolicyGeneration | |
access-analyzer:CreateAccessPreview | |
access-analyzer:CreateAnalyzer | |
access-analyzer:CreateArchiveRule | |
access-analyzer:DeleteAnalyzer | |
access-analyzer:DeleteArchiveRule | |
access-analyzer:GetAccessPreview | |
access-analyzer:GetAnalyzedResource | |
access-analyzer:GetAnalyzer |
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
Chords | |
------------------9th|-11th|-13th | |
major: 3 - 2 - 3 - 2 | - 2 | - 3 | |
minor: 2 - 3 - 2 - 3 | - 2 | - 3 | |
-------------------------------- | |
sus2: 1 - 4 (remove 3rd, add 9th transposed down) | |
sus4: 4 - 1 (remove 3rd, add 11th transposed down) | |
-------------------------------- | |
dim: 2 - 2 - 2 | |
dom: 3 - 2 - 2 |
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
x = number e.g. 0001, 1234, etc | |
MOVxxxx | |
IMGxxxx | |
DSCxxxx | |
AMBAxxxx | |
SAMxxxx | |
GH01xxxx | |
GOPRxxxx | |
3D_Lxxxx |
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
# unhide files from Reaktor 6 monark installation iso | |
sudo mount -o unhide Monark.iso monark |
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 pacman -S wine-staging | |
yay -S yabridge | |
# make the commonly used folders for vst plugins | |
mkdir -p "$HOME/.wine/drive_c/Program Files/Steinberg/VstPlugins" | |
mkdir -p "$HOME/.wine/drive_c/Program Files/Common Files/VST2" | |
mkdir -p "$HOME/.wine/drive_c/Program Files/Common Files/VST3" | |
# Add them to yabridge | |
yabridgectl add "$HOME/.wine/drive_c/Program Files/Steinberg/VstPlugins" |
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
# solution for getting rid of jack manager cadence light theme | |
# this makes qt5 use the gtk2 theme | |
pacman -S qt5-style-plugins | |
GTK2_RC_FILES=$HOME/.config/gtk-2.0/gtkrc && cadence |
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
from googleapiclient.discovery import build | |
from google_auth_oauthlib.flow import InstalledAppFlow | |
flow = InstalledAppFlow.from_client_secrets_file('client_secret.json', | |
scopes=['https://www.googleapis.com/auth/youtube']) | |
flow.run_local_server(port=8080) | |
credentials = flow.credentials | |
service = build('youtube', 'v3', credentials=credentials) |
NewerOlder