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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>BuildMachineOSBuild</key> | |
<string>16E195</string> | |
<key>CFBundleAllowMixedLocalizations</key> | |
<true/> | |
<key>CFBundleDevelopmentRegion</key> | |
<string>English</string> |
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/python | |
# http://depado.markdown blog.com/2015-05-11-aes-cipher-with-python-3-x | |
import sys | |
import logging | |
import argparse | |
import subprocess | |
import base64 | |
import hashlib |
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 python3 | |
''' | |
Using PyEphem for some scientific fun http://rhodesmill.org/pyephem/ | |
This script shows lunation and moon dates for the year. Maybe more | |
in a future. | |
make alias for your shell | |
alias moon="python3 /path/to/moon.py" | |
''' |
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 python3 | |
''' | |
Yet another weather forecast for your terminal. | |
usage: python3 oweather.py [-h] [-c CITY] [-w] [-v] | |
Get weather from OpenWeather. | |
optional arguments: | |
-h, --help show this help message and exit |
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 zsh | |
# # fzf-z - magic powers of z & fzf combined - | |
# ALT-Z -> recent folders history and goto | |
# place in /usr/local/share/zsh/site-functions/ | |
# and add to your .zshrc | |
# source /usr/local/share/zsh/site-functions/fzf-z | |
# | |
# Based on https://github.com/andrewferrier/fzf-z | |
__fzf-z() { |
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 zsh | |
# | |
# # Ctrl-P - cd to dir or edit file with fzf | |
# Put in /usr/local/share/zsh/site-functions/ | |
# and add to .zshrc | |
# source /usr/local/share/zsh/site-functions/ctrl-p | |
# inspired by | |
# https://adamheins.com/blog/ctrl-p-in-the-terminal-with-fzf | |
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 zsh | |
# | |
# Fuzzy find recently edited with [m(vim)|edit|subl] files | |
# gource in .zshrc and press (Ctrl-V) to call from shell. | |
# (Enter) opens in vim or (Ctrl-M) in MacVim. Previev (?) | |
fzf-edit-file-in-vim-or-mvim() { | |
local out key file helpline | |
local Vim_binary='/Applications/MacVim.app/Contents/MacOS/Vim' | |
helpline="<Ctrl-M> opens in MacVim | <?> toggles preview" |
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
" Moby Project thesaurus integration for vim | |
" Author: Tom Kurth <[email protected]> | |
" Homepage: http://github.com/tomku/thesauri | |
" License: GPLv2 | |
" Last Modified: Fri, 31 Mar 2017 | |
fun! CompleteThesauri(findstart, base) | |
if a:findstart | |
let line = getline('.') | |
let start = col('.') - 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 perl | |
use strict; | |
use warnings; | |
use feature qw(say); | |
my $outfile = 'zeitgeist.txt'; | |
open(my $fh, '>', $outfile) or die "Cannot create $outfile, $!\n"; |
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
#!/bin/env zsh | |
mkdir -p chrome-crx | |
id=$1 | |
downloadUrl="https://clients2.google.com/service/update2/crx?response=redirect&prodversion=56.0&x=id%3D$id%26installsource%3Dondemand%26lang%3Den-US%26uc" | |
if [ ! -f "chrome-crx/$id.crx" ]; then | |
curl -Lso "chrome-crx/$id.crx" "$downloadUrl" | |
fi |