Skip to content

Instantly share code, notes, and snippets.

View Zenuncl's full-sized avatar
🏠
Working from home

Z. Jiang Zenuncl

🏠
Working from home
View GitHub Profile
@codexss
codexss / smstools3.md
Last active October 15, 2023 17:47
Openwrt/LEDE smstools3 forward sms to telegram
opkg update
opkg install kmod-usb-serial kmod-usb-serial-wwan kmod-usb-serial-option usb-modeswitch smstools3 curl iconv

vi /usr/local/bin/pushsms

#!/bin/sh
anonymous
anonymous / gist:06090717c8e1d047bc99d2b140cfae8d
Created November 14, 2016 05:34
blacklist
[
"https://gq3brsw46hyrns0w4hjiqhtab8e9q24h93g8estrbgwt4h5h0triosgb80wt.wordpress.com/2016/10/26/%e9%95%bf%e5%b9%b3-%e4%bb%8e%e4%b8%a5%e6%b2%bb%e5%85%9a-%e5%94%af%e6%9c%89%e4%b8%89%e6%9d%83%e5%88%86%e7%ab%8b%e5%be%b7%e5%9b%bd%e4%b9%8b%e5%a3%b0%e4%b8%ad%e6%96%87%e7%bd%91/?from=groupmessage&isappinstalled=0",
"https://www.evernote.com/shard/s596/sh/b273afd0-4564-40f2-b81f-57ac23c3b61b/4e2b83c48886db7c1b2c5537d2483a99",
"https://won528.wordpress.com",
"http://url.cn/28ucN6a",
"https://win358.wordpress.com",
"https://red6451.wordpress.com",
"https://get510.wordpress.com",
"https://sit222.wordpress.com",
" http://alturl.com/9w4aq",
@elerch
elerch / arch-usb-uefi.md
Last active January 26, 2024 22:20
Installation of Arch Linux on a USB stick with UEFI and legacy BIOS Support

Our goal here is to have one USB stick to rule them all. Objectives:

  • We want a full system - not a live CD
  • We want to boot this system on a Macbook Pro (requires UEFI)
  • We want to boot this system on a Acer C720 Chromebook (requires Legacy BIOS support)
  • We want the system "functional"

The last bullet is subject to interpretation, but I'm defining functional as:

  • X Windows works (with LXDE)
@wong2
wong2 / cmds.txt
Last active May 2, 2021 12:13
在任意聊天中输入。 [ ]表示后面要跟一个空格(可能还需要别的参数才能生效)
//wearversion
//wearlog
//wearvoiceinputenable
//wearvoiceinputdisable
//weargoogleapi
//assert
//pushassert
//uplog
//upcrash
//switchnotificationstatus
@cattyhouse
cattyhouse / Backup Archlinux and Restore to another machine
Last active November 3, 2017 01:46
Backup Archlinux and Restore to another machine
## Backup the current vps 备份当前vps
1. Clean Arch system 清理系统
pacman -Scc
2. Create an excluded file to exclude certain dirs 建立一个需要排除的目录的文件,这些文件不必要备份,新系统会自动生成
cat /root/backup/exclude.txt
/tmp/*
/root/backup/*
/proc
/dev
@ahmozkya
ahmozkya / README.md
Last active July 7, 2023 09:27
Homebrew with DNSMasq + DNSCrypt-proxy (OpenDNS)
@Zenuncl
Zenuncl / firewall.sh
Created December 10, 2013 23:00 — forked from x1a0/firewall.sh
#! /bin/bash
# Set the default policies to allow everything while we set up new rules.
# Prevents cutting yourself off when running from remote SSH.
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
# Flush any existing rules, leaving just the defaults
iptables -F
@davidbalbert
davidbalbert / gist:6815258
Last active February 29, 2024 16:12
How to install custom SSL certificates on an ASUS RT-N66U running asuswrt-merlin
###########################################
# IMPORTANT NOTE:
#
# As of asuswrt-merlin 380.67 Beta, you
# can now configure SSL certificates from
# the Webui, making these instructions
# unnecessary.
###########################################
@yorkxin
yorkxin / KeyBindings.json
Last active November 29, 2018 20:40
My Sublime Text 2 Config
/* Default (OS X).sublime-keymap */
/* Key Bindings - User */
[
{ "keys": ["ctrl+shift+."], "command": "erb", "context":
[
{
"key": "selector",
"operator": "equal",
"operand": "text.html.ruby, text.haml, source.yaml, source.css, source.scss, source.js, source.coffee"
}
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 22, 2024 17:28
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname