This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.abclinuxu.cz/blog/show/342492#71 | |
https://www.abclinuxu.cz/blog/show/341911#2 | |
https://www.abclinuxu.cz/blog/show/341911#3 | |
https://www.abclinuxu.cz/blog/show/341911#5 | |
https://www.abclinuxu.cz/blog/show/341911#7 | |
https://www.abclinuxu.cz/blog/show/341911#19 | |
https://www.abclinuxu.cz/blog/show/341911#20 | |
https://www.abclinuxu.cz/blog/show/341911#26 | |
https://www.abclinuxu.cz/blog/show/341911#32 | |
https://www.abclinuxu.cz/blog/show/341911#62 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Interpreter version: python 2.7 | |
# | |
# Imports ===================================================================== | |
# Functions & classes ========================================================= | |
class KwargObj(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
H4sIAEehoVMAA81c63PbRpL/fP4r5qzbspSjqIdjJ+e6+0DrkaiiB0+U7M1e3aWGwJCcCAQYDECJ | |
+euvf90zA4Ck4jjZZNdb61jAoKen36/Rzs6LnR11UuQTO1UTmxk1KUpVzYw6yfRcDT6oVJt5kWPV | |
MDPaGVUanfKKhFak/YS+3X2zp+Y6r3WmxoYAGGVSW9l8SuusY7h9gvDixY66z5NiPjd5Ja+KRWWL | |
XFWFMrke0/ZZMZ3Sh7RcXRbTc2A0r11FcNVjaSteE1CsnSlVWec5dhI88d1ATeosUwtdzRRtUZqf | |
aluaFK9OzUTXWfVOpdYBVPpiJ+xyUM0XB3IkwgGovl+pVNbzbvRUKEQwsyJ5MCkjAqyw/75flDyo | |
RVlUJqmc0lNtc1cRrIAlb0Anyiq7IFCVnRundu1EPWqQpMBCpfOCYJWyuKcWTHcCkhSLlVCe+VWX | |
mokHpHoqmel8avh1ONJSlxan7BHEFJAJBt4LqdSjJQLt7wuwfT6asGMPpLprscdTyzU0wDk9myJN | |
8yJS8z5nQqyMAyGv9JOd13Pl7M+0xaRDTUD4oLOaXxw2O/EaO7cVFnxf1CRfKzBcvbp6pYjsr+av | |
mPxzM9XjVQUqHl2p/1JHc/x1+OXXb756q/jFHgHA+V99Jx8+yIcPNivCh9/hmwf+8PhL/1Vf3RXK | |
LUxiJ0J0YE+gbC4L1I8Qy7TIX1WM17xI7cSa0vXVxSSwgE4+wqGJlCLfxE5IFwlEUQn3dj3HbvEg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Automatically Generated by clamav-base postinst | |
#To reconfigure clamd run #dpkg-reconfigure clamav-base | |
#Please read /usr/share/doc/clamav-base/README.Debian.gz for details | |
LocalSocket /var/run/clamav/clamd.ctl | |
FixStaleSocket true | |
LocalSocketGroup clamav | |
LocalSocketMode 666 | |
# TemporaryDirectory is not set to its default /tmp here to make overriding | |
# the default with environment variables TMPDIR/TMP/TEMP possible | |
User clamav |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Interpreter version: python 2.7 | |
# | |
#= Imports ==================================================================== | |
import os | |
import sys | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
from sh import git | |
#= Functions & objects ======================================================== | |
def parse_date(date): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def indexes_by_values(s): | |
size = len(s[0]) # get matrix size | |
s = sum(s, []) # flattern the list | |
out = [] | |
while max(s) is not None: | |
index = s.index(max(s)) | |
s[index] = None | |
val = (index / size, index % size) if index > 0 else (0, 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
http://stackoverflow.com/questions/19960243/how-to-store-ip-address-range-vs-location | |
by Bystroushaak bystrousak@kitakitsune.org | |
""" | |
# | |
# Interpreter version: python 2.7 | |
# This work is licensed under a Creative Commons 3.0 Unported License | |
# (http://creativecommons.org/licenses/by/3.0/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# Apple wireless keyboard module installation script | |
# by Bystroushaak (bystrousak@kitakitsune.org) | |
if [ ! -d ubuntu-precise ]; then | |
git clone git://kernel.ubuntu.com/ubuntu/ubuntu-precise.git ubuntu-precise | |
fi | |
cd ubuntu-precise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> f = open("/home/bystrousak/Plocha/output.txt", "w") | |
>>> a = 0 | |
>>> for i in range(1000): | |
... a = (a + 1913) % 1000 | |
... f.write(str(a) + "\n") | |
... | |
>>> f.close() | |
913 | |
826 |