Typ trivial archive ve tvaru deb http://example.org/debian ./ je deprecated, ale nicemu to nevadi.
Dnes se maji spravne pouzivat official archive ve tvaru deb http://example.org/debian unstable main.
| # http://raspi.tv/2014/programming-a-kickstarter-tracker-in-python-part-1 | |
| from urllib2 import Request, urlopen, URLError | |
| from time import sleep | |
| import subprocess | |
| someurl = 'https://www.kickstarter.com/projects/tomtu/angee-the-first-truly-autonomous-home-security-sys' | |
| old_percent= 0.0 |
| #! /usr/bin/python | |
| # https://github.com/tuxmartin/google-translator-text-to-speech | |
| # !!! Pouze pro vyukove ucely! Na 99,9% porusuje licenci Googlu !!! | |
| """ | |
| Pouziti: | |
| $ echo "test 123" | python googleTextToSpeech.py cs | |
| $ echo "test 123" | python googleTextToSpeech.py en |
| <?php | |
| setlocale(LC_COLLATE, 'cs_CZ.utf8'); | |
| $array = array("žragsg", "chodźić", "přidać", "ágščgš", "ćehnyć", "łopjeno"); | |
| usort($array, 'strcoll'); | |
| echo "<pre>"; | |
| print_r($array); | |
| echo "/<pre>"; |
| http://wiki.openelec.tv/index.php?title=Guide_To_lirc_rpi_GPIO_Receiver | |
| https://learn.adafruit.com/using-an-ir-remote-with-a-raspberry-pi-media-center/using-other-remotes | |
| http://openelec.tv/forum/103-infared-remotes/73288-mce-remote-recognises-one-button-only-on-cubox | |
| --------------------------------------------------------------- | |
| # killall lircd | |
| # irrecord --list-namespace | |
| # modprobe lirc_rpi | |
| # irrecord -d /dev/lirc0 /storage/.config/lircd.conf |
| // gcc -std=c99 -O3 -pedantic -Werror -static -o usleep usleep.c | |
| // ./usleep 1000000 | |
| #define _BSD_SOURCE | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| int main(int argc, char *argv[]) | |
| { |
| # /etc/unbound/dns_zaznamy | |
| local-zone: "lan." static | |
| local-data: "server.lan. IN A 192.168.1.1" | |
| local-data: "pc.lan. IN A 192.168.1.10" | |
| local-data: "*.server.lan. IN CNAME server.lan." | |
| local-data: "*.pc.lan. IN CNAME pc.lan." |
| # /etc/rsyslog.d/99-ubnt.conf | |
| :msg,contains,"UBNT_RXTX " /var/log/ubnt.log |
| vancl@vancl-pc:~/wrt/OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-0.9.33.2$ pwd | |
| /home/vancl/wrt/OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-0.9.33.2 | |
| vancl@vancl-pc:~/wrt/OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-0.9.33.2$ ./toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-g++ -static-libstdc++ -o ubnt ubnt.cpp | |
| vancl@vancl-pc:~/wrt/OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-0.9.33.2$ ./toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-strip ubnt | |
| vancl@vancl-pc:~/wrt/OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-0.9.33.2$ ls -lh | grep ubnt | |
| -rwxrwxr-x 1 vancl vancl 448K led 19 20:12 ubnt | |
| -rw-rw-r-- 1 vancl vancl 2,2K led 19 20:04 ubnt.cpp | |
| vancl@vancl-pc:~/wrt/OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-0.9.33.2$ file ubnt | |
| ubnt: ELF 32-bit MSB executable, MIPS, MIPS32 rel2 version 1 (SYSV), dynamically linked (uses shared libs), stripped | |
| vancl@vancl-pc:~/wrt/OpenWrt-Toolchain |
| <?php | |
| /* | |
| # visudo | |
| www-data ALL=NOPASSWD: /usr/sbin/etherwake | |
| */ | |
| $password = "test123"; | |
| if ( $_POST["computer"] ) { | |
| if ( $_POST["password"] == $password ) { |