Skip to content

Instantly share code, notes, and snippets.

View Arnie97's full-sized avatar

Arnie97

View GitHub Profile
@Arnie97
Arnie97 / tewa800e.js
Created July 11, 2023 14:22
北京联通天邑 TEWA-800E 光猫登录超管模式改桥接
$('#username').value =
$('#password').value = 'CUAdmin'
$('#loginfrm').method = 'GET'
$('#loginfrm').submit()
@Arnie97
Arnie97 / ip.log
Last active March 22, 2024 03:05
curl -4 cip.cc
curl -4 eth0.me
curl -4 ip.3322.org
curl -4 ip.3322.net
curl -4 ip.xdty.org
curl -4 ipinfo.io/ip
curl -4 myip.ipip.net
curl -6 api.myip.la
curl -6 wgetip.com
curl -6 icanhazip.com
@Arnie97
Arnie97 / apt-auto
Last active November 28, 2023 14:28
Mark preinstalled packages as automatic installed
dpkg-query -Wf '${Package}\t${Priority}\t${Essential}\n' | egrep '\trequired|yes$|apt|base|common|data|deb|dhcp|g(nu)?pg|init|lib|perl|python|sys|tool|util' | cut -f 1 | sudo xargs apt-mark auto
@Arnie97
Arnie97 / kernel
Last active October 11, 2022 09:45
Boot Raspberry Pi 2B image in QEMU
# run the kernel in qemu
sudo qemu-img resize 2022-09-22-raspios-bullseye-armhf-lite.img 2G
sudo losetup --show -Pf 2022-09-22-raspios-bullseye-armhf-lite.img
sudo mkdir /media/loop0p1
sudo mount -v /dev/loop0p1 /media/loop0p1
sudo qemu-system-arm -M raspi2b -append "rw earlyprintk loglevel=8 console=ttyAMA0,115200 dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 panic=1 rootwait" -serial stdio -vnc "[::]:0" -kernel /media/loop0p1/kernel7.img -dtb /media/loop0p1/bcm2709-rpi-2-b.dtb -sd 2022-09-22-raspios-bullseye-armhf-lite.img
@Arnie97
Arnie97 / ufbump
Last active August 29, 2022 08:19
Neovim 0.5+ undo file version bumping script. Fixes "E824: Incompatible undo file"
#!/usr/bin/env python3
"""
Neovim undo file version bumping script
This python script backups and converts Vim undo files generated by
vanilla Vim 7.2.444 - 9.0 or Neovim 0.1.0 - 0.4.4 (UF_VERSION=2) to
reuse them on Neovim 0.5.0+ (UF_VERSION=3) without the error message
"E824: Incompatible undo file".

ダイヤ

カタカナターミネーター

カタカナ‌ターミネーター

カタカナ ターミネーター

ターミネー

@Arnie97
Arnie97 / chn_fonts.reg
Last active February 22, 2021 02:57 — forked from swordfeng/chn_fonts.reg
Chinese font settings in wine
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Arial"="LiberationSans-Regular.ttf"
"Arial Black"="LiberationSans-Bold.ttf"
"Arial CE,238"="LiberationSans-Regular.ttf"
"Arial CYR,204"="LiberationSans-Regular.ttf"
"Arial Greek,161"="LiberationSans-Regular.ttf"
"Arial TUR,162"="LiberationSans-Regular.ttf"
"Courier New"="LiberationMono-Regular.ttf"
#!/usr/bin/env python3
"""inflate.py: full archive decompression helper for bkcrack
usage: %s path/to/encrypted.zip kx ky kz
"""
import os
import subprocess
import sys
#!/usr/bin/env Rscript
library('tools')
library('RColorBrewer')
library('ScottKnottESD')
suppressMessages(library('gdata'))
doubleSK <- function(file, clusterers) {
data <- read.xls(file, header=F)
data <- as.data.frame(t(data))
@Arnie97
Arnie97 / remove_watermark.py
Last active July 31, 2022 12:50
Removes the annoying watermarks of it-ebooks.info's downloaded eBooks
#!/usr/bin/env python3
import sys
import re
import shutil
import argparse
import binascii
#
# Author: Daxda