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/zsh | |
# metadata | |
# <xbar.title>Music Now Playing</xbar.title> | |
# <xbar.version>v1.2</xbar.version> | |
# <xbar.author>Dan Turkel, Jason Tokoph, Aleš Farčnik, Jeffrey Munowitch</xbar.author> | |
# <xbar.author.github>chew-z</xbar.author.github> | |
# <xbar.desc>Display currently playing Music song with artwork. Play/pause, skip forward, skip backward.</xbar.desc> | |
# <xbar.dependencies>zsh, javascript, JXA</xbar.dependencies> |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"strings" | |
"time" |
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
package sunset | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"net/http" | |
"reflect" | |
"time" |
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
steps: | |
- name: 'gcr.io/cloud-builders/gcloud' | |
args: ['functions', 'deploy', 'HelloHTTP', '--trigger-http', '--runtime', 'go111', '--entry-point', 'HelloHTTP', '--region', 'europe-west1'] | |
dir: 'CloudFunctions' |
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
upstream dns-backend { | |
server 127.0.0.1:8053; | |
} | |
# http-redirects to https - for domain calls not via IP | |
server { | |
listen 443 ssl http2 default_server; | |
listen [::]:443 ssl http2 default_server; | |
server_name www.example.com; |
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 | |
http --download --output "chrome-crx/$id.crx" "$downloadUrl" | |
fi |
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 python | |
# Takes hosts file and converts to DNSCrypt blacklist-domains file | |
# so you could block malicious hosts on DNSCrypt | |
# (when alternating to DNSCrypt instead of dnsmasq in my scenario) | |
# hosts file from https://github.com/StevenBlack/hosts | |
# See https://dnscrypt.org/ IP/domain names blocking | |
import re |
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
[ | |
{ | |
"id": 0, | |
"station": { | |
"name": "Machine Geist", | |
"url": "http://178.209.52.163:7331/maschinengeist.org.128.aacp" | |
} | |
}, | |
{ | |
"id": 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 zsh | |
OLDIFS=$IFS | |
IFS=$'\r\n' | |
GLOBIGNORE='*' | |
command eval 'BrewList=($(brew list))' | |
Dependent=() | |
Independent=() |
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
" Only MacVim-related options here | |
" | |
" | |
" start in fullscreen mode | |
" set fullscreen | |
set guifont=Roboto\ Mono\ Medium:h14 | |
" This is best with iTerm window on left and MacVim on right pane (on my screen) | |
set columns=125 | |
set lines=50 | |
set antialias |
NewerOlder