Skip to content

Instantly share code, notes, and snippets.

@letssudormrf
letssudormrf / dummy_9parchments.py
Created January 22, 2021 08:01 — forked from BSoD123456/dummy_9parchments.py
九张羊皮纸 STEAM版用 联机辅助脚本
#! python2
# -*- coding: utf-8 -*-
# 九张羊皮纸 STEAM版用 联机辅助脚本
# 本脚本用于,减少STEAM游戏九张羊皮纸在线游戏时的频繁掉线现象。
# 安装方法:
# 1, 请去Python官方网站下载Python 2.7版安装程序并安装。
# 版本一定必须是2.7或其子版本,若使用3以上版本将无法正确运行。
# 2, 请修改操作系统中的HOSTS文件,增加条目: 127.0.0.1 master.frozenbyte-online.com
@letssudormrf
letssudormrf / google-authenticator.sh
Created January 22, 2021 03:51 — forked from Malvineous/google-authenticator.sh
Shell script to generate Google Authenticator codes
#!/bin/sh
# This is the path to the Google Authenticator app file. It's typically located
# in /data under Android. Copy it to your PC in a safe location and specify the
# path to it here.
DB="/path/to/com.google.android.apps.authenticator/databases/databases"
sqlite3 "$DB" 'SELECT email,secret FROM accounts;' | while read A
do
NAME=`echo "$A" | cut -d '|' -f 1`
@letssudormrf
letssudormrf / router.pi-2.md
Created November 3, 2018 13:26 — forked from snakevil/router.pi-2.md
使用树莓派3B打造超强路由之二:初成

使用树莓派3B打造超强路由之二:初成

通过第一篇《使用树莓派3B打造超强路由之一:初装》的努力,树莓派3B已经可以作为一台超低能耗、随身携带的开发用服务器来使用了。但这对于目标——打造超强路由而言,才刚刚开始。接下来,我们需要将其打磨成一台基本的无线路由器。

WARNING 本文所有指令均仅供参考,切勿无脑复制粘贴!

@letssudormrf
letssudormrf / Huawei_E3372_openwrt.md
Created October 13, 2018 12:58 — forked from bjoern-r/Huawei_E3372_openwrt.md
How to use a Huawei E3372 on OpenWRT

HOWTO use a Huawei E3372 on OpenWRT

This modem is also sold as a MegaFon M150-2 USB dongle

Needed Software

Install the needed packages via opkg tool

opkg update
@letssudormrf
letssudormrf / datanode.yaml
Created September 4, 2018 02:30 — forked from goern/datanode.yaml
HADOOP on OpenShift
# A headless service to create DNS records.
apiVersion: v1
kind: Service
metadata:
name: hdfs-datanode
labels:
app: hdfs-datanode
spec:
ports:
- port: 50010
@letssudormrf
letssudormrf / submit.md
Created August 21, 2018 14:39 — forked from tanaikech/submit.md
Downloading Shared Files on Google Drive Using Curl

Downloading Shared Files on Google Drive Using Curl

When the shared files on Google Drive is downloaded, it is necessary to change the download method by the file size. The boundary of file size when the method is changed is about 40MB.

File size < 40MB

CURL

filename="### filename ###"
fileid="### file ID ###"
curl -L -o ${filename} "https://drive.google.com/uc?export=download&amp;id=${fileid}"
@letssudormrf
letssudormrf / 50-cloud-init.yaml
Created August 8, 2018 06:13 — forked from svetlio/50-cloud-init.yaml
Netplan config bridge - ubuntu-server-18.04, and ex. default lxd profile
# located at /etc/netplan/
# $ sudo netplan apply
network:
version: 2
renderer: networkd
ethernets:
enp5s0f0:
dhcp4: false
bridges:
br0:
  • Change Default response timeout for a specific route:
oc annotate route <route_name> --overwrite haproxy.router.openshift.io/timeout=10s
  • Add a nodeSelector on RC ou DC
oc patch dc|rc <dc_name> -p "spec:                                                                                         
  template:     
@letssudormrf
letssudormrf / openwrt-lede-openvpn-client.md
Created June 26, 2018 13:37 — forked from braian87b/openwrt-lede-openvpn-client.md
Setting an OpenWrt / LEDE Based Router as OpenVPN Client

These instructions should work for Streisand as well for others VPN providers (Streisand is a Software that automatically configures a VPS online server with OpenVPN and other VPN/Proxy Softwares in order to have a private VPN Server)

These instructions are for getting an OpenWrt Based Router working as OpenVPN Client (should work for LEDE, Gargoyle and another distributions). Computers connected to Lan Ports of the OpenWrt Router will navigate through the Internet connection of the OpenVPN Server (in this case the Streisand one previously set up) you need a working Router with OpenWrt based firmware flashed on it (LEDE or eko.one.pl could also work) steps works well on Chaos Calmer 15.05 or 15.05.1.

  1. You need to telnet 192.168.1.1 (OpenWrt Router) and set up a password using passwd You can skip this if you already have a password and can connect using ssh.

    root@OpenWrt:~# passwd
    

Changing password for root

@letssudormrf
letssudormrf / ovs-cheat.md
Created June 10, 2018 06:15 — forked from djoreilly/ovs-cheat.md
OVS cheat sheet

DB

ovs-vsctl list open_vswitch
ovs-vsctl list interface
ovs-vsctl --columns=ofport,name list Interface
ovs-vsctl --columns=ofport,name --format=table list Interface
ovs-vsctl --format=table --columns=name,mac_in_use find Interface name=br-dpdk1
ovs-vsctl get interface vhub656c3cb-23 name

ovs-vsctl set port vlan1729 tag=1729