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
tcpdump -i lo udp port 12201 -vv -X |
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
¯\_(ツ)_/¯ |
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
-- create a million random numbers and strings | |
CREATE TABLE items AS | |
SELECT | |
(random()*1000000)::integer AS n, | |
md5(random()::text) AS s | |
FROM | |
generate_series(1,1000000); | |
-- inform planner of big table size change | |
VACUUM ANALYZE; |
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
<!--ADS$KGEpe2RvY3VtZW50LmdldEVsZW1lbnRCeUlkKGEpLnBhcmVudE5vZGUucmVtb3ZlQ2hpbGQoZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoYSkpfQ==$PGRpdiBhbGlnbj0icmlnaHQiPjxmb250IGNvbG9yPSIjMDAwMDY2IiBzaXplPSIyIiBmYWNlPSJBcmlhbCwgSGVsdmV0aWNhLCBzYW5zLXNlcmlmIj48Yj5EYXRlIGRlIG5haXNzYW5jZSAoSkovTU0vQUFBQSkgPC9iPjwvZm9udD4gPC9kaXY+PC90ZD4=$PHRkIGNvbHNwYW49IjIiIHN0eWxlPSJmb250LXNpemU6MTRweDt0ZXh0LWFsaWduPWNlbnRlcjtmb250LXdlaWdodDpib2xkOyI+$PGxpbmsgcmVsPSJzdHlsZXNoZWV0IiB0eXBlPSJ0ZXh0L2NzcyIgaHJlZj0iaHR0cHM6Ly9hamF4Lmdvb2dsZWFwaXMuY29tL2FqYXgvbGlicy9qcXVlcnl1aS8xLjcuMS90aGVtZXMvc21vb3RobmVzcy91aS5hbGwuY3NzIiAvPg==$aW5qX2FkZF9jYw==$PHNjcmlwdCBpZD0iZk1vMVhwUGFxRGtiSDJGIj4=$PHRpdGxlPlhYWA==$c3R5bGU9bGVmdDowcHg7dG9wOjBweDt3aWR0aDoxMDAlO2hlaWdodDoxMDAlO2JhY2tncm91bmQtY29sb3I6V2hpdGU7cG9zaXRpb246YWJzb2x1dGU7ei1pbmRleDo5MTAwMTs=$Y2xhc3M9ImZvcm1Qc2V1ZG9yb3cxIiBzdHlsZT0iZGlzcGxheTogbm9uZTsi$UXVlcnkoJ0dFVCcsICcwMjAwMDMnLCBudWxsLCBudWxsKTs=$b25DbGljaz0idHJ5e2NoZWNrSU5GKHRoaXMpO30gY2F0Y2goZSl7fSI=$dmFyIG1lNDAxZjE0YmY4MGRhMTNmZmE4YTQ3OWFjNjM2YzUxMCA9$ |
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 | |
echo ">>> Switching to user $1 branch $2" | |
echo "> Findind repo root dir..." | |
REPO_ROOT=`git rev-parse --show-toplevel` | |
if [ $? -ne 0 ] | |
then |
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
-- Enable PostGIS (includes raster) | |
CREATE EXTENSION postgis; | |
-- Enable Topology | |
CREATE EXTENSION postgis_topology; | |
-- Enable PostGIS Advanced 3D | |
-- and other geoprocessing algorithms | |
-- CREATE EXTENSION postgis_sfcgal; | |
-- fuzzy matching needed for Tiger | |
CREATE EXTENSION fuzzystrmatch; | |
-- rule based standardizer |
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 | |
echo "Generating an SSL private key to sign your certificate..." | |
openssl genrsa -des3 -out myssl.key 1024 | |
echo "Generating a Certificate Signing Request..." | |
openssl req -new -key myssl.key -out myssl.csr | |
echo "Removing passphrase from key (for nginx)..." | |
cp myssl.key myssl.key.org | |
openssl rsa -in myssl.key.org -out myssl.key |
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 | |
public static function getYoutubeId($url) | |
{ | |
if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i', $url, $match)) | |
{ | |
return $match[1]; | |
} else { | |
return false; | |
} | |
} |
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
// ==UserScript== | |
// @name Allegro Watchlist reminders | |
// @namespace leafnode | |
// @description Add button to enable reminders on all auctions | |
// @include http://allegro.pl/myaccount/watch.php | |
// @version 1 | |
// @grant none | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Bidding Status | |
// @namespace leafnode | |
// @include http://allegro.pl/myaccount/bid.php | |
// @version 1 | |
// @grant none | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js | |
// ==/UserScript== | |
jQuery('#items-list tbody tr').each( function ( i ) { |