Skip to content

Instantly share code, notes, and snippets.

View davidak's full-sized avatar
🔥
burnt-out

davidak

🔥
burnt-out
View GitHub Profile
@davidak
davidak / unterschied_liste.py
Created April 16, 2013 08:38
Erzeugt zufällige Worte aus einer Liste, die nicht gleich sind.
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import random
r = random.SystemRandom() # Uses /dev/urandom or Windows CryptGenRandom for better entropy
liste = ['Kartoffel', 'Flugscheibe', 'Erdbeben', 'Klospülung', 'Nanoroboter']
x = r.choice(liste)
@davidak
davidak / gist:5433638
Created April 22, 2013 09:51
OwnCloud Client 1.2.4 deletes my important files :(
This file has been truncated, but you can view the full file.
(1884678242837423562, 41, Shared/Musik/2Inventions - Nostalgic Days, 235280, 0, 0, 16895, 1366030099, 2, 516b246433e45);
04-22 11:44:34:576 _insert_metadata_visitor: SQL statement: INSERT INTO metadata_temp
(phash, pathlen, path, inode, uid, gid, mode, modtime, type, md5) VALUES
(2369097125960398546, 118, Shared/Musik/2Inventions - Nostalgic Days/05 - 2Inventions - Johaness Gilther - Reincarnation _Remastered Version_.mp3, 235448, 0, 0, 33206, 1366030066, 0, 516b2445bf807);
04-22 11:44:34:576 _insert_metadata_visitor: SQL statement: INSERT INTO metadata_temp
(phash, pathlen, path, inode, uid, gid, mode, modtime, type, md5) VALUES
(2745785752876568995, 34, owncloud_client_124_winxp_hang.PNG, 154581, 0, 0, 33206, 1366108087, 0, 516c5959aa9f4);
04-22 11:44:34:576 _insert_metadata_visitor: SQL statement: INSERT INTO metadata_temp
(phash, pathlen, path, inode, uid, gid, mode, modtime, type, md5) VALUES
(3102695513992702010, 25, Shared/Fotos/_DSC1092.jpg, 235463, 0, 0, 33206, 1365676333,
@davidak
davidak / gist:5434896
Created April 22, 2013 13:32
OwnCloud Client 1.2.4 on Windows 7 uses standard configuration after installing ssl-certificate on the server
This file has been truncated, but you can view the full file.
04-22 15:24:15:698 _csync_detect_update: time compare: 1366067422 <-> 1366067422, md5: 51753739955bc <-> 51753739955bc
04-22 15:24:15:698 _csync_detect_update: file: clientsync/BitTorrent Sync/1.0.112/BTSync.exe, instruction: INSTRUCTION_NONE
04-22 15:24:15:698 csync_vio_stat: Win32: STAT-inode for C:\Users\dkl\OwnTest/clientsync/BitTorrent Sync/1.0.112/btsync_i386.tar.gz: 271248
04-22 15:24:15:698 csync_ftw: Uniq ID read from Database: clientsync/BitTorrent Sync/1.0.112/btsync_i386.tar.gz -> 5175365192626
04-22 15:24:15:698 csync_ftw: walk: C:\Users\dkl\OwnTest/clientsync/BitTorrent Sync/1.0.112/btsync_i386.tar.gz
04-22 15:24:15:698 csync_walker: file: C:\Users\dkl\OwnTest/clientsync/BitTorrent Sync/1.0.112/btsync_i386.tar.gz
04-22 15:24:15:698 _csync_detect_update: file: clientsync/BitTorrent Sync/1.0.112/btsync_i386.tar.gz - hash 18203933019893191707, mtime: 1366243069
04-22 15:24:15:699 _csync_detect_update: time compare: 1366243069 <-> 1366243069, md5: 5175365192626 <-> 5175365192626
04-22 15:24:15:699 _
@davidak
davidak / gist:5435073
Created April 22, 2013 13:47
OwnCloud Server Log 5.0.5 after installed ssl-certificate
This file has been truncated, but you can view the full file.
Johaness Gilther - Nostalgia _Analogue Mix__conflict-20130422-145628.mp3","level":3,"time":1366635971}
{"app":"files_sharing","message":"File source not found for: \/files\/Musik\/2Inventions - Nostalgic Days\/07 - 2Inventions - Johaness Gilther - Nostalgia _Analogue Mix__conflict-20130422-145628.mp3","level":3,"time":1366635971}
{"app":"files_sharing","message":"File source not found for: \/files\/Musik\/2Inventions - Nostalgic Days\/Cover.jpg","level":3,"time":1366635971}
{"app":"files_sharing","message":"File source not found for: \/files\/Musik\/2Inventions - Nostalgic Days\/Cover.jpg","level":3,"time":1366635971}
{"app":"files_sharing","message":"File source not found for: \/files\/Musik\/2Inventions - Nostalgic Days\/Cover_conflict-20130415-144455.jpg","level":3,"time":1366635971}
{"app":"files_sharing","message":"File source not found for: \/files\/Musik\/2Inventions - Nostalgic Days\/Cover_conflict-20130415-144455.jpg","level":3,"time":1366635971}
{"app":"files_sharing","message":"File source not foun

Keybase proof

I hereby claim:

  • I am davidak on github.
  • I am davidak (https://keybase.io/davidak) on keybase.
  • I have a public key whose fingerprint is 8CF1 774E 62AA 8FFF 3A61 C57D B683 9887 B601 97B0

To claim this, I am signing this object:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import random as r
# https://pyzufall.readthedocs.io/
from pyzufall.generator import verbt, objekt
for i in range(1, 100):
s = objekt()

Execution time in seconds

original list with 11 items

jpp: 0.038900841027498245
Laurent H.: 0.09572448302060366
Kevin: 0.007683080970309675
davidak: 0.027118309983052313

list with 100 items

@davidak
davidak / trolling_haskell
Created May 7, 2019 18:29 — forked from quchen/trolling_haskell
Trolling #haskell
13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF
| FUCKIN PUSSIES
13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS
13:16 <luite> | hello
13:16 <ChongLi> | somebody has a mental illness!
13:16 <merijn> | Wow...I suddenly see the error of my ways and feel
| compelled to write Node.js!
13:16 <genisage> | hi
13:16 <luite> | you might be pleased to learn that you can compile
| haskell to javascript now
{ config, lib, pkgs, ... }:
{ #boot.isContainer = true;
networking.useDHCP = lib.mkForce true;
networking.firewall.enable = false;
services = {
openssh.enable = true;
dnsmasq.enable = true;
nginx.enable = true;
Name Year started total packages maintainers pkg per maintainer up-to-date
Nixpkgs 2003 48703 1173 42 85.00%
Debian 1994 29977 3698 8 70.20%
FreeBSD Ports 1994 26914 1670 16 74.80%
Red Hat 1997 22240 #DIV/0! 74.10%
Gentoo 2002 18819 566 33 64.10%
pkgsrc 1997 14600 459 32 62.70%
openSUSE 1997 12199 ? #VALUE! 71.80%
MacPorts 2002 10990 356 31 60.20%