Skip to content

Instantly share code, notes, and snippets.

@mike2718
mike2718 / 业余无线电应急通信主控╱公用呼叫频率选择备忘.md
Last active April 4, 2025 13:04
业余无线电应急通信主控╱公用呼叫频率选择备忘

业余无线电应急通信主控╱公用呼叫频率选择备忘

推荐的频率

2米波段

  • 145.100 MHz (FM直频、呼叫频率)
  • 145.000 MHz (CRAC推荐)[^1]
  • 144.640 MHz (APRS、CRAC指定)[^2][^3]
  • 144.100 MHz (CRSA指定)
@nabakdev
nabakdev / disable-ipv6-openwrt.md
Created June 6, 2023 13:56
disable IPV6 openwrt
uci set 'network.lan.ipv6=0'
uci set 'network.wan.ipv6=0'
uci set 'dhcp.lan.dhcpv6=disabled'

# Disable RA and DHCPv6 so no IPv6 IPs are handed out
uci -q delete dhcp.lan.dhcpv6
uci -q delete dhcp.lan.ra

# Disable the LAN delegation
@ChuckMichael
ChuckMichael / vc_redistr.md
Last active November 27, 2025 18:25
Install all Visual C++ Redistributables using only one command!

Warning

App Installer must be installed on Win10/11.

CMD

Tip

You can save it and run as batch file (.bat).

winget install --id=Microsoft.VCRedist.2005.x86 -e  && winget install --id=Microsoft.VCRedist.2005.x64 -e  && winget install --id=Microsoft.VCRedist.2008.x86 -e  && winget install --id=Microsoft.VCRedist.2008.x64 -e  && winget install --id=Microsoft.VCRedist.2010.x86 -e  && winget install --id=Microsoft.VCRedist.2010.x64 -e  && winget install --id=Microsoft.VCRedist.2012.x86 -e  && winget install --id=Microsoft.VCRedist.2012.x64 -e  && winget install --id=Microsoft.VCRedist.2013.x86 -e  && winget install --id=Microsoft.VCRedist.2013.x64 -e  && winget install --id=Microsoft.VCRedist.2015+.x86 -e  && winget install --id=Microsoft.VCRedist.2015+.x64 -e 
@FedericoTartarini
FedericoTartarini / main.tex
Created June 14, 2022 15:23
How to use the siunitx LaTeX package
\documentclass[12pt]{article}
\usepackage{booktabs}
\usepackage{siunitx}
\sisetup{locale = DE, per-mode = symbol, range-phrase=--, range-units=single, product-units=single}
\begin{document}
\section*{siunitx package}
@pemd-sys
pemd-sys / wxWidgetInstall.md
Last active June 23, 2025 13:04
Installing wxWidgets

Installing wxWidgets on Ubuntu

The latest download and install instructions are available in
https://docs.wxwidgets.org/3.1/plat_gtk_install.html
The wiki is a bit old so try following the above and consult the wiki for more details. BUT, follow the steps as per the docs NOT the wiki.
https://wiki.wxwidgets.org/Compiling_and_getting_started

However sometimes specially for new linux users it can become overwhelming and installation process can throw funny errors. So I have created a step by step process to hopefully help you compile wxwidgets. Enjoy :-)

Installing pre-requisites

@kbjarkefur
kbjarkefur / README.md
Last active December 6, 2025 19:26
Include link to git commit SHA used to compile pdf in LaTeX

Automatically include link to current git commit/SHA in compiled LaTeX pdf

This code lets you include an automatically updating link in a LaTeX compiled document that points to the last commit in the branch currently checked out in the repository where the .tex file used to compile the documents is saved. This allows you to track exactly which version of your .tex file was used to generate a given PDF.

Using Git you can then go back to the exact code used when compiling any saved or printed version of your document you find, no matter how long ago it was compiled. The commit SHA (the unique commit ID) will automatically update each time there is a new commit

"""
lsserial.py
This script lists the serial devices connected in verbose and summarized lists.
It is tested on Python3 only.
If you prefer a single line command, there are some alternatives below.
# Prerequisites
pip install pyserial
source ~/.zplug/init.zsh
# 履歴ファイルの保存先
export HISTFILE=${HOME}/.zsh_history
# メモリに保存される履歴の件数
export HISTSIZE=1000
# 履歴ファイルに保存される履歴の件数
export SAVEHIST=100000
@bkanhu
bkanhu / beginners_ubuntu.md
Last active November 5, 2025 10:07
A Beginners Guide on Things To Do After Installing Ubuntu.

Beginners Ubuntu

A Beginners Guide To Things To Do After Installing Ubuntu.

1. Check For Updates

sudo apt update && sudo apt upgrade

2. Enable additional repositories for more software

Ubuntu has several repositories from where it provides software for your system. Enabling all these repositories will give you access to more software and proprietary drivers.

@oseme-techguy
oseme-techguy / Correct_GnuPG_Permission.sh
Last active September 30, 2025 04:22
This fixes the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error while using Gnupg .
#!/usr/bin/env bash
# To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error
# Make sure that the .gnupg directory and its contents is accessibile by your user.
chown -R $(whoami) ~/.gnupg/
# Also correct the permissions and access rights on the directory
chmod 600 ~/.gnupg/*
chmod 700 ~/.gnupg