Skip to content

Instantly share code, notes, and snippets.

View hauleth's full-sized avatar
⌨️
Click! Clack!

Łukasz Jan Niemier hauleth

⌨️
Click! Clack!
View GitHub Profile
console-setup
fontconfig
fontconfig-config
fonts-dejavu
fonts-dejavu-core
fonts-dejavu-extra
fonts-droid
fonts-freefont-ttf
fonts-horai-umefont
fonts-kacst
This file has been truncated, but you can view the full file.
int add(char a, char b) {
if (a == 0 && b == 1) return 1;
if (a == 0 && b == 2) return 2;
if (a == 0 && b == 3) return 3;
if (a == 0 && b == 4) return 4;
if (a == 0 && b == 5) return 5;
if (a == 0 && b == 6) return 6;
if (a == 0 && b == 7) return 7;
if (a == 0 && b == 8) return 8;
if (a == 0 && b == 9) return 9;
.container
width: 100%
max-width: 72rem
margin: 0 auto
padding: 0 0 1rem 0
.group
+clearfix
width: 100%
margin: 0 .5rem
&.medium
.container
width: 100%
max-width: 74rem
margin: 0 auto
padding: 1rem
.group
+clearfix
display: flex
width: 100%
%floating
(define (foldr func init lst)
(if (null? lst)
init
(func (car lst) (foldr func init (cdr lst)))))
(define (foldl func init lst)
(if (null? lst)
init
(foldl func (func (car lst) init) (cdr lst))))
@hauleth
hauleth / install.sh
Last active August 29, 2015 14:00
Developer machine installation script
#!/bin/bash
# Add repositories
sudo add-apt-repository -y "deb http://repository.spotify.com stable non-free"
sudo add-apt-repository -y ppa:webupd8team/java
sudo add-apt-repository -y ppa:fish-shell/nightly-master
echo "deb http://downloads.hipchat.com/linux/apt stable main" | sudo tee \
/etc/apt/sources.list.d/atlassian-hipchat.list
sudo add-apt-repository -y ppa:linrunner/tlp
sudo apt-add-repository -y ppa:pipelight/stable
@hauleth
hauleth / railsproj.sh
Created April 20, 2014 14:36
Rails project generation script
#!/bin/bash
dir="$1"
shift 1
mkdir "$dir"
cd "$dir"
bundler init
echo "gem 'rails'" >> Gemfile
#!/usr/bin/perl
use strict;
use warnings;
while(<>) {
s/((\b\w+\b)(\s+\2\b)+)/[$1]/ig;
print "$_";
}
#!/bin/sh
SEP=
SEPE=
CLOCK=⌚
CALENDAR=☼
MUSIC=♫
WIDTH=${1}
@hauleth
hauleth / test.json
Last active December 29, 2015 04:19
{
"machines": [
{
"maintenances": [
{ "start": 10, "duration": 10 },
{ "start": 50, "duration": 10 },
]
}
],
"tasks": [