Skip to content

Instantly share code, notes, and snippets.

View Myer921's full-sized avatar
💭
照顾大小姐模式,目前背井离乡中

Dustrain Myer921

💭
照顾大小姐模式,目前背井离乡中
  • CatIO Network / @cationetwork
  • NR14-ALPHA-02
  • X @Myer921
View GitHub Profile

Keybase proof

I hereby claim:

  • I am Myer921 on github.
  • I am myer921 (https://keybase.io/myer921) on keybase.
  • I have a public key whose fingerprint is 2DB8 4A2D 2903 D3DF 4C0D 4E0B 7749 5108 2DC7 5076

To claim this, I am signing this object:

@Myer921
Myer921 / ipv6.sh
Last active May 26, 2016 10:06
没有isatapd的linux接入v6的脚本
#!/bin/bash
# 隧道服务器前缀
REMOTE_IP6="2402:f000:1:1501:200:5efe"
# 隧道服务器路由
REMOTE_IP4="166.111.21.1"
#IFACE4=`ip route show|grep default|sed -e 's/^default.*dev \([^ ]\+\).*$/\1/'`
# 上面的方法略过时 我自己取了个巧 直接crul不就好了
IP4=`curl http://members.3322.org/dyndns/getip`
# 创建
ip tunnel add sit1 mode sit remote $REMOTE_IP4 local $IP4
Option Explicit
Dim objshell,path,DigitalID, Result
Set objshell = CreateObject("WScript.Shell")
'Set registry key path
Path = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"
'Registry key value
DigitalID = objshell.RegRead(Path & "DigitalProductId")
Dim ProductName,ProductID,ProductKey,ProductData
'Get ProductName, ProductID, ProductKey
@Myer921
Myer921 / nmlan_sysctl.conf
Created March 5, 2018 14:48
99-sysctl.conf
# NMNET project 99-sysctl.conf version 1
# ip forward 4+6
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1
# bbr
net.ipv4.tcp_congestion_control=bbr
# Penetrate
net.ipv4.conf.default.rp_filter = 2
net.ipv4.conf.all.rp_filter = 2
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNsD1Y/dSXksdNZHvp87b34gABELkigflLy+y1dg6Z/A/vHmDSiHTOMeissDxzCPeRV/yuOLUDNT++t3hvKTJq4= ecdsa 256-081417
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ/YONNgNPTcB2kDADGD5nrj274br2BgcOEpbvJDAT1e ed25519 256-030718
@Myer921
Myer921 / iptables.sh
Last active March 6, 2018 18:28
iptables.sh
# CatIO network iptables
wan=
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
# 允许端口
@Myer921
Myer921 / shell.sh
Last active September 27, 2020 07:29
tinc server
# thx http://zfox49.farbox.com/post/2017-01-13-2
# create
tinc -n catio init node1
tinc -n catio add Mode Switch
tinc -n catio add Interface catio
tinc -n catio add Cipher aes-256-cbc
nano /etc/tinc/catio/tinc-up
# start
tinc -n catio start
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEt16BAKiCcQQ6MAK1G3ftnJJYHsTz1e9FIwIz6xXYA8 ed25519 256-051718
@Myer921
Myer921 / gist:5b87f12369e18646a1bbb9f92eb7d622
Created August 25, 2018 23:28 — forked from ldx/gist:9116170
Build a chroot with a CentOS 6.5 base install.
#!/bin/sh
#
# Build a chroot with a CentOS 6.5 base install.
#
CHROOT=/tmp/chroot
mkdir -p $CHROOT
mkdir -p $CHROOT/var/lib/rpm