Skip to content

Instantly share code, notes, and snippets.

View akaxxi's full-sized avatar

aka.xxi akaxxi

View GitHub Profile
@akaxxi
akaxxi / RPi-aria2-with-webui.sh
Created October 11, 2016 12:21
Install Aria2 and webui on Raspberry Pi with one simple script.
#!/bin/sh
DOWNLOAD_DIR="${HOME}/MiniDLNA"
CONFIG_DIR="${HOME}/.aria2"
RPC_TOKEN="changeIt"
RPC_PORT="6800"
change_apt_source(){
if [ -f /etc/apt/sources.list ]; then
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
@akaxxi
akaxxi / ShowProductId.vbs
Last active September 23, 2020 05:10
From Sina Weibo: tombkeeper
Dim s
s = InputBox("当前Windows系统序列号为:", "Windows序列号", GetWindowsSN)
WScript.Quit
'取得当前Windows序列号函数
Function GetWindowsSN()
Const HKEY_LOCAL_MACHINE = &H80000002
strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion"
@akaxxi
akaxxi / RemoveAppPackages.ps1
Created September 25, 2016 10:53
Remove unnecessary packages on Windows 10.
<#
This script is intended to remove unnecessary packages on Windows 10.
Please run with PowerShell and USE IT AT YOUR OWN RISK.
#>
Get-AppxPackage *3dbuilder* | Remove-AppxPackage
Get-AppxPackage *windowsalarms* | Remove-AppxPackage
Get-AppxPackage *Appconnector* | Remove-AppxPackage
Get-AppxPackage *windowscalculator* | Remove-AppxPackage
Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage