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 | |
# Bash color | |
echo "export LS_OPTIONS='--color=auto'" >> /root/.bashrc | |
echo "eval \"\`dircolors\`\"" >> /root/.bashrc | |
echo "alias ls='ls \$LS_OPTIONS'" >> /root/.bashrc | |
source /root/.bashrc | |
# Install packages | |
apt update | |
apt install -y vim python3-pip vnstat sysstat lsof tcptrack tcpdump \ |
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 | |
# Bash color | |
echo "export LS_OPTIONS='--color=auto'" >> /root/.bashrc | |
echo "eval \"\`dircolors\`\"" >> /root/.bashrc | |
echo "alias ls='ls \$LS_OPTIONS'" >> /root/.bashrc | |
source /root/.bashrc | |
# Install packages | |
apt update | |
apt install -y vim python3-pip vnstat sysstat lsof tcptrack tcpdump \ |
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
# $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $ | |
# This is the sshd server system-wide configuration file. See | |
# sshd_config(5) for more information. | |
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin | |
# The strategy used for options in the default sshd_config shipped with | |
# OpenSSH is to specify options with their default value where | |
# possible, but leave them commented. Uncommented options override the |
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
set nocompatible | |
autocmd BufReadPost * if line("'\"") && line("'\"") <= line("$") | exe "normal `\"" | endif | |
set noexpandtab | |
set shiftwidth=8 | |
set tabstop=8 | |
set bs=2 " allow backspacing over everything in insert mode set bs=2 | |
set cursorline " highlight cursor line | |
"set cursorcolumn " highlight cursor column | |
set nu " set line number |
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 | |
# Letting iptables see bridged traffic | |
cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf | |
br_netfilter | |
EOF | |
cat <<EOF | sudo tee /etc/sysctl.d/k8s.conf | |
net.bridge.bridge-nf-call-ip6tables = 1 | |
net.bridge.bridge-nf-call-iptables = 1 | |
EOF |
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 | |
# Letting iptables see bridged traffic | |
cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf | |
br_netfilter | |
EOF | |
cat <<EOF | sudo tee /etc/sysctl.d/k8s.conf | |
net.bridge.bridge-nf-call-ip6tables = 1 | |
net.bridge.bridge-nf-call-iptables = 1 | |
EOF |
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
const axios = require('axios').default; | |
const HttpsProxyAgent = require('https-proxy-agent'); | |
axios.interceptors.request.use(config => { | |
if (config.proxy) { | |
if (config.url.indexOf('https') !== -1) { | |
let httpsAgent = new HttpsProxyAgent(config.proxy); | |
config.httpsAgent = httpsAgent; | |
config.proxy = false; | |
} |
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" | |
"runtime" | |
"sync" | |
) | |
func main() { | |
// Number of routines, can be set as number of CPUs. |