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
<?xml version="1.0" ?> | |
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | |
<module name="Checker"> | |
<!-- 检查文件是否以一个空行结束 --> | |
<module name="NewlineAtEndOfFile" /> | |
<!-- 文件长度不超过1500行 --> | |
<module name="FileLength"> | |
<property name="max" value="1500" /> | |
</module> | |
<!-- 每个java文件一个语法树 --> |
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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Maintainer: | |
" Amir Salihefendic — @amix3k | |
" | |
" Awesome_version: | |
" Get this config, nice color schemes and lots of plugins! | |
" | |
" Install the awesome version from: | |
" | |
" https://github.com/amix/vimrc |
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
# Copyright 2017 The Kubernetes Authors. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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 | |
cur_dir=/tmp/unixbench | |
# Check System | |
[[ $EUID -ne 0 ]] && echo 'Error: This script must be run as root!' && exit 1 | |
[[ -f /etc/redhat-release ]] && os='centos' | |
[[ ! -z "$(egrep -i debian /etc/issue)" ]] && os='debian' | |
[[ ! -z "$(egrep -i ubuntu /etc/issue)" ]] && os='ubuntu' | |
[[ "$os" == '' ]] && echo 'Error: Your system is not supported to run it!' && exit 1 |
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
################################################# | |
# 针对多客户端的OpenVPN 2.0 的服务器端配置文件示例 | |
# | |
# 本文件用于多客户端<->单服务器端的OpenVPN服务器端配置 | |
# | |
# OpenVPN也支持单机<->单机的配置(更多信息请查看网站上的示例页面) | |
# | |
# 该配置支持Windows或者Linux/BSD系统。此外,在Windows上,记得将路径加上双引号, | |
# 并且使用两个反斜杠,例如:"C:\\Program Files\\OpenVPN\\config\\foo.key" | |
# |
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
sudo apt update | |
# sudo apt upgrade | |
sudo apt install -y libcurl4-openssl-dev libplist-dev libzip-dev openssl libssl-dev libusb-1.0-0-dev libreadline-dev build-essential git make automake libtool pkg-config | |
git clone https://github.com/libimobiledevice/libirecovery | |
git clone https://github.com/libimobiledevice/idevicerestore | |
git clone https://github.com/libimobiledevice/usbmuxd | |
git clone https://github.com/libimobiledevice/libimobiledevice | |
git clone https://github.com/libimobiledevice/libusbmuxd | |
git clone https://github.com/libimobiledevice/libplist |
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
# proxy list | |
alias proxy='export all_proxy=socks5://127.0.0.1:1080' | |
alias unproxy='unset all_proxy' |
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/sh | |
set -e | |
# Usage: | |
# curl ... | ENV_VAR=... sh - | |
# or | |
# ENV_VAR=... ./install.sh | |
# | |
# Example: | |
# Installing a server without traefik: |
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/sh | |
yum -y install wget openssl tar gawk grep sed \ | |
bind-utils net-tools iproute iptables iptables-services \ | |
git htop iftop iotop bash-completion vim |
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/sh | |
# 开启转发 | |
echo 'net.ipv4.ip_forward=1' >/usr/lib/sysctl.d/20-forward.conf | |
sysctl -p | |
# 指定外网 IP | |
# iptables -t nat -A POSTROUTING -s 192.168.0.0/16 -j SNAT --to-source 192.168.0.1 | |
# 内网段 |
OlderNewer