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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="twitter-comment"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div class="media"> |
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
const find = (str, char)=>{ | |
let indexes = [] | |
for(let i=0; i<str.length; i++){ | |
// console.log(str.charAt(0) + "==" + char) | |
if(str.charAt(i) == char){ | |
indexes.push(i); | |
} | |
} | |
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
import React from 'react'; | |
export const BreakpointDebug: React.FC<{}> = () => { | |
return ( | |
<div className="bg-white rounded-full flex items-center justify-center p-2 px-3"> | |
<div className="sm:hidden md:hidden lg:hidden">sm</div> | |
<div className="hidden sm:block md:hidden lg:hidden">md</div> | |
<div className="hidden sm:hidden md:block lg:hidden">lg</div> | |
<div className="hidden sm:hidden md:hidden lg:block">lg+</div> | |
</div> |
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
shahid.codes { | |
try_files {path} / | |
encode gzip | |
root * /usr/share/caddy | |
file_server | |
} |
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
for repo in $(curl -s --header "PRIVATE-TOKEN: <private token>" https://gitlab.com/api/v4/groups/<group id>?include_subgroups=true | jq ".projects[].ssh_url_to_repo" | tr -d '"'); do git clone $repo; done; |
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
{ | |
"bip": "10.200.0.1/24", | |
"default-address-pools":[ | |
{"base":"10.201.0.0/16","size":24}, | |
{"base":"10.202.0.0/16","size":24} | |
] | |
} |
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
[[889,382],[550,23],[801,552],[332,71],[838,848],[306,9],[28,130],[571,745],[971,739],[411,304],[878,659],[796,57],[854,22],[97,927],[261,878],[894,67],[849,904],[502,638],[220,345],[703,593],[338,199],[292,308],[581,592],[383,537],[280,296],[828,839],[910,929],[166,105],[628,13],[939,103],[96,418],[699,9],[915,958],[963,370],[21,573],[836,12],[63,118],[519,351],[762,503],[50,408],[519,714],[893,908],[752,991],[139,353],[300,991],[231,35],[824,968],[873,475],[555,553],[239,953],[880,980],[351,760],[749,514],[999,26],[212,890],[281,928],[67,914],[409,629],[282,836],[479,157],[157,677],[6,613],[432,567],[630,118],[304,488],[783,638],[112,135],[565,141],[51,688],[129,31],[905,625],[765,875],[446,102],[985,283],[350,504],[993,475],[128,23],[249,851],[893,51],[716,227],[782,686],[663,727],[382,630],[147,492],[112,945],[912,379],[394,460],[624,100],[34,367],[877,259],[678,29],[37,131],[802,757],[68,379],[96,396],[699,957],[25,417],[2,692],[81,530],[277,275],[816,895],[448,828],[48,784],[977,357],[215,352],[122,73], |
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
let startCharCode = 64 | |
const letters = [ | |
'A', 'B', 'C', 'D', 'E', 'F', | |
'G', 'H', 'I', 'J', 'K', 'L', | |
'M', 'N', 'O', 'P', 'Q', 'R', | |
'S', 'T', 'U', 'V', 'W', 'X', | |
'Y', 'Z' | |
] |
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
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker} | |
mkdir -p $DOCKER_CONFIG/cli-plugins | |
curl -SL https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose | |
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose |
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/sh | |
# Stackoverflow - https://superuser.com/a/1111215 | |
sudo route delete -net default -interface ppp0 | |
sudo route add -net 0.0.0.0 -interface en0 | |
sudo route add -net 172.17.0.0 -netmask 255.255.0.0 -interface ppp0 | |
sudo route add -net 115.84.158.0 -netmask 255.255.255.0 -interface ppp0 |