Skip to content

Instantly share code, notes, and snippets.

View peel's full-sized avatar

Piotr Limanowski peel

View GitHub Profile
@peel
peel / mikado.zsh
Created October 22, 2015 11:21
mikado method ZSH aliases
function zengoal(){
goal=${$1// /}
git checkout f-do-$goal
}
function zenexperiment(){
branch=eval $(git branch | sed -n '/\* /s///p')
task=${$1// /}
git checkout -b $branch-$task
}
function zenrollback(){
@peel
peel / mikado.zsh
Created October 22, 2015 11:24
Mikado Method ZSH aliases for graphing with GIT
function zengoal(){
goal=${$1// /}
git checkout f-do-$goal
}
function zenexperiment(){
branch=eval $(git branch | sed -n '/\* /s///p')
task=${$1// /}
git checkout -b $branch-$task
}
function zenrollback(){
LOK001;Park Kuzniczki;54.382059;18.607072
LOK002;Plac Wybickiego;54.384332;18.609666
@peel
peel / irccloud.css
Last active February 10, 2016 15:40
make irccloud easy on my eyes
/* font size for my old eyes */
div.log div.row {font-size:18px; padding:20px 0 0 0;}
/* message log size */
.time-12hr.time-noseconds div.log div.messageRow,
.time-24hr.time-seconds div.log div.messageRow {padding:0 10px 0 30px !important;}
/* date to the right */
button.buffer.bufferLink.author.user.link {padding-top:5px;}
span.date {float:right; margin:10px 0 0 0 !important;}
@peel
peel / vagrant-pi.sh
Created March 25, 2016 17:46
Making an ArchLinux ARM SD card with OSX with Vagrant
#!/bin/bash
# Step 0: Clone repository
# The repository contains a VM to flash your SD card with
git clone https://github.com/peel/rpi-sdcard-builder.git
cd rpi-sdcard-builder/vagrant
# Step 1: Find disk identifier
# This is extremely important to get it right as the process will destroy
# the contents of a given disk
@peel
peel / docker-pi.sh
Last active March 30, 2016 14:02
Making an ArchLinux ARM SD card with OSX with Docker
#!/bin/bash
# Step 0: Run the container
# Downloads an image from docker hub and runs it with access to hardware in privileged mode
docker run --rm --privileged -v $(pwd):/backup peelsky/arm-sdcard-builder -e download copy
# Step 1: Find disk identifier
# This is extremely important to get it right as the process will destroy
# the contents of a given disk
# The disk identifier has a form of 'diskX', ie for the following output:
@peel
peel / docker-odroid.sh
Last active July 11, 2016 12:39
Making an ArchLinux ARM SD card for ODROID-C2 with OSX with Docker
#!/bin/bash
# Step 1: Run the container
# Downloads an image from docker hub and runs it with access to hardware in privileged mode
# Note the PLATFORM=oc2 variable
docker run --rm --privileged -v $(pwd):/backup peelsky/arm-sdcard-builder -e PLATFORM=odroid-c2 download copy
# Step 2: Find disk identifier
# This is extremely important to get it right as the process will destroy
# the contents of a given disk
@peel
peel / Makefile
Last active November 15, 2016 07:41
make
REPOS := user-service uc-service pep-service application-handler-service sms-service point-service mail-service message-dispatcher
ORG := LendoSTPGdansk
TARGET := wrk/lendo
default: clone run
clone:
@echo "[INFO] cloning repositories"
@for r in $(REPOS) ; do git clone git@github.com:$(ORG)/$$r.git ~/$(TARGET)/$$r ; done
@peel
peel / keybase.md
Created February 11, 2017 10:59
keybase.md

Keybase proof

I hereby claim:

  • I am peel on github.
  • I am peel (https://keybase.io/peel) on keybase.
  • I have a public key ASCn60IC2NPQNIw6_-82br-Z27fYMMfaJ0kzx61aFFmcbAo

To claim this, I am signing this object:

#!/usr/bin/env bash
#install dependencies
brew install gstreamer gst-plugins-good gst-plugins-ugly gst-python
#menubar ui
brew cask install kmbmpdc
#mopidy plus spotify and web ui
pip install mopidy mopidy-spotify mopidy-iris
#set spotify credentials