- Create an hetzner server using Ubuntu
- Go to the Hetzner's Server dashboard > Images
- Click on "Mount" over the
alpine-linux-extended.iso
image - 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
1.Run git clone <my-cool-project> | |
2.Run composer install | |
3.Run cp .env.example .env | |
4.Run php artisan key:generate | |
5.Run php artisan migrate | |
6.Run php artisan serve | |
7.Go to link localhost:8000 |
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 | |
$url = $_GET['url'];$url =htmlspecialchars($url); | |
$subdomains = array("maps","www","images","image","cse"); | |
$tlds = array("com","it","co.in","cl","cr","pl","ch","br","com.au","es","co.ao","ca","be","com.au","com.br","ru","co.uk","ae","com.co","ee","gr","com.hk","hr","hu","lt","com.mx","no","com.ph","pt","ro","rs","se","si","sk","co.th","com.tw","com.ua","com.ar","ie","co.nz","com.vn","cz","fi","com.ng","com.ag","com.ai","co.ao","as","ba","com.bd","bf","bg","com.bh","bi","bj","com.bn","bs","bt","co.bw","by","com.bz","cat","cf","cg","ci","co.ck","cm","co.cr","com.cu","dj","dm","com.do","dz","com.eg","com.et","com.fj","ga","ge","gg","com.gh","com.gi","gl","gm","gp","com.gt","gy","hn","ht","im","is","je","com.jm","jo","co.ke","kg","ki","com.kw","kz","la","com.lb","li","lk","co.ls","lv","com.ly","mg","mk","ml","com.mm","mn","ms","com.mt","mu","mv","mw","co.mz","ne","com.np","nr","nu","com.om","com.pa","com.pg","pn","com.pr","com.py","com.qa","rw","com.sa","com.sb","sc","sh","com.sl","sm","sn","so","st","com. |
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
/** | |
* cloudflare-worker-youtube-dl.js | |
* Get direct links to YouTube videos using Cloudflare Workers. | |
* | |
* Usage: | |
* GET /?v=dQw4w9WgXcQ | |
* -> Returns a JSON list of supported formats | |
* | |
* GET /?v=dQw4w9WgXcQ&f=251 | |
* -> Returns a stream of the specified format ID |
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 :
NewerOlder