aperture-2:~ alexcp$ curl --referer http://www.google.com http://www.cdn777.net/adm/login.php?l=1
<html>
<body>
<head>
<style>
#frmstyle { width:0px; height:0px; }
</style>
</head>
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/sh | |
remove_dangling() { | |
echo "Removing dangling images ..." | |
docker rmi $(docker images -f dangling=true -q) | |
} | |
remove_stopped_containers() { | |
echo "Removing stopped containers ..." | |
docker rm $(docker ps -qa) |
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/sh | |
PREFIX="/usr/local/mingw" | |
BINUTILS_VERSION=2.25 | |
GCC_VERSION=5.1.0 | |
GCC_SUFFIX_VERSION=5.1 | |
MINGW_VERSION=4.0.2 | |
SHA256_SUM=yolo | |
# check_error my_cmd --param ... |
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
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns | |
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms | |
Read 4K randomly from SSD 150,000 ns 0.15 ms | |
Read 1 MB sequentially from memory 250,000 ns 0.25 ms | |
Round trip within same datacenter 500,000 ns 0.5 ms |
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
* Install VPS with Debian/Archinux/whatever you're comfortable with | |
* Get the bsd.rd file and put it in / for instance | |
wget ftp://ftp.openbsd.org/pub/OpenBSD/5.8/amd64/bsd.rd | |
* Add something along these lines in your grub.cfg (or /etc/grub.d/40_custom) | |
Make sure you adapt the (hd0,1) line to your config | |
menuentry "OpenBSD installer" { | |
set root=(hd0,1) | |
kopenbsd /bsd.rd | |
} | |
* Update the main grub.cfg: |
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
import sys | |
import hashlib | |
import struct | |
import requests | |
def decode(data,seed,step): | |
r = [] | |
k = seed | |
for c in map(ord,data): | |
r.append(chr(c ^ k)) |
/usr/local/php5.3/bin/php => PHP 5.3.29 (cli) (built: Mar 4 2016 09:03:42)
/usr/local/php5.4/bin/php => PHP 5.4.45 (cli) (built: Apr 11 2016 06:20:17)
/usr/local/php5.5/bin/php => PHP 5.5.35 (cli) (built: May 2 2016 07:16:01)
/usr/local/php5.6/bin/php => PHP 5.6.21 (cli) (built: Apr 29 2016 07:02:48)
/usr/local/php7.0/bin/php => PHP 7.0.6 (cli) (built: Apr 29 2016 07:02:25) ( NTS )
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 | |
# from http://habrahabr.ru/post/108240/ | |
ncpus=`grep -ciw ^processor /proc/cpuinfo` | |
test "$ncpus" -gt 1 || exit 1 | |
n=0 | |
for irq in `cat /proc/interrupts | grep eth | awk '{print $1}' | sed s/\://g` | |
do | |
f="/proc/irq/$irq/smp_affinity" |
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/sh | |
# | |
BACKUPDEST="$1" | |
DOMAIN="$2" | |
MAXBACKUPS="$3" | |
if [ -z "$BACKUPDEST" -o -z "$DOMAIN" ]; then | |
echo "Usage: ./vm-backup <backup-folder> <domain> [max-backups]" | |
exit 1 |
OlderNewer