Skip to content

Instantly share code, notes, and snippets.

Brian Low brianlow

Block or report user

Report or block brianlow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
brianlow /
Last active May 30, 2018 — forked from crcastle/
Kafka CLI example using Apache Kafka on Heroku
brianlow / varnish3.rb
Last active Jan 7, 2019 — forked from aslam/varnish3.rb
Install Varnish-3.0.7 on OSX with homebrew
View varnish3.rb
# Install Varnish 3.0.7 on OSX with the following Brew command:
# $> brew install
# You also might have to run:
# $> sudo brew link varnish3
# To symlink the install.
require 'formula'
curl -X "GET" "" \
	-H "Authorization: Bearer [token]" \
	-H "Accept: application/vnd.wit.20160526+json"

Sometimes returns this (good):

View gist:657052ccc013ae944933cad5d2495658
  1. Create new bot using the website

  2. Run commands below, waiting for green training indicator between each step.

  3. Create intent

curl -X "POST" "" \
	-H "Accept: application/vnd.wit.20160526+json" \
	-H "Authorization: Bearer [token]" \
brianlow / copy_playlist_to_my_music.rb
Last active Dec 28, 2015
Spotify: Copy all songs from all your playlists into 'Your Music' (songs / albums / artists)
View copy_playlist_to_my_music.rb
# Add an application at
# Whitelist redirect url
# Copy client id into url below
# Browse to URL
# On successful authorization, you will be redirected, from this URL copy the token param in variable below
require 'httparty'
token = '... your token here ...'
View gist:cc60afd630ba0d1a94b0
### Keybase proof
I hereby claim:
* I am brianlow on github.
* I am brianlow ( on keybase.
* I have a public key whose fingerprint is 0288 6EAD 4693 8368 DF86 798D 2B90 84AA 83D7 20FE
To claim this, I am signing this object:
brianlow / gist:0d5d2070c87c378454d7
Created Sep 16, 2014
rmdir deletes children through junction
View gist:0d5d2070c87c378454d7
D:\temp\test> mkdir source
# Directory: D:\temp\test
# Mode LastWriteTime Length Name
# ---- ------------- ------ ----
# d---- 9/15/2014 7:42 PM source
View rsync.crontab
# Copy logs from the vagrant share (hosted by Windows) to ~/logs
# This is because logstash tracks files using their inode number
# but this number may change each time the vm is booted.
# rsync options
# -r recursive
# -t transfer file mod times and use to skip files
# -v verbose
# --inplace update files rather than write new and rename
#!/usr/bin/env bash
# Saves all dashboards in Kibana to /vagrant/dashboards
# so they can be reloaded if this vagrant instance is destroyed
curl -s 'http://localhost:9200/kibana-int/dashboard/_search?pretty=true&fields=' | grep "_id" | sed -E 's/.*"_id" : "(.*)",/\1/' | while read -r line; do curl -s -X GET http://localhost:9200/kibana-int/dashboard/$line/_source > /vagrant/dashboards/$line.json; done
View gist:9245781
sc stop WMPNetworkSvc
sc config WMPNetworkSvc start= disabled
c:\windows\system32\sysprep\sysprep /generalize /oobe /shutdown
You can’t perform that action at this time.