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
@scriptzteam
scriptzteam / reddit-image-download.bash
Created March 7, 2016 10:47 — forked from anonymous/reddit-image-download.bash
Reddit image download script
#!/usr/bin/env bash -e
# These variables can be overridden in the environment
: ${TIMESPAN:=} # hour|day|week|month|year|all
: ${LISTING:=} # hot|new|top
: ${LIMIT:=} # 1-100, default 25
: ${DOWNLOAD_DIR:=~/.reddit-pics}
: ${CURL:=curl -sL}
# "Constants"
cat /var/log/auth.log | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' | sort | uniq -c
@scriptzteam
scriptzteam / btc_transaction_firehose.rb
Created February 27, 2016 08:33 — forked from redsquirrel/btc_transaction_firehose.rb
Streaming global Bitcoin transactions in less than 80 lines of Ruby code. Described at http://jargon.io/redsquirrel/btc-tx-streaming.
require 'rubygems'
require 'bitcoin'
require 'eventmachine'
require 'resolv'
require 'set'
module BitcoinTransactionReader
def initialize(ip_address, database)
@ip_address = ip_address
@database = database
@scriptzteam
scriptzteam / tor-change-exitnode
Created February 26, 2016 16:43 — forked from kirelagin/tor-change-exitnode
Shell script to force Tor exit node change
#!/bin/sh
###
#
# Change Tor exit node
#
# Sometimes when using Tor you'd like to change the IP address that
# servers see when you connect (that is, change your Tor exit node).
# This happens automatically from time to time, but this shell script
# lets you force it.
#
1) If sendmail is not installed, do install it:
apt-get install sendmail
2) Configure hosts file correctly:
nano /etc/hosts
And make sure the line looks like this:
127.0.0.1 localhost localhost.localdomain yourhostnamehere
3) Reload /etc/hosts, so that the previous changes take effect
sudo /etc/init.d/networking restart that works but seems to be deprecated, better use:
/etc/init.d/networking stop
/etc/init.d/networking start