Skip to content

Instantly share code, notes, and snippets.

View alexanderstephan's full-sized avatar
🐢

Alexander Stephan alexanderstephan

🐢
  • Technical University of Munich & PoliMi
  • Milan
View GitHub Profile
@alexanderstephan
alexanderstephan / .sh
Created August 15, 2021 17:07
Create a swap file on Manjaro or Arch
# Create the file itself
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096 status=progress
# Only root should be able to read and write
sudo chmod 600 /swapfile
# Format the swap file
sudo mkswap /swapfile
# Enable the swap
package pgdp.datastructures;
import java.util.Arrays;
import java.util.NoSuchElementException;
import java.util.Objects;
public class QuadTreeKnotenImpl implements QuadTreeKnoten {
private int dimension;
private int[][] colorValues;
testing/actual/season_1/1.0_hellofriend.txt
1🍆Hello, friend.
97🍆That's my childhood friend, Angela.
2🍆Hello, friend.
3🍆"Hello, friend?" That's lame.
611🍆And, Elliot, we are on the verge of taking down this virtual reality.
164🍆And we need to work on your anger issues, Elliot.
356🍆Lloyd, what's up? Lloyd? Elliot.
772🍆Elliot FBI agents claim that Colby either used hacking groups, or worked in conjunction with them to pressure Evil Corp during his contract negotiations.
102🍆- Gideon, will you please answer me? Awesome? You think this is awesome? This is killing us, Elliot.
package pgdp.arrays;
public class ProbabilisticSearch extends MiniJava {
/**
* Binary Search aus der Vorlesung leicht abgewandelt
*/
public static int[] find (int[] a, int x) {
return find0(a, x, 0, a.length-1, 1);
### Keybase proof
I hereby claim:
* I am alexanderstephan on github.
* I am alexanderstephan (https://keybase.io/alexanderstephan) on keybase.
* I have a public key ASAhRRjqYP_zhEIw90zghHBNZuUpt-eqwVMy9R3rfHYVggo
To claim this, I am signing this object:
@alexanderstephan
alexanderstephan / gh60.sh
Created November 20, 2018 20:04
flashing a gh60
#!
echo "Put yr keyboard in boot mode!"
echo "erasing in 10 seconds"
sleep 10
echo "erasing..."
dfu-programmer atmega32u4 erase --suppress-validation
echo "flashing in 10 seconds"
sleep 10
echo "flashing..."
dfu-programmer atmega32u4 flash gh60.hex
@alexanderstephan
alexanderstephan / Encrypted Arch Linux install for flash drives
Last active May 20, 2018 11:01
Basic arch install with full encryption
\e[0;36m.
\e[0;36m/ \
\e[0;36m/ \ \e[1;37m # \e[1;36m| *
\e[0;36m/^. \ \e[1;37m a##e #%" a#"e 6##% \e[1;36m| | |-^-. | | \ /
\e[0;36m/ .-. \ \e[1;37m.oOo# # # # # \e[1;36m| | | | | | X
\e[0;36m/ ( ) _\ \e[1;37m%OoO# # %#e" # # \e[1;36m| | | | ^._.| / \ \e[0;37mTM
\e[1;36m/ _.~ ~._^\
\e[1;36m/.^ ^.\ © Alexander Stephan
@alexanderstephan
alexanderstephan / config
Last active January 18, 2018 21:09
My i3 config
set $mod Mod1
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:Roboto Regular 10
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).