Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.
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 | |
yum groupinstall "Development Tools" -y | |
yum install gmp-devel mpfr-devel libmpc-devel -y | |
# 安装 glibc-2.35 | |
cd /usr/local/src || exit | |
wget https://ftp.gnu.org/gnu/glibc/glibc-2.35.tar.gz | |
tar -xvzf glibc-2.35.tar.gz | |
mkdir build && cd build || exit 1 | |
../configure --prefix=/home/local/glibc-2.35 --enable-kernel=3.2 --enable-multi-arch --enable-stack-protector=strong --with-headers=/usr/include |
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
#!/system/bin/sh | |
# https://github.com/topjohnwu/Magisk/blob/master/native/src/core/su/su_daemon.cpp | |
# https://android.stackexchange.com/a/217104/400354 | |
UID=$(grep com.termux /data/system/packages.list | awk '{print $2}') | |
############################################################################################################ | |
# This command needs to be edited manually before use, |
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
"lldb.launch.preRunCommands": [ | |
"script lldb.debugger.HandleCommand('settings set target.source-map /rustc/{} \"{}/lib/rustlib/src/rust\"'.format(os.popen('rustc --version --verbose').read().split('commit-hash: ')[1].split('\\n')[0].strip(), os.popen('rustc --print sysroot').readline().strip()))" | |
] |
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/local/bin/luajit | |
local interface = "Wi-Fi" | |
local action = arg[1] | |
assert(action == "add" or action == "del" or action == "get") | |
local cmd = "" | |
if action == "get" then | |
cmd = "/usr/bin/sudo /usr/sbin/networksetup -getadditionalroutes " .. interface | |
print(cmd) |
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
((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|((:[0-9A-Fa-f]{1,4}){1,6})|:)|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[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
function __proxy_enable | |
set IP 127.0.0.1 | |
set PORT 12345 | |
set PROT socks5 | |
set OPT -gx | |
if test (count $argv) -gt 0 | |
for i in (seq 1 (count $argv)) | |
set arg $argv[$i] | |
switch $arg |
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
.DEFAULT_GOAL:=help | |
SHELL:=/bin/bash | |
##@ Dependencies | |
.PHONY: deps | |
deps: ## Check dependencies | |
$(info Checking and getting dependencies) |
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
#add this function to your $HOME/.config/fish/config.fish | |
function man | |
set -x LESS_TERMCAP_mb (printf "\e[01;32m") | |
set -x LESS_TERMCAP_md (printf "\e[01;32m") | |
set -x LESS_TERMCAP_me (printf "\e[0m") | |
set -x LESS_TERMCAP_se (printf "\e[0m") | |
set -x LESS_TERMCAP_so (printf "\e[01;33m") | |
set -x LESS_TERMCAP_ue (printf "\e[0m") | |
set -x LESS_TERMCAP_us (printf "\e[1;4;31m") |
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
package main | |
import ( | |
"fmt" | |
"net" | |
"os" | |
"os/signal" | |
"reflect" | |
"syscall" | |
) |
NewerOlder