- Create an hetzner server using Ubuntu
- Go to the Hetzner's Server dashboard > Images
- Click on "Mount" over the
alpine-linux-extended.isoimage - Shutdown the server
- Start the server
- Click the "Console" icon from the dashboard to open an interactive terminal session
- Login is
root - Configure the interface using the command
setup-interfaces - Pick to setup default
eth0 - Custom config:
no
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/bash | |
| uidump=/tmp/${0##*/}.$$ | |
| unsyncd_uidump_matching_lines() { | |
| adb shell 'rm -f /sdcard/dump.* && uiautomator dump /sdcard/dump.xml 2>/sdcard/dump.err && cat /sdcard/dump.xml' | | |
| tr '<' "\n" | | |
| tee $uidump.full | | |
| grep -Ei "$1" | | |
| xargs -rn1 | |
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
| <?php | |
| if (file_exists('sig1.php')) { | |
| unlink('sig1.php'); | |
| } | |
| function getc($url) | |
| { | |
| $ch = curl_init($url); | |
| curl_setopt($ch, CURLOPT_ENCODING, 'gzip'); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
| curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); |
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
| <?php | |
| $_SERVER['HTTP_HOST'] = Request::getHttpHost(); | |
| $_SERVER['HTTP_HOST'] = request()->getHttpHost(); | |
| // Alternative could be to use URL::previous(), but this will always return current URL if no referer is present. | |
| // @see https://github.com/laravel/framework/blob/5.7/src/Illuminate/Routing/UrlGenerator.php#L154 | |
| $_SERVER['HTTP_REFERER'] = Request::header('referer', 'default'); | |
| $_SERVER['HTTP_ACCEPT_LANGUAGE'] = Request::getPreferredLanguage(); |
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
| proxy_cache_path /tmp/cacheapi levels=1:2 keys_zone=microcacheapi:100m max_size=1g inactive=1d use_temp_path=off; | |
| server { | |
| listen 443 ssl http2 default_server; | |
| listen [::]:443 ssl http2 default_server; | |
| server_name example.com; | |
| location /api/ { | |
| # Rate Limiting | |
| limit_req zone=reqlimit burst=20; # Max burst of request |
/*
Made by [egyJs.com](https://www.instagram.com/egyjs/);
*/
install it on your localhost and try it :
Create a folder to store the databases :
mkdir -p /usr/share/GeoIP
Download Country IP database
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gunzip GeoIP.dat.gz
With TOR, you can specify the country of exit nodes to test a particular website from a specific country.
Just add these 4 lines in the torrc file.
ExitNodes {jp}
StrictNodes 1
GeoIPExcludeUnknown 1
AllowSingleHopCircuits 0
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
| <?php | |
| /* | |
| * Using a key => value pair with the yield keyword is | |
| * the cleanest method I could find to add identifiers or tags | |
| * to asynchronous concurrent requests in Guzzle, | |
| * so you can identify which response is from which request! | |
| */ | |
| $client = new GuzzleHttp\Client(['base_uri' => 'http://httpbin.org']); |