Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
# _ _
# ___ ___ _ _| |_ ___| |_
# | _| . | | | _| -_| |
# |_| |___|___|_| |___|_|_|
#
# Page: www.facebook.com/InurlBrasil
# Blog: blog.inurl.com.br
#Dependencias
@f0r34chb3t4
f0r34chb3t4 / parallel_curl.sh
Created January 22, 2017 09:21 — forked from CMCDragonkai/parallel_curl.sh
Bash: GNU Parallel with Curl
# do it once
seq 1 | parallel -n0 "curl -H 'Content-Type: application/json' http://httpbin.org/post -X POST -d '{\"url\":\"http://google.com/\"}'"
# do it twice
seq 2 | parallel -n0 "curl -H 'Content-Type: application/json' http://httpbin.org/post -X POST -d '{\"url\":\"http://google.com/\"}'"
# do it 4 times, but at 2 a time
seq 4 | parallel -n0 -j2 "curl -H 'Content-Type: application/json' http://httpbin.org/post -X POST -d '{\"url\":\"http://google.com/\"}'"
# you can also put all your commands into a file
@f0r34chb3t4
f0r34chb3t4 / der.bash
Created January 30, 2017 14:17 — forked from yyl/der.bash
keytool
openssl x509 -outform der -in res/raw/cert.pem -out res/raw/cert.der
@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] |"
@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 / 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 / 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
*
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
5.10.64.16/28
#!/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
<!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>