This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.gem | |
.bundle | |
Gemfile.lock | |
pkg/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
def main | |
ARGF.each do |line| | |
if line.match(%r{\^DSFLOWRPT}) | |
parts = line[11..line.length].split(",") | |
a = parts[0].to_i(16) / (1.0 * 60 * 60) #uptime in s | |
b = parts[1].to_i(16) / (1.0 * 1024) # speed tx | |
c = parts[2].to_i(16) / (1.0 * 1024) # speed rx | |
d = parts[3].to_i(16) / (1.0 * 1024 * 1024) # total tx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
# System update & upgrade | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo apt-get -y dist-upgrade | |
# Editor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
sudo apt-get install zbar-tools xdotool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
abc!#[email protected] | |
123*%/@ink.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#define NR_OF_PLAYS (1000000) | |
#define BET (100) | |
#define PAYOFF (200) | |
#define MINIMUM_CERTAINTY (0.75) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TOPSECRET | |
RosesAreRedVioletsAreBlue | |
SquaresMayBeEven |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
set -e | |
RBENV="$HOME/.rbenv" | |
# Clone/Update rbenv | |
[ -d "$RBENV" ] && ( cd "$RBENV"; git pull -q ) || \ | |
git clone -q https://github.com/sstephenson/rbenv.git "$RBENV" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PK_CSV_FILES=$(wildcard **/personkonto_*.csv) | |
.PHONY: default clean | |
default: personkonto.csv | |
personkonto.csv: $(PK_CSV_FILES) | |
@echo '"Datum","Transaktion","Kategori","Belopp","Saldo"' > $@ | |
@cat $^ | sed -n -e 's/"\?Datum"\?.\+//' \ | |
-e 's/\.\([0-9][0-9][0-9]\)/\1/g' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'csv' | |
require 'erb' | |
def main | |
vcard_template = ERB.new(DATA.read) | |
CSV.parse(STDIN, headers: true).each do |row| | |
name = row['Namn'] | |
email = row['Email'] |
OlderNewer