Skip to content

Instantly share code, notes, and snippets.

View 0x1881's full-sized avatar
🎯
Focusing

Mehmet Can ÜSTÜL 0x1881

🎯
Focusing
View GitHub Profile
@Jonarod
Jonarod / README.md
Last active October 23, 2025 18:18
Install Alpine Linux on Hetzner cloud
  1. Create an hetzner server using Ubuntu
  2. Go to the Hetzner's Server dashboard > Images
  3. Click on "Mount" over the alpine-linux-extended.iso image
  4. Shutdown the server
  5. Start the server
  6. Click the "Console" icon from the dashboard to open an interactive terminal session
  7. Login is root
  8. Configure the interface using the command setup-interfaces
  9. Pick to setup default eth0
  10. Custom config: no
@lhuxman-lhux
lhuxman-lhux / yt.php
Last active June 15, 2023 19:06
youtube download
<?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);
@sleekweasel
sleekweasel / avd-prepare-first-time.sh
Created March 11, 2020 17:02
Bash/adb automation for setting up avds
#!/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 |
@hizkifw
hizkifw / cloudflare-worker-youtube-dl.js
Last active February 22, 2025 10:21
Download YouTube videos with Cloudflare Worker
/**
* 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
@eldhosejoys
eldhosejoys / index.php
Last active February 4, 2023 07:54
Simple URL Generator for Google Redirect Notice Links. This may be useful in case of building backlinks (for increasing DR in Ahrefs), etc... Demo: http://siteurls.22web.org
<?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.
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