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
<?php | |
/* | |
# visudo | |
www-data ALL=NOPASSWD: /usr/sbin/etherwake | |
*/ | |
$password = "test123"; | |
if ( $_POST["computer"] ) { | |
if ( $_POST["password"] == $password ) { |
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
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%> | |
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | |
<%@ page session="true" contentType="text/html; charset=UTF-8" %> | |
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> | |
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> | |
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%> | |
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> | |
<fmt:setLocale value="cs"/> |
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
# /etc/rsyslog.d/99-bluetooth.conf : | |
:msg,contains,"BLUETOOTH_PRESENCE" /var/log/bluetooth_presence.log |
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
martin@pc:~$ lsusb | |
... | |
Bus 001 Device 005: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light | |
martin@pc:~$ | |
# /etc/udev/rules.d/99-usb-serial.rules : | |
SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SYMLINK+="seriak" | |
vytvori /dev/seriak |
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
SELECT email INTO OUTFILE '/tmp/users.txt' | |
LINES TERMINATED BY ', ' | |
FROM user; |
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
#!/bin/bash | |
export LANG=C | |
while [[ true ]] ; do | |
kill `ps aux | grep "google-chrome" | awk '{print $2}' | head -n 1` | |
if [ $? -eq 1 ] | |
then | |
break | |
fi |
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
#include <iostream> | |
using namespace std; | |
int main(void) | |
{ | |
cout << "Scope with Brackets" << endl; | |
{ | |
int i = 111; |
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
root@martin:/etc/nginx# cat /etc/nginx/nginx.conf | |
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} |
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
1) vytvorit ucet na http://my.jdownloader.org/ | |
2) pridat uzivatele | |
# adduser dl | |
3) stahnout instalator, nainstalovat a prihlasit se: | |
# su dl | |
$ wget http://installer.jdownloader.org/JDownloader.jar | |
$ java -jar JDownloader.jar | |
4) ja pouzivam skript na spusteni: | |
cat /home/dl/jdownloader2/start.sh |
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
#include <stdio.h> | |
#include <stdint.h> | |
#define COUNT 5 | |
int main(void) { | |
int mask = 0; | |
for (int j = 0; j < 32; j++) { | |
printf("mask[%02d] = ", mask); |