hkp://pgp.mit.edu:80
hkps://pgp.mit.edu
hkps://keyserver.ubuntu.com
hkp://p80.pool.sks-keyservers.net:80
hkps://hkps.pool.sks-keyservers.net (dried up)
This file contains 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
{ | |
"log": { | |
"loglevel": "warning" | |
}, | |
"inbounds": [ | |
{ | |
"listen": "0.0.0.0", | |
"port": 1080, | |
"protocol": "socks", | |
"settings": { |
This file contains 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
using System; | |
using System.Net.Http; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.IdentityModel.Clients.ActiveDirectory; | |
namespace test | |
{ | |
public class HttpClientFactory : IHttpClientFactory | |
{ |
This file contains 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 | |
set -e | |
# Simply create an Azure Web App with qBittorrent (only can download due to incoming TCP/UDP connection would be blocked) | |
RESOURCE_GROUP="" | |
APPSERVICE_PLAN="" | |
WEBAPP="" | |
STORAGE_ACCOUNT="" |
This file contains 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
#!/usr/bin/env python3 | |
import os | |
import sys | |
import logging | |
def main(): | |
pass | |
if __name__ == '__main__': | |
logging.basicConfig( |
This file contains 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 /etc/inputrc | |
set completion-ignore-case On |
This file contains 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
azureexport() { | |
if [[ $# < 2 ]]; then | |
echo "export <key> <env_key>" | |
return | |
fi | |
export $2=`python -c 'import os, json, sys; print(json.load(open(os.environ["AZURE_AUTH_LOCATION"]))[sys.argv[1]])' $1` | |
} | |
azureexportall() { | |
azureexport clientId AZURE_CLIENT_ID |
This file contains 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> | |
struct A1 { | |
virtual void a1() = 0; | |
}; | |
struct A2 { | |
virtual void a2() = 0; | |
}; |
This file contains 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
PS1="$PS1"'\[\033[31m\]' # change to light red | |
PS1="$PS1"' \t' # time |
This file contains 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 | |
parse_git_branch() { | |
branch=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'` | |
if [[ ! -z "$branch" ]]; then | |
printf " $branch" | |
fi | |
} | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h \[\033[01;34m\]\w\[\033[01;31m\]$(parse_git_branch) \[\033[01;35m\]\t\[\033[00m\]\$ ' |
NewerOlder