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 | |
if [ -z "$PASS" ]; then | |
echo "Please setup password for the archive" | |
exit 0 | |
fi | |
ROOT=/mnt/data/backups/archives | |
SOURCE=/mnt/data/workspace |
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/sh | |
# Archlinux Server Optimization | |
cat > /etc/systemd/user.conf <<EOF | |
DefaultLimitNOFILE = 1048576 | |
EOF | |
cat > /etc/systemd/system.conf <<EOF | |
DefaultLimitNOFILE = 2097152 | |
EOF |
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 | |
# License: Public Domain | |
# 登陆 connect.qq.com 获取 uin 和 skey 的 cookie 拷贝填充到代码 | |
import requests | |
session = requests.session() | |
session.cookies.set("uin", "your uin id from connect.qq.com cookie") | |
session.cookies.set("skey", "your skey from connect.qq.com cookie") |