Skip to content

Instantly share code, notes, and snippets.

View a2902793's full-sized avatar
πŸš€
Seven years per hour here. Let's make it count.

Johnny Yeng a2902793

πŸš€
Seven years per hour here. Let's make it count.
View GitHub Profile

Conventional Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@a2902793
a2902793 / Documentation.md
Created November 10, 2021 12:56 — forked from KartikTalwar/Documentation.md
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
@a2902793
a2902793 / ckad-bookmarks.html
Created August 26, 2021 13:32 — forked from runlevl4/ckad-bookmarks.html
CKAD Bookmarks (** indicates example source) [originally sourced from https://github.com/nikhilagrawal577/ckad-notes]
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1576816453" LAST_MODIFIED="1578776782">CKAD</H3>
<DL><p>
@a2902793
a2902793 / WSL2GUIXvnc-en.md
Last active March 9, 2021 06:56 — forked from tdcosta100/WSL2GUIXvnc-en.md
A tutorial to use GUI in WSL2 replacing original XServer by Xvnc, allowing WSL to work like native Linux, including login screen

WSL2 with GUI using Xvnc

In this tutorial, we will setup GUI in WSL2, and access it using VNC. No additional software outside WSL (like VcXsrv) is required, except, of course, a VNC Viewer (RealVNC, TightVNC, TigerVNC, UVNC, etc, all of them might work flawlessly).

The key components we need to install are tigervnc-standalone-server and systemd-genie.

For this setup, I will use Ubuntu 20.04 LTS (Focal Fossa), and install GNOME Desktop. Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the Sample screenshots section for examples.

So let's go. First, we need a working [WSL2](https://docs.microsoft.com/pt-br/windows/wsl/w

@a2902793
a2902793 / GitCommitEmoji.md
Created October 16, 2020 14:18 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji

Inspired by dannyfritz/commit-message-emoji

See also gitmoji.

Commit type Emoji
Initial commit πŸŽ‰ :tada:
Version tag πŸ”– :bookmark:
New feature ✨ :sparkles:
Bugfix πŸ› :bug:
@a2902793
a2902793 / wsl2-network.ps1
Created October 16, 2020 10:48 — forked from daehahn/wsl2-network.ps1
WSL 2 TCP NETWORK FORWARDING
# WSL2 network port forwarding script v1
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell,
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter.
# written by Daehyuk Ahn, Aug-1-2020
# Display all portproxy information
If ($Args[0] -eq "list") {
netsh interface portproxy show v4tov4;
exit;
}
@a2902793
a2902793 / install_zsh_on_sherlock.sh
Last active July 14, 2020 14:31 — forked from mgbckr/install_zsh_on_sherlock.sh
Compiling and installing Zsh without root privileges in tcsh shells
# # Install Zsh on Sherlock
# Installs Zsh with Oh-My-Zsh without root privileges
# on E517 CentOS servers running tcsh shells
#
# ## Instructions
# 1) Download using cURL:
# curl -LJO https://gist.github.com/a2902793/a491ec3909d4c7378d2fcd28a4467118/raw/269ed8c3e7147c23149110debbc7d3324dc80be3/install_zsh_without_root.sh
# Donwload using Wget:
# wget --no-check-certificate --content-disposition https://gist.github.com/a2902793/a491ec3909d4c7378d2fcd28a4467118/raw/269ed8c3e7147c23149110debbc7d3324dc80be3/
# 2) Run the script:
@a2902793
a2902793 / uptime_pretty
Created July 13, 2020 14:12 — forked from ioagel/uptime_pretty
Outputs only the 'up' section of the uptime command in pretty form, supporting most Linux distro and Mac OS X.
#!/bin/sh
# Referenced this stackoverflow answer by John1024: https://stackoverflow.com/a/28353785/2372698
uptime -p >/dev/null 2>&1
if [ "$?" -eq 0 ]; then
# Supports most Linux distro
# when the machine is up for less than '0' minutes then
# 'uptime -p' returns ONLY 'up', so we need to set a default value
UP_SET_OR_EMPTY=$(uptime -p | awk -F 'up ' '{print $2}')
@a2902793
a2902793 / gist:ed2b3ec41ce37dfb05b90f5bce5c0e23
Created February 19, 2020 13:24 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@a2902793
a2902793 / generate-ssh-key.sh
Created July 8, 2019 16:31 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa