Skip to content

Instantly share code, notes, and snippets.

View stefan2904's full-sized avatar
🚲
¯\_(ツ)_/¯

Stefan stefan2904

🚲
¯\_(ツ)_/¯
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stefan2904
stefan2904 / md.md
Last active March 23, 2016 13:00
Mardown Test

Header 1

text

Header 1

text

Header 2

text

@stefan2904
stefan2904 / food.md
Last active August 29, 2015 14:24
some venues for 'food' in Graz (not checked for duplicates)

Ginko

  • Grazbachgasse 33
  • Rating: 8.9
  • Vegetarian / Vegan Restaurant

Clock Tower

  • Kärntner Str. 173
  • Rating: 8.9
  • American Restaurant
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stefan2904
stefan2904 / 3doges2.go
Created July 11, 2015 15:45
Wanna talk with John? Join his supersecret communication channel. Of course it's secure, it uses a brand new hipster handmade cryptocipher! Amazingly unbreakable!
package main
import (
"crypto/des"
"crypto/cipher"
"crypto/rand"
"errors"
"io"
"fmt"
"log"
@stefan2904
stefan2904 / lvextend
Last active September 18, 2024 07:57
how to extend your /home logical volume with LVM on ext4
% df -h
Filesystem Size Used Avail Use% Mounted on
/dev/dm-1 46G 14G 31G 31% /
udev 10M 0 10M 0% /dev
tmpfs 2.3G 9.2M 2.3G 1% /run
tmpfs 5.8G 232K 5.8G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 5.8G 0 5.8G 0% /sys/fs/cgroup
/dev/mapper/thinkbook-home 92G 55G 33G 63% /home
/dev/sda1 232M 35M 181M 16% /boot
@stefan2904
stefan2904 / daily.sh
Last active September 25, 2015 22:13
my rsync scripts
#!/bin/bash
# run this script on the client
# inspired by https://gist.github.com/deviantintegral/0f1066650e3ea5c5ffc1
TODAY=`date +"%Y%m%d"`
# Set the path to rsync on the remote server so it runs with sudo.
#RSYNC="/usr/bin/sudo /usr/bin/rsync"
@stefan2904
stefan2904 / 1before.java
Created August 24, 2015 15:29
unroll me if you can
import at.iaik.unrollme.PrintMe;
@at.iaik.unrollme.UnrollThis
public class SomeTest {
@at.iaik.unrollme.UnrollHere("inner")
public static void outer() {
for(int i = 0; i < 16; i++) {
inner(i);
}
@stefan2904
stefan2904 / java.java
Created August 25, 2015 08:35
inline join
String.join(", ", ee.getModifiers().stream().map(Object::toString).collect(Collectors.toList()));