This file contains hidden or 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 -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" |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| require 'rubygems' | |
| require 'bitcoin' | |
| require 'eventmachine' | |
| require 'resolv' | |
| require 'set' | |
| module BitcoinTransactionReader | |
| def initialize(ip_address, database) | |
| @ip_address = ip_address | |
| @database = database |
This file contains hidden or 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 | |
| ### | |
| # | |
| # 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. | |
| # |
This file contains hidden or 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
| 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 |
NewerOlder