Skip to content

Instantly share code, notes, and snippets.

Ricky Zhang rickyzhang82

Block or report user

Report or block rickyzhang82

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View RFC 793 TCP Connection State Diagram.txt
+---------+ ---------\ active OPEN
| CLOSED | \ -----------
+---------+<---------\ \ create TCB
| ^ \ \ snd SYN
passive OPEN | | CLOSE \ \
------------ | | ---------- \ \
create TCB | | delete TCB \ \
V | \ \
+---------+ CLOSE | \
| LISTEN | ---------- | |
View RFC 793 Segment Arrive.txt
If the state is CLOSED (i.e., TCB does not exist) then
all data in the incoming segment is discarded. An incoming
segment containing a RST is discarded. An incoming segment not
containing a RST causes a RST to be sent in response. The
acknowledgment and sequence field values are selected to make the
View etc-init.d-docker-compose
# Provides: dockercompose
# Required-Start: $docker
# Required-Stop: $docker
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Docker Services
rickyzhang82 /
Created Oct 10, 2019 — forked from naholyr/
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.


Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
% --- Math Formulas ---
% Using this package : \usepackage{amsmath}
\section{Math Formulas}
% LaTeX excels at typesetting math formulas
% Quadratic Equation
rickyzhang82 /
Created Dec 18, 2018 — forked from str8edgedave/
Auto-starting VirtualBox VMs on MacOS High Sierra

Auto-starting VirtualBox VMs on MacOS High Sierra

Updated May 21/2018

There are lots of different how-tos out there for automatically launching VMs using VirtualBox on MacOS. Most of them focus on older versions of VirtualBox or old versions of MacOS.

Tested using MacOS High Sierra 10.13.4 running VirtualBox 5.2.12. The guest OS is Fedora 28.

Following the instructions on the VirtualBox website (, copy the Virtualbox autostart plist template file to your system's LaunchDaemons folder.

david$ sudo cp \
    "window.zoomLevel": 0,
    "workbench.activityBar.visible": false,
    "editor.renderWhitespace": "all",
    "workbench.colorTheme": "Default Light+",
        "editor.background": "#C8E0D2"

Disabling GNOME Tracker and Other Info

GNOME's tracker is a CPU and privacy hog. There's a pretty good case as to why it's neither useful nor necessary here:

After discovering it chowing 2 cores, I decided to go about disabling it.



Get the following package:

sudo dnf install libblocksruntime libblocksruntime-devel libblocksruntime-static

Run bash below:

rickyzhang82 / CuraEngine part order data
Last active Jun 8, 2018
CuraEngine part order data format
View CuraEngine part order data

file format

volume index:0 ; volume index
layer index:0  ; layer index in current volume
part order index:0 ; the optimized order of part
11                 ; this is the original order of part
part order index:1
part order index:2
You can’t perform that action at this time.