Skip to content

Instantly share code, notes, and snippets.

View qwo's full-sized avatar

Stanley Zheng qwo

View GitHub Profile
@qwo
qwo / old_2023_embedd.html
Last active November 14, 2024 01:45
SCL 2024 Embed
<!DOCTYPE html>
<html>
<head>
<title>Fetched Checkout Data</title>
</head>
<body>
<div id="checkout-info">
</div>
<script>
@qwo
qwo / github-search-cheatsheet.md
Created March 5, 2024 20:55 — forked from bonniss/github-search-cheatsheet.md
Github search cheatsheet from official docs.

Github Search Cheat Sheet

GitHub’s search supports a variety of different operations. Here’s a quick cheat sheet for some of the common searches.

For more information, visit our search help section.

Basic search

@qwo
qwo / github-search-cheatsheet.md
Created March 5, 2024 20:55 — forked from bonniss/github-search-cheatsheet.md
Github search cheatsheet from official docs.

Github Search Cheat Sheet

GitHub’s search supports a variety of different operations. Here’s a quick cheat sheet for some of the common searches.

For more information, visit our search help section.

Basic search

@qwo
qwo / pi-hole-workshop-instructions-using-Rpi.md
Created December 27, 2022 17:33 — forked from nkavadias/pi-hole-workshop-instructions-using-Rpi.md
Raspberry Pi instructions for Pi-hole setup
@qwo
qwo / wget.sh
Created November 30, 2022 02:07 — forked from crittermike/wget.sh
Download an entire website with wget, along with assets.
# One liner
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com
# Explained
wget \
--recursive \ # Download the whole site.
--page-requisites \ # Get all assets/elements (CSS/JS/images).
--adjust-extension \ # Save files with .html on the end.
--span-hosts \ # Include necessary assets from offsite as well.
--convert-links \ # Update links to still work in the static version.
@qwo
qwo / wget.sh
Created November 30, 2022 02:07 — forked from crittermike/wget.sh
Download an entire website with wget, along with assets.
# One liner
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com
# Explained
wget \
--recursive \ # Download the whole site.
--page-requisites \ # Get all assets/elements (CSS/JS/images).
--adjust-extension \ # Save files with .html on the end.
--span-hosts \ # Include necessary assets from offsite as well.
--convert-links \ # Update links to still work in the static version.
@qwo
qwo / Caddyfile
Created May 22, 2022 14:39 — forked from nileshtrivedi/Caddyfile
Caddy on fly.io as reverse proxy to services on Tailscale network
log stdout
errors stdout
auto_https off
http://myapp.fly.dev {
reverse_proxy 100.120.108.62:8000
}
@qwo
qwo / Caddyfile
Created May 22, 2022 14:39 — forked from nileshtrivedi/Caddyfile
Caddy on fly.io as reverse proxy to services on Tailscale network
log stdout
errors stdout
auto_https off
http://myapp.fly.dev {
reverse_proxy 100.120.108.62:8000
}
@qwo
qwo / README.md
Last active April 13, 2022 01:51
NYC Cyber Command Summer Internship 2022 Posting

Hi All! Current quasi-student about 10% through my OMSCS in CyberSecurity!

We do really cool greenfield stuff in the cloud at big data scale and have a huge learning culture.

This is a bit short notice but if you know a student in your life who is interested in getting experience in working in big data and software engineering working in cybersecurity and learning about security engineering try out city service and working for a civic-tech startup-esque environment

I work for New York City Cyber Command. We protect New York City agency systems and citizens data from cyber threats through proactive cyber policy controls and big data log security data aggregation.

@qwo
qwo / Dockerfile
Last active November 24, 2021 18:50
gunicorn docker
FROM python:3.7.2
COPY . /app
WORKDIR /app
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | POETRY_HOME=/opt/poetry python
ENV PATH="${PATH}:/opt/poetry/bin"
RUN ln -s /opt/poetry/bin/poetry poetry
RUN poetry config virtualenvs.create false
RUN poetry install --no-root --no-dev