All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Login


All New Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated
AimerNeige's Avatar

AimerNeige / pullcheck.sh

0 likes
0 forks
1 files
Last active 1731585672
1 if [[ $(git fetch origin 2>&1) ]]; then
2 echo "WARNING! pull the newest code before build"
3 exit 1
4 fi
anduin's Avatar

anduin / 监控服务器实时IP流量

0 likes
0 forks
3 files
Last active 1731231225
1 #!/bin/bash
2
3 function monitor_traffic() {
4 if [ -z "$1" ]; then
5 echo "Usage: $0 <network_interface>"
6 echo "Available network interfaces:"
7 ip link show | awk -F': ' '/^[0-9]+: /{print $2}'
8 exit 1
9 fi
anduin's Avatar

anduin / My Virtual Machine

0 likes
0 forks
1 files
Last active 1736139752
1 <domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
2 <name>win11</name>
3 <uuid>756529ab-15aa-4223-bcee-df013e8bd3e4</uuid>
4 <metadata>
5 <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
6 <libosinfo:os id="http://microsoft.com/win/11"/>
7 </libosinfo:libosinfo>
8 </metadata>
9 <memory unit="KiB">67108864</memory>
10 <currentMemory unit="KiB">67108864</currentMemory>
anduin's Avatar

anduin / 机顶盒

0 likes
0 forks
2 files
Last active 1730290493
这是一个Chrome插件。安装后,在浏览器打开 CCTV 的电视直播网站时,自动将视频全屏,并支持[]键换台
1 // 函数:将视频元素设置为覆盖整个窗口
2 function makeVideoFullWindow(video) {
3 console.log('Making video full window.');
4
5 // 设置视频的样式,使其占据整个页面
6 video.style.position = 'fixed';
7 video.style.top = '0';
8 video.style.left = '0';
9 video.style.width = '100vw';
10 video.style.height = '100vh';
AimerNeige's Avatar

AimerNeige / ubuntu-drivers.sh

0 likes
0 forks
1 files
Last active 1728410811
1 ubuntu-drivers devices
2 sudo ubuntu-drivers autoinstall
AimerNeige's Avatar

AimerNeige / TTY Fonts

0 likes
0 forks
1 files
Last active 1728398875
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's Avatar

AimerNeige / Rotate the screen in a tty

0 likes
0 forks
1 files
Last active 1728398632
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's Avatar

AimerNeige / openwrt-services.md

0 likes
0 forks
1 files
Last active 1727518631
  • luci-app-wechatpush
  • luci-app-ddns-go
  • luci-app-frpc
  • luci-app-frps
  • luci-app-upnp
  • luci-app-qos
  • adguardhome
anduin's Avatar

anduin / apt-mirror

0 likes
0 forks
1 files
Last active 1727105354
1 #!/usr/bin/perl
2
3 =pod
4
5 =head1 NAME
6
7 apt-mirror - apt sources mirroring tool
8
9 =head1 SYNOPSIS
AimerNeige's Avatar

AimerNeige / bilibili-download.sh

0 likes
0 forks
1 files
Last active 1727206403
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" # 哈米伦的弄笛者
Newer Older

Powered by Opengist ⋅ Load: 59ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文