Skip to content

Instantly share code, notes, and snippets.

View hakoerber's full-sized avatar
💡

Hannes Körber hakoerber

💡
View GitHub Profile
from pprint import pprint
l = "swssssswswwwssssswwsssswswwssswwswwswsssswwsswsw"
count_so = sum([1 if c == "s" else 0 for c in l])
print(count_so)
count_wie = sum([1 if c == "w" else 0 for c in l])
print(count_wie)
l = [0 if c == "s" else 1 for c in l]

Keybase proof

I hereby claim:

  • I am hakoerber on github.
  • I am hakoerber (https://keybase.io/hakoerber) on keybase.
  • I have a public key whose fingerprint is 973A E48D 71B7 6735 C471 2B5B B5C0 0253 0C6A 2053

To claim this, I am signing this object:

quassel-core:
service.running:
- name: {{ quassel_map.core.service }}
- enable: true
quassel-systemd:
file.managed:
- name: {{ quassel_map.core.systemd_file }}
...
- watch_in:
port 1194
proto udp
dev vpn-main
dev-type tap
# files
ca pki/main/ca.crt
cert pki/main/server.crt
key pki/main/server.key
tls-auth pki/main/ta.key 0
port 1194
proto udp
dev vpn-main
dev-type tap
# files
ca keys-main/ca.crt
cert keys-main/client.crt
key keys-main/client.key
tls-auth keys-main/ta.key 1
#!/bin/bash
# main configuration file that is always used
MAIN_CONF="$HOME/.i3/config"
# temporary configuration file used for this session
SESSION_CONF="$HOME/.i3/session.config"
# directory that contains host specific configuration
CONF_DIR="$HOME/.i3/config.d"
# file that should be used when no host specific configuration present
DEFAULT_CONF="$CONF_DIR/default"
public void onClickBerufsschule(int Feierabend, int Start, int stunden,
int minuten) {
double rest = (double)((Feierabend - ((stunden - Start) + minuten)));
double restprozent = (double)(((rest /Feierabend) * 100.0));
if (restprozent > 100.0 || restprozent < 0.0) {