AimerNeige / gen_random_string.py
0 likes
0 forks
1 files
Last active
1 | def generate_random_string(n): |
2 | letters = string.ascii_letters + string.digits |
3 | return ''.join(random.choice(letters) for _ in range(n)) |
AimerNeige / pullcheck.sh
0 likes
0 forks
1 files
Last active
1 | if [[ $(git fetch origin 2>&1) ]]; then |
2 | echo "WARNING! pull the newest code before build" |
3 | exit 1 |
4 | fi |
AimerNeige / ubuntu-drivers.sh
0 likes
0 forks
1 files
Last active
1 | ubuntu-drivers devices |
2 | sudo ubuntu-drivers autoinstall |
AimerNeige / TTY Fonts
0 likes
0 forks
1 files
Last active
Change the font or the font size in the TTY (console)
1 | # https://askubuntu.com/questions/173220/how-do-i-change-the-font-or-the-font-size-in-the-tty-console |
2 | |
3 | sudo dpkg-reconfigure console-setup |
4 | |
5 | # UTF-8 |
6 | # Combined - Latin, ... |
7 | # Terminus |
8 | # Set Font Size |
AimerNeige / Rotate the screen in a tty
0 likes
0 forks
1 files
Last active
1 | # https://bbs.archlinux.org/viewtopic.php?id=94059 |
2 | |
3 | # monitor rotated 90 degrees clockwise |
4 | echo 3 > /sys/class/graphics/fbcon/rotate_all |
5 | |
6 | # monitor 90 degrees counter clockwise |
7 | echo 1 > /sys/class/graphics/fbcon/rotate_all |
AimerNeige / openwrt-services.md
0 likes
0 forks
1 files
Last active
- luci-app-wechatpush
- luci-app-ddns-go
- luci-app-frpc
- luci-app-frps
- luci-app-upnp
- luci-app-qos
- adguardhome
AimerNeige / bilibili-download.sh
0 likes
0 forks
1 files
Last active
1 | #!/bin/bash |
2 | |
3 | user_urls=( |
4 | "https://space.bilibili.com/8776737/video" # 阿江君 |
5 | "https://space.bilibili.com/20247643/video" # 拉环儿_ |
6 | "https://space.bilibili.com/23945810/video" # 爱抽卡的白熊 |
7 | "https://space.bilibili.com/287551041/video" # 一万根韭菜 |
8 | "https://space.bilibili.com/15232589/video" # 白木哒哒哒 |
9 | "https://space.bilibili.com/6768352/video" # 粥粥的奇妙冒险 |
10 | "https://space.bilibili.com/11742550/video" # 哈米伦的弄笛者 |
AimerNeige / bilibili.py
0 likes
0 forks
1 files
Last active
1 | #!/usr/bin/env python3 |
2 | # -*- encoding: utf-8 -*- |
3 | # Author: AimerNeige |
4 | # Site: https://aimerneige.com |
5 | # Mail: aimer.neige.soft@gmail.com |
6 | |
7 | import requests |
8 | import subprocess |
9 | import json |
10 | import sys |
AimerNeige / stop_always_restart_container.sh
0 likes
0 forks
1 files
Last active
1 | sudo docker update --restart=no <container_id> |
2 | sudo docker stop <container_id> |
Newer
Older