Skip to content

Instantly share code, notes, and snippets.

View ZongwuWang's full-sized avatar
🎯
Focusing

Wang Zongwu ZongwuWang

🎯
Focusing
  • Shanghai Jiao Tong University
  • Shanghai
View GitHub Profile
@ZongwuWang
ZongwuWang / arxiv-preparation.md
Last active October 20, 2025 14:02 — forked from xiaohk/arxiv-preparation.md
Prepare for an arXiv submission

Submission Steps

  1. Download source code from Overleaf if you use it: menu -> download -> source.

  2. Strip comments and combine all tex files (f01-main.tex, f02-intro.tex, etc.) into one file arxiv_main.tex.

# Replace f01-main.tex with the main tex file in your overleaf project
latexpand --empty-comments f01-main.tex > arxiv_main.tex
@ZongwuWang
ZongwuWang / README.md
Created October 17, 2025 03:34 — forked from smoser/README.md
set up a ssh tunnel only user for ssh proxy jump

Set up a ssh tunnel only user

In order to give someone access to hosts that are available only by ssh "bouncing" (ProxyJump), add a user for this specific purpose.

We have an internal openstack where instances get IPs on per-tenant networks. Each tenant has a 'bastion' host that has a "public" ip (floating ip). You can access other instances by bouncing through the bastion. From time to time I want to let someone else into an instance. This could be done either with:

a.) just give them shell access to the bastion and let them hop through. Sharing an unrestricted shell account on my bastion is less than ideal. b.) assign a floating/"public" IP to the instance so they could go directly in. Floating IPs are limited, so this is less than ideal.

So instead, I have set up a single user as described here that can only be used for ProxyJump. It allows others proxied access to my instances but without granting them full shell access.

@ZongwuWang
ZongwuWang / vc707.xdc
Created April 23, 2025 01:44 — forked from mitchgu/vc707.xdc
VC707 XDC Constraints File: Sorted
################################################################################
# VC707 Constraints File
# Sorted (except for FMC, fuck FMC) and human readable
# Author: Mitchell Gu
################################################################################
################################################################################
# CLOCKS
################################################################################