Skip to content

Instantly share code, notes, and snippets.

View dpc's full-sized avatar
🎶
Your PR is important to me. Please hold, while I'm busy with something else.

Dawid Ciężarkiewicz dpc

🎶
Your PR is important to me. Please hold, while I'm busy with something else.
View GitHub Profile
This is just a temporary test file.
@dpc
dpc / gist:3055236
Created July 5, 2012 17:58
This is how it should look
#!/bin/bash
# Easy drive encryption script
# using LUKS
DEVICE="$1"
NAME="$2"
KEYDIR="/keys"
KEYFILE="/keys/$NAME.key"
HEADERFILE="/keys/$NAME.luks.header"
MOUNTPOINT="/mnt/$NAME"
@dpc
dpc / prices.html
Last active December 11, 2015 08:28
<html><head><title>Prices</title>
<script type="text/javascript" src="http://btcrate.com/convert.js?from=eur&to=btc"></script>
</head><body>
<table>
<tr>
<td>Beer 1</td><td><span id="eur0"></span></td><td><span id="btc0"></span></td>
</tr>
<tr>
<td>Beer 2</td><td><span id="eur1"></span></td><td><span id="btc1"></span></td>
@dpc
dpc / Makefile
Last active December 12, 2015 12:38
RUSTC ?= rustc
#LOG_FLAGS ?= RUST_LOG=rustc::metadata::creader
all: glhex
run: all
./glhex
glhex: main.rs *.rs
Verifying that +dpc is my Bitcoin username. You can send me #bitcoin here: https://onename.io/dpc
@dpc
dpc / tcp_bench.go
Last active September 9, 2015 00:40 — forked from bg5sbk/tcp_bench.go
package main
import (
"flag"
"fmt"
"log"
"net"
"sync"
"sync/atomic"
"time"
@dpc
dpc / Makefile
Last active August 29, 2015 14:23
cbuf
cbuf: cbuf.h cbuf.c
gcc -O3 -std=gnu99 cbuf.c -o cbuf
### Keybase proof
I hereby claim:
* I am dpc on github.
* I am dpc (https://keybase.io/dpc) on keybase.
* I have a public key whose fingerprint is C99B B634 A0F5 3F7F BDA8 B870 2F6A 8931 F7C9 95D9
To claim this, I am signing this object:
target
Cargo.lock