Skip to content

Instantly share code, notes, and snippets.

View roghnin's full-sized avatar
🎯
I may be slow to respond.

Haosen (Hensen) Wen roghnin

🎯
I may be slow to respond.
  • University of Rochester
  • Rochester, NY
View GitHub Profile
@pichuang
pichuang / upgrade_ovs_in_mininet.sh
Last active August 26, 2021 16:39
Installing new version of Open vSwitch 2.3.0 use Mininet
#!/bin/sh -ev
# Reference: https://github.com/mininet/mininet/wiki/Installing-new-version-of-Open-vSwitch
# How to test: ovs-vsctl -V
# Check permission
test $(id -u) -ne 0 && echo "This script must be run as root" && exit 0
#Remove old version ovs
aptitude remove openvswitch-common openvswitch-datapath-dkms openvswitch-controller openvswitch-pki openvswitch-switch -y
@Caeous
Caeous / moonlight.sh
Last active September 3, 2021 16:49
Wake PC and Launch Moonlight
#!/usr/bin/env bash
export PATH=/usr/local/bin:$PATH
wake_app=wakeonlan # brew install wakeonlan
mac=99:97:F9:99:9B:9A
ip=192.168.1.199
moonlight=/Applications/Moonlight.app/Contents/MacOS/Moonlight
app=RDP # App name in Moonlight
printf 'Waking up...'