Skip to content

Instantly share code, notes, and snippets.

View peel's full-sized avatar

Piotr Limanowski peel

View GitHub Profile
@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 / 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;}
LOK001;Park Kuzniczki;54.382059;18.607072
LOK002;Plac Wybickiego;54.384332;18.609666
@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(){
@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 / aliases.zsh
Last active October 22, 2015 09:00
Aliases for managing github issues from ZSH with ghi gem
# Aliases for managing github issues
#
# preconditions:
# gem install ghi
# marks task as in progress
# creates task if it does not exist
#
# usage:
# ghidoing 1234 # will mark task 1234 as "in progress"
@peel
peel / generate.js
Created September 4, 2015 14:40
node/osa script to generate pdf slides out of decks
var osa = require('osa');
function generate_pdf(name, dir){
path = Path(dir+"/"+name+".md");
app = Application('Deckset');
doc = app.open(path);
pdf = doc.slides.pdfdata;
app.quit();
@peel
peel / forgetting-java.md
Last active April 27, 2022 11:39
Java is old. Java is verbose. Java is ugly. Java is mocked and ridiculed but everyone and their dog. Hell, Java is dead. Well it's not but I'm preaching to the choir. Or am I? However convenient to say so, it's not exclusively Oracle to blame for Java's current state of the art. Java developers are guilty of laziness (the wrong kind), not questi…

slidenumbers: true footer: @peel #tricityjug

^ Abstract: Java is old. Java is verbose. Java is ugly. Java is mocked and ridiculed but everyone and their dog. Hell, Java is dead. Well it's not but I'm preaching to the choir. Or am I? However convenient to say so, it's not exclusively Oracle to blame for Java's current state of the art. Java developers are guilty of laziness (the wrong kind), not questioning the tools they use (wrong again), following patterns (pretty much the right kind) they believe are blessed upon them yadda yadda yadda. Yet the communities around languages we find to be even lesser than Java offer world of a difference. The talk shows the tools, experiences and mindset we lack in the Java world. The virtues present elsewhere but needed here for Java to wipe the "enterprise-grade" solutions off the face of the world. Let's do this people. Let's do the right thing and get rid of the "enterprise" Java developers.

^ Contents: PART I: Is Java Dead? Tries to find the right angle at why

<script id="jsbin-javascript">
// object - contract/guard
var str = function (s) {
if (typeof s !== "string") {
throw new TypeError("Expected a string");
} else {
return s;
}
};
@peel
peel / declutter-corporate-dev-twitter.js
Last active August 29, 2015 14:13
declutter-corporate-dev-twitter.js
javascript:$('body').bind('ajaxSuccess',declutter);void(declutter());function declutter(){var rk=['java ee', 'java ee microservices', 'maven node plugin', 'maven grunt plugin', 'xml config'];$.each($('li.stream-item'), function(){var c = $(this).html(); var p = $(this); $.each(rk, function(i, v){ if(c.toLowerCase().indexOf(v) > 0){p.remove();}});});}