Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
# by f0r34chb3t4 on Centos 7 - OpenStack
#
#
# Sistema simples para automatizar a instalacao e configuracao do haproxy e tor cliente com multiplas portas.
#
# O sera configurado para servir conexao de proxy nas portas 59050 a 59074 na rede loopback.
# O haproxy ira servir na porta 51080 em toda a redes disponiveis.
# Em teoria, tomos o haproxy realizando balanceamento de conexoes distribuido em 20 portas servidas pelo tor.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<meta name="generator" content=
"HTML Tidy for Linux (vers 25 March 2009), see www.w3.org">
<title></title>
</head>
<body>
<script>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<meta name="generator" content=
"HTML Tidy for Linux (vers 25 March 2009), see www.w3.org">
<title></title>
</head>
<body>
<script>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<meta name="generator" content=
"HTML Tidy for Linux (vers 25 March 2009), see www.w3.org">
<title></title>
</head>
<body>
<script>
#!/bin/bash
# Centos 7
#
#
yum -y install epel-release
yum -y update
yum -y install haproxy tor nano jq screen zip wget
mv /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg-bak
This file has been truncated, but you can view the full file.
# Copyright 2017 COUNTRY IP BLOCKS™ LLC
#all rights reserved.
#This list may not be redistributed in any form.
#this list includes network data on the following countries:
#UNITED STATES
3.0.0.0/8
4.0.0.0/8
5.1.94.0/24
5.10.64.1/32
@f0r34chb3t4
f0r34chb3t4 / curltest.c
Created June 15, 2017 01:01 — forked from aaronhurt/curltest.c
example code using libcurl and json-c to post and parse a return from http://jsonplaceholder.typicode.com
/**
* example C code using libcurl and json-c
* to post and return a payload using
* http://jsonplaceholder.typicode.com
*
* Requirements:
*
* json-c - https://github.com/json-c/json-c
* libcurl - http://curl.haxx.se/libcurl/c
*
@f0r34chb3t4
f0r34chb3t4 / chromemobiletest.py
Created May 19, 2017 20:12 — forked from devinmancuso/chromemobiletest.py
Example Python Chrome Mobile Emulation Automated Unit Testing Using Selenium 2 WebDriver ChromeDriver
# Import unittest module for creating unit tests
import unittest
# Import time module to implement
import time
# Import the Selenium 2 module (aka "webdriver")
from selenium import webdriver
# For automating data input
@f0r34chb3t4
f0r34chb3t4 / redsocks.conf
Created February 23, 2017 18:08 — forked from afriza/redsocks.conf
Setup iptables for RedSocks in OpenWRT
base {
// debug: connection progress & client list on SIGUSR1
log_debug = on;
// info: start and end of client session
log_info = on;
/* possible `log' values are:
* stderr
* file:/path/to/file
@f0r34chb3t4
f0r34chb3t4 / RPi-install-wifi.sh
Created February 9, 2017 05:13 — forked from kmonsoor/RPi-install-wifi.sh
install wifi adapter drivers on Raspberry Pi
#!/bin/bash
set -e
# install-wifi - v3 - by MrEngman.
display_help() {
echo "#"
echo "# usage:"
echo "#"
echo "# install-wifi [[-h | --help] |"