Skip to content

Instantly share code, notes, and snippets.

View 0x1881's full-sized avatar
🎯
Focusing

Mehmet Can 0x1881

🎯
Focusing
View GitHub Profile
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
@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.
@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
@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 |
@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);
@Jonarod
Jonarod / README.md
Last active April 20, 2024 19:27
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
@carestad
carestad / laravel-superglobals-cheat-sheet.php
Last active February 21, 2023 20:49
Laravel superglobals cheat sheet
<?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();
@1hakr
1hakr / example.com
Last active November 29, 2024 20:48
Supercharge your NGIX config
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
@yidas
yidas / codeiginter-server-config.md
Last active March 8, 2025 15:25
Codeigniter 3 server configuration for Nginx & Apache

Codeigniter 3 server configuration for Nginx & Apache

Web Server Site Configuration

Recommended Apache Configuration

Use the following configuration in Apache's httpd.conf file or within a virtual host configuration. Note that you should set DocumentRoot and ServerName fit to your environment:

@egyjs
egyjs / Direct Link of YouTube videos.md
Last active November 11, 2024 10:13
PHP API To get Direct Link of YouTube videos