redirect to awesome-hust
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 <stdio.h> | |
#include <sys/mman.h> | |
#include <fcntl.h> | |
#include <pthread.h> | |
#include <unistd.h> | |
#include <sys/stat.h> | |
#include <string.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <sys/types.h> |
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 | |
uname -r | grep -E '^4\.(1[^\.]|9)' > /dev/null | |
(( $? == 1 )) && echo 'Linux kernel version must >= 4.9' && exit 1 | |
[[ `whoami` != root ]] && echo 'You must be root' && exit 1 | |
lsmod | grep bbr > /dev/null | |
(( $? == 1 )) && | |
modprobe tcp_bbr && |
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
/* | |
* Reconstructed by Recolic Keghart. | |
* Nov 1, 2017 | |
* LICENSE := GPLv3 | |
*/ | |
#define STANDARD_SPEED 200 | |
#define SLOW_WHILE_AUTO_DRIVE 0.9 | |
int usual_speed = STANDARD_SPEED; | |
int bReverseMode = 0; | |
int bForceBoost = 0; |
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/env python3 | |
# by Recolic Keghart, Nov 16 | |
import sys | |
import os | |
import subprocess | |
if len(sys.argv) < 2: | |
print('Error: go-get-for-china <pkg path>') | |
exit(1) |
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 | |
height=$1 | |
sleep_time=$2 | |
[[ $height == '' ]] && echo 'Usage: ./hanoi.bash <height> [sleep_time = 0.6]' && exit 1 | |
[[ $sleep_time == '' ]] && sleep_time=0.6 | |
declare -a A=( $(seq 1 $height) ) | |
declare -a B |
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
Port = 655 | |
Subnet = 10.143.0.127/32 | |
-----BEGIN RSA PUBLIC KEY----- | |
MIICCgKCAgEAnjwfPNIG0EfokEo+Rlk81Djhqvp/KiB/UiBQy7l+g/3SJJ8halFO | |
D8AWFP520Epfn5PseGRMIwti745AGEMWYRnt2JgrMAJvg6AQmiiefBiCoaRtH9su | |
Tpfc9JekWKGzyw7E+kbxiawqQ3z7Uq85YXzrdNKKvVzKn4iU4QNI4mymAgnqPqXn | |
2YCCyc4oz5CTi16VYbMFq6DECvYU74QlhQLNgahmPfXhRWKi9bBCe0lCu8UfvTpJ | |
CVkZzJttyK+hJU6IX0u3ilwpCrnDED5cmhOamfE0IN/kkbW7egcLsmXvPQ6MYGfD | |
0yn1apGU27qp7zgh7IF0arT5rNylIBo+c+is2quoKoVGNXBJlY0GJBSYmA/6+Tr0 |
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
#!/usr/bin/env python3 | |
# Use this script with https://recolic.net/phy and https://recolic.net/phy2 | |
# to avoid typing fucked numbers into page by hand. | |
# Fuck the chinese shits who prevent you from pasting password. | |
# E.x. Alibaba bitch | |
from pykeyboard import PyKeyboard | |
import time | |
def virtual_type_array(arrToType, noWait=False): | |
k = PyKeyboard() |
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
[[source]] | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
name = "pypi" | |
[packages] | |
crcmod = "*" | |
pyserial = "*" | |
[dev-packages] |
I've used @beliys code and made a bash command.
Setup: Add this code to your ~/.bash_aliases file.
function gdrive_download () {
CONFIRM=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate "https://docs.google.com/uc?export=download&id=$1" -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$CONFIRM&id=$1" -O $2
rm -rf /tmp/cookies.txt
}
OlderNewer