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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
package main | |
import ( | |
"fmt" | |
_"flag" | |
_"time" | |
"strings" | |
"compress/gzip" | |
"io/ioutil" | |
"path/filepath" |
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 | |
define('TAB', ' '); | |
$pizz = array( | |
"30cm" => "http://www.pizzmaster.ru/shop/pizza-30sm", | |
"40cm" => "http://www.pizzmaster.ru/shop/pizza-40sm", | |
"12" => "http://www.pizzmaster.ru/shop/polovinka-pizz", | |
"to" => "http://www.pizzmaster.ru/shop/picca-40sm-na-tonkom-korzhe", | |
"it" => "http://www.pizzmaster.ru/shop/picca-40sm-na-italjanskom-teste" | |
); |
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
<meta name="referrer" content="no-referrer" /> | |
<form action="mAx-knigi.php" method="post"> | |
URL: <input type="text" name="url"><br> | |
<input type="submit" value="Submit"> | |
</form><br><br> | |
<?php | |
if(isset($_POST['url']) && strlen($_POST['url']) > 10) | |
{ | |
$url = parse_url($_POST['url'], PHP_URL_PATH); | |
$page = file_get_contents('https://domain/'.$url); |
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
# as root | |
sudo -i | |
mkdir /opt/vcmi/ | |
# Then copy files and set execution permissions | |
chmod +x /opt/vcmi/switchFiles.sh | |
chmod +x /opt/vcmi/changeLinks.sh | |
# Run this one as root: | |
/opt/vcmi/switchFiles.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
# Cleanup old alternatives | |
update-alternatives --remove-all cc | |
update-alternatives --remove-all c++ | |
update-alternatives --remove-all gcc | |
update-alternatives --remove-all g++ | |
update-alternatives --remove-all clang | |
update-alternatives --remove-all clang++ | |
update-alternatives --remove-all icc | |
update-alternatives --remove-all icc++ |
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
Source: | |
http://wiki.vcmi.eu/index.php?title=Opis_zadania_%E2%80%94_bitewne_AI_dla_VCMI |
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
{ | |
<insert_a_suppression_name_here> | |
Memcheck:Param | |
writev(vector[...]) | |
... | |
obj:/usr/lib/*/libxcb* | |
... | |
} | |
{ | |
<insert_a_suppression_name_here> |
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
Multicast: | |
cvlc --live-caching 1 -vvv pulse://Mine.monitor --sout '#transcode{acodec=s16b,samplerate=44100}:rtp{dst=192.168.128.159,port=5000,caching=1,sdp=rtsp://192.168.128.159:8080/test.sdp}' | |
cvlc rtsp://192.168.128.159:8080/test.sdp --network-caching=0 | |
Unicast: | |
cvlc --live-caching 1 -vvv pulse://Mine.monitor --sout '#rtp{dst=192.168.128.150,port=50001,sdp=rtsp://192.168.128.159:8080/test.sdp,caching=1}' | |
cvlc rtp://@:50001 |