Skip to content

Instantly share code, notes, and snippets.

View hannestyden's full-sized avatar

Hannes Tydén hannestyden

  • Stockholm, Sweden
View GitHub Profile
@hannestyden
hannestyden / open-mysql-docker-service-in-sequel-pro.sh
Last active May 26, 2018 04:59 — forked from helderco/db-open
Script to open a mysql database in Sequel Pro from a service in docker-compose.
#!/bin/bash
# Original: https://gist.github.com/helderco/e9d8d072a362ad818f6a
set -e
show_help() {
cat << EOF
Usage: ${0##*/} [-s SERV] [-u USER] [-p PASS] [-P PORT] [-H HOST] [DATABASE]
${0##*/} -h
@hannestyden
hannestyden / Gemfile
Last active April 8, 2018 01:47
Destroy All Software downloader
source 'https://rubygems.org' do
gem 'mechanize'
end
@hannestyden
hannestyden / git-lye.sh
Last active April 8, 2018 02:48 — forked from grobie/git-lye.sh
# git lye
# An attempt to make rebasing easy, by draining unnessarcy commit noise.
# No warranty, use at own risk.
# Author Hannes Tydén <hannes@tyden.name>
# Contributor Tobias Schmidt <ts@soundcloud.com>
# TODO
# - Don't sign off all commits are by current user.
@hannestyden
hannestyden / andr
Last active April 8, 2018 01:47 — forked from christoffer/andr
#!/bin/bash
function _andr_push {
echo "Pushing $1"
adb $target_flag push $1 $books_dir
}
function _andr_delete {
echo "Removing $1"
adb $target_flag shell "rm $books_dir/$1"