Skip to content

Instantly share code, notes, and snippets.

View gnuhub's full-sized avatar
🎯
Focusing

gnuhub gnuhub

🎯
Focusing
  • Mars
View GitHub Profile
@gnuhub
gnuhub / mx-init.sh
Created March 29, 2025 02:06
mx-init.sh
#!/usr/bin/env bash
# 1 source.list.d
# 2 upgrade
# 3 ssh
# 4 ufw
@gnuhub
gnuhub / mx.list
Created March 29, 2025 02:04
mx.list
# MX Community Main and Test Repos
deb https://mirrors.bfsu.edu.cn/mxlinux/mx/repo/ bookworm main non-free
deb-src https://mirrors.bfsu.edu.cn/mxlinux/mx/repo/ bookworm main non-free
#deb https://mirrors.bfsu.edu.cn/mxlinux/mx/testrepo/ bookworm test
#deb-src https://mirrors.bfsu.edu.cn/mxlinux/mx/testrepo/ bookworm test
#ahs hardware stack repo
#deb https://mirrors.bfsu.edu.cn/mxlinux/mx/repo/ bookworm ahs
@gnuhub
gnuhub / debian-stable-updates.list
Created March 29, 2025 02:03
debian-stable-updates.list
# Debian Updates
deb https://mirrors.bfsu.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://mirrors.bfsu.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
@gnuhub
gnuhub / debian.list
Created March 29, 2025 02:03
debian.list
# 1 Debian Stable.
deb https://mirrors.bfsu.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://mirrors.bfsu.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
# 2 debian-security
deb https://mirrors.bfsu.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
deb-src https://mirrors.bfsu.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
#debian backports
#deb https://mirrors.bfsu.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
@gnuhub
gnuhub / pve8.init
Last active February 21, 2025 02:14
#!/usr/bin/env bash
rm -rf /etc/apt/sources.list.d/pve-enterprise.list
rm -rf /etc/apt/sources.list.d/ceph.list
echo "deb http://mirrors.ustc.edu.cn/debian bookworm main contrib" > /etc/apt/sources.list
echo "deb http://mirrors.ustc.edu.cn/debian bookworm-updates main contrib" >> /etc/apt/sources.list
echo "deb http://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib" >> /etc/apt/sources.list
frs.sourceforge.net ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQD35Ujalhh+JJkPvMckDlhu4dS7WH6NsOJ15iGCJLC
frs.sourceforge.net ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA2uifHZbNexw6cXbyg1JnzDitL5VhYs0E65Hk/tLAPmcmm5GuiGeUoI/B0eUSNFsbqzwgwrttjnzKMKiGLN5CWVmlN1IXGGAfLYsQwK6wAu7kYFzkqP4jcwc5Jr9UPRpJdYIK733tSEmzab4qc5Oq8izKQKIaxXNe7FgmL15HjSpatFt9w/ot/CHS78FUAr3j3RwekHCm/jhPeqhlMAgC+jUgNJbFt3DlhDaRMa0NYamVzmX8D47rtmBbEDU3ld6AezWBPUR5Lh7ODOwlfVI58NAf/aYNlmvl2TZiauBCTa7OPYSyXJnIPbQXg6YQlDknNCr0K769EjeIlAfY87Z4tw==
frs.sourceforge.net ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCwsY6sZT4MTTkHfpRzYjxG7mnXrGL74RCT2cO/NFvRrZVNB5XNwKNn7G5fHbYLdJ6UzpURDRae1eMg92JG0+yo=
#!/usr/bin/env bash
ssh -o ProxyCommand="/usr/bin/socks5proxywrapper %h %p" "$@"
#!/usr/bin/env bash
connect -S 127.0.0.1:1080 "$@"
@gnuhub
gnuhub / profile
Created March 31, 2019 04:56
fix mesg: ttyname failed: Inappropriate ioctl for device
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
#mesg n || true
tty -s && mesg n
@gnuhub
gnuhub / osx-for-hackers.sh
Created April 11, 2017 21:45 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx