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
# for neater URLS like /{text}/{size}/{bg} | |
RewriteEngine on | |
RewriteRule ^img/([^/]+)/(\d+)/([a-fA-F0-9]{6})$ i/index.php?text=$1&size=$2&bg=$3 [NC,QSA] | |
RewriteRule ^img/([^/]+)/(\d+)$ i/index.php?text=$1&size=$2 [NC,QSA] | |
RewriteRule ^img/([^/]+)$ i/index.php?text=$1 [NC,QSA] | |
RewriteRule ^img/([^/]+)/.+$ i/index.php?text=$1 [NC,QSA] |
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
#!/usr/bin/env sh | |
# bitdump.sh | |
# | |
# captures Bitcoin network traffic | |
SELF=`basename $0` | |
if [[ $1 = "" ]]; then | |
DEFAULT="en1" |
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
Note: The boostcript ARCH must be the same that your server architecture | |
$scw images --no-trunc -a -f type=bootscript | |
REPOSITORY TAG IMAGE ID CREATED REGION ARCH | |
x86_64_4_5_7_debug_3 <bootscript> 716da634-b7c3-45c8-9fd2-87ade5eeabe6 n/a fr-1 [x86_64] | |
x86_64_4_5_7_docker_4 <bootscript> aa9f03c9-5d0e-42bb-82b1-0a73e29501a0 n/a fr-1 [x86_64] | |
armv7l_4_5_7_apparmor_4 <bootscript> 5365dab9-2dbd-483c-8c59-a8f96fa68f06 n/a fr-1 [arm] | |
armv7l_4_5_7_docker_4 <bootscript> 6a2585eb-7273-472a-b277-5898bab8ad33 n/a fr-1 [arm] | |
armv7l_4_4_21_std_1 <bootscript> 5361da3d-43ea-466e-9e56-fc105db3ac9f n/a fr-1 [arm] | |
armv7l_Rescue <bootscript> a5485 |
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
#!/usr/bin/env bash | |
# pomf.se uploader | |
# requires: curl | |
dest_url='http://pomf.se/upload.php' | |
return_url='http://a.pomf.se' | |
if [[ -n "${1}" ]]; then | |
file="${1}" | |
if [ -f "${file}" ]; 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
<?php | |
$transaction_id = $argv[1]; | |
$url = "https://blockchain.info/tx/$transaction_id?show_adv=true&format=json"; | |
$result = file_get_contents($url); | |
$resultJSON = json_decode($result, true); | |
function hex2str($hex) { | |
$str = ''; | |
for($i=0;$i<strlen($hex);$i+=2) $str .= chr(hexdec(substr($hex,$i,2))); | |
return $str; | |
} |
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
// Extend the TransactionBuilder class to include OP_RETURN scripts. | |
// The two parameters are the amount to use for the output and the data | |
// to push onto the blockchain. | |
// This is done inside bitcore/lib/TransactionBuilder.js | |
TransactionBuilder.prototype.setUnspendableOutput = function(amount, msg) { | |
var valueOutSat = bignum(0); | |
var txobj = {}; | |
txobj.version = 1; | |
txobj.lock_time = this.lockTime || 0; | |
txobj.ins = []; |
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
d.is_meta | |
directory.watch.added | |
group.seeding.ratio.max | |
group.seeding.ratio.max.set | |
group.seeding.ratio.min | |
group.seeding.ratio.min.set | |
group.seeding.ratio.upload | |
group.seeding.ratio.upload.set | |
group.seeding.view | |
group.seeding.view.set |
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 magneticod go-rewrite on a brand new scaleway ubuntu 16.04 instance | |
#### | |
apt-get update && apt-get -y upgrade | |
apt-get install -y software-properties-common python-software-properties git trickle | |
add-apt-repository ppa:gophers/archive | |
apt update | |
apt-get -y install golang-1.9-go | |
mkdir -p $HOME/go/src | |
cd $HOME/go/src |
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 | |
# Script that attempts to create a tunnel for Usenet (NNTP) to pass through | |
# This script: creates a tunnel, assigns the host address to local address in /etc/hosts | |
# For Mac OS X | |
### CONFIGURATION ### | |
SERVER='your.nntp.server' | |
PORT='your.nntp.port' | |
LOCAL='127.0.0.1' | |
USER='root' | |
HOST='your.ssh.server' |
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
#!/usr/bin/env sh | |
# bitdump.sh | |
# | |
# captures Bitcoin network traffic | |
SELF=`basename $0` | |
if [[ $1 = "" ]]; then | |
DEFAULT="en1" |
OlderNewer