Skip to content

Instantly share code, notes, and snippets.

View clarkzjw's full-sized avatar
🌴

Jinwei Zhao clarkzjw

🌴
View GitHub Profile
@clarkzjw
clarkzjw / Starlink.md
Last active June 5, 2025 05:50
Starlink Measurement in the Wild
@clarkzjw
clarkzjw / multipass-on-bridged-network.md
Created December 10, 2024 20:16 — forked from ynott/multipass-on-bridged-network.md
Instructions for running multipass on a bridge network

1. Environmental information

  • OS: Ubuntu 20.04.2 LTS (GNU/Linux 5.8.0-59-generic x86_64)
  • Network: 192.168.xxx.0/24
  • Ubuntu multipass host machine IP: 192.168.xxx.yyy(static IP)
  • NIC: enp2s0(bridge host NIC)
  • Bridge NIC:br0

2. Prerequisites

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[{'city': 'Abidjan, CI', 'name': 'abj01'},
{'city': 'Albuquerque, NM, US', 'name': 'abq01'},
{'city': 'Accra, GH', 'name': 'acc01'},
{'city': 'Adelaide, AU', 'name': 'adl01'},
{'city': 'Auckland, NZ', 'name': 'akl01'},
{'city': 'Almaty, KZ', 'name': 'ala01'},
{'city': 'Algiers, DZ', 'name': 'alg01'},
{'city': 'Algiers, DZ', 'name': 'alg02'},
{'city': 'Ahmedabad, IN', 'name': 'amd01'},
{'city': 'Ahmedabad, IN', 'name': 'amd02'},
#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cat $SCRIPT_DIR/test.sh
set -x
mkdir /artifacts
curl -4 ipconfig.io
traceroute -enm 18 -w 1 us-east.linode.jinwei.me
traceroute -em 18 -w 1 us-east.linode.jinwei.me

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

from twython import Twython, TwythonError
import time
import sys
APP_KEY = ''
APP_SECRET = ''
OAUTH_TOKEN = ''
OAUTH_TOKEN_SECRET = ''
twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET)
@clarkzjw
clarkzjw / gist:f5c82078e0ab8b25fb455407ab17c77c
Created August 29, 2018 13:57
Disable GNOME Shell Animation in Ubuntu 17.04 and later
gsettings set org.gnome.desktop.interface enable-animations false
04b65ff15ce2b3302f960dd3f29e41e7618aebc0553051bd88e0df9c81b65c9517b5019acc3cc395e4bae94175f41d4d2e54076ee19337dc05c2653d5ccec23ffa;jjyr
#include <iostream>
#include <chrono>
class TicToc
{
private:
typedef std::chrono::high_resolution_clock clock;
typedef std::chrono::microseconds res;
clock::time_point t1, t2;