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
#include <bits/stdc++.h> | |
using namespace std; | |
#define dbg(x...) cerr << "[" << #x << "] = ["; _print(x) | |
void __print(int32_t x) {cerr << x;} | |
void __print(long x) {cerr << x;} | |
void __print(int64_t x) {cerr << x;} | |
void __print(unsigned x) {cerr << x;} | |
void __print(unsigned long x) {cerr << x;} |
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
{ | |
"bp": { | |
"prefix": "bp", | |
"body": [ | |
"#include <bits/stdc++.h>", | |
"using namespace std;\n", | |
"#define ll long long int", | |
"#define loop(i,a,b) for(int i=a;i<b;i++)\n", |
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 | |
curl https://raw.githubusercontent.com/TheSpeedX/SOCKS-List/master/http.txt -o init.txt | |
while read -r p_url | |
do | |
echo $p_url | |
curl -x $p_url "https://checkip.amazonaws.com/" | |
done < "$(pwd)/init.txt" | |
rm -r init.txt |
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
# include in sys varaibles to use everywhere | |
#!/bin/bash | |
echo "Enter branch name : " | |
read bname | |
chlist=$(git rev-list $bname --reverse) | |
tcnt=$(git rev-list $bname --count) | |
declare -i cnt=0 | |
for ch in $chlist | |
do | |
# temp=$(git stash) # remove the comment hash only when you want to stash any changes you make along the way |
NewerOlder