anduin / Run VSCode in SAW
0 likes
0 forks
1 files
Last active
1 | function Start-VSCode { |
2 | param ( |
3 | [string[]]$Arguments # 重命名参数 |
4 | ) |
5 | |
6 | Write-Output "Received arguments: $Arguments" |
7 | $codePath = (Get-Command 'code').Path |
8 | |
9 | if (-not $codePath) { |
10 | Write-Host "'code' not found" |
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 |
anduin / Burn an ISO to usb
0 likes
0 forks
1 files
Last active
1 | #!/bin/bash |
2 | |
3 | #========================== |
4 | # Set up the environment |
5 | #========================== |
6 | set -e # exit on error |
7 | set -o pipefail # exit on pipeline error |
8 | set -u # treat unset variable as error |
9 | |
10 | #========================== |
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> |
AimerNeige / Minecraft Auto TP
0 likes
0 forks
1 files
Last active
auto load your minecraft map with tp command
1 | import os |
2 | import time |
3 | |
4 | PLAYER_NAME = "Notch" |
5 | TMUX_SESSION_NAME = "minecraft" |
6 | SLEEP_DURATION = 6 |
7 | CHUNK_SIZE = 16 |
8 | VIEW_DISTANCE = 24 |
9 | WORLD_SIZE = 4096 |
10 | TP_STEP = CHUNK_SIZE * VIEW_DISTANCE |