Skip to content

Instantly share code, notes, and snippets.

View scriptzteam's full-sized avatar

[sCRiPTz-TEAM] scriptzteam

  • .::[S.p.\-A-/.c.E]::.
View GitHub Profile
@maxpert
maxpert / .htaccess
Last active October 29, 2017 06:40
PHP Long shadow icon generator.
# 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]
@AgoristRadio
AgoristRadio / bitdump.sh
Created February 19, 2012 02:31 — forked from altamic/bitdump.sh
dumps Bitcoin network traffic
#!/usr/bin/env sh
# bitdump.sh
#
# captures Bitcoin network traffic
SELF=`basename $0`
if [[ $1 = "" ]]; then
DEFAULT="en1"
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
@KittyKatt
KittyKatt / pomf
Last active March 24, 2018 14:49
pomf.se BASH script to upload images
#!/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
@JburkeRSAC
JburkeRSAC / bitcoin_decode.php
Created November 2, 2016 00:43
decode bitcoin OP_RETURN
<?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;
}
@lukem512
lukem512 / OP_RETURN.js
Last active May 26, 2018 07:07
OP_RETURN using Bitcore
// 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 = [];
@pyroscope
pyroscope / commands-new-in-v097.txt
Last active June 17, 2018 06:26
New commands in rTorrent v0.9.7
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
@donaldsteele
donaldsteele / bootstrap.sh
Created January 18, 2018 18:48
Install magneticod go-rewrite on a brand new scaleway ubuntu 16.04 instance
####
# 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
@egrouse
egrouse / nzbtunnel.sh
Created February 8, 2012 20:11
BASH script to tunnel NNTP connections
#!/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'
@altamic
altamic / bitdump.sh
Created January 25, 2011 22:20
dumps Bitcoin network traffic
#!/usr/bin/env sh
# bitdump.sh
#
# captures Bitcoin network traffic
SELF=`basename $0`
if [[ $1 = "" ]]; then
DEFAULT="en1"