Skip to content

Instantly share code, notes, and snippets.

View luke-devel's full-sized avatar
🏠
Working from home

Luke luke-devel

🏠
Working from home
  • Houston, TX
View GitHub Profile
1. SHOW ALL DATABASES
show dbs
2. SHOW CURRENT DATABASE
db
3. CREATE DATABASE
use transactions
4. CREATE COLLECTION / TABLE
@whoisryosuke
whoisryosuke / semantic-ui-dropdown-countries.js
Created February 28, 2020 21:45
Semantic UI - JSON Dropdown options for countries
const countries = [{key: 'af', value: 'af', flag: 'af', text: 'Afghanistan' },
{key: 'ax', value: 'ax', flag: 'ax', text: 'Aland Islands' },
{key: 'al', value: 'al', flag: 'al', text: 'Albania' },
{key: 'dz', value: 'dz', flag: 'dz', text: 'Algeria' },
{key: 'as', value: 'as', flag: 'as', text: 'American Samoa' },
{key: 'ad', value: 'ad', flag: 'ad', text: 'Andorra' },
{key: 'ao', value: 'ao', flag: 'ao', text: 'Angola' },
{key: 'ai', value: 'ai', flag: 'ai', text: 'Anguilla' },
{key: 'ag', value: 'ag', flag: 'ag', text: 'Antigua' },
{key: 'ar', value: 'ar', flag: 'ar', text: 'Argentina' },
@fworks
fworks / install-zsh-windows-git-bash.md
Last active April 18, 2026 15:03
Zsh / Oh-my-zsh on Windows Git Bash
add_newline = false
[character]
symbol = ""
error_symbol = "✖"
vicmd_symbol = ""
use_symbol_for_status = true
[cmd_duration]
min_time = 4
@kiryuxxu
kiryuxxu / output.log
Created May 12, 2017 08:23
wget with child_process.spawn
stderr: --2017-05-12 17:21:27-- http://example.com/
Resolving example.com... 93.184.216.34, 2606:2800:220:1:248:1893:25c8:1946
Connecting to example.com|93.184.216.34|:80...
stderr: connected.
stderr: HTTP request sent, awaiting response...
stderr: 304 Not Modified
stderr: File ‘~/tmp/index.html’ not modified on server. Omitting download.
@parmentf
parmentf / GitCommitEmoji.md
Last active May 2, 2026 17:31
Git Commit message Emoji
@ygotthilf
ygotthilf / jwtRS256.sh
Last active March 23, 2026 01:32
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@rkaneko
rkaneko / InstallZshOnCentOS.md
Last active January 11, 2022 16:24
Installing zsh on CentOS

Installing zsh on CentOS

$ sudo yum install ncurses-devel

$ cd /usr/local/src

$ sudo curl -L http://sourceforge.net/projects/zsh/files/zsh/5.0.7/zsh-5.0.7.tar.gz/download -o zsh-5.0.7.tar.gz
@jvns
jvns / rust-types.md
Last active April 4, 2026 19:44
Rust type tutorial

I found understanding Rust types really confusing, so I wrote up a small tutorial for myself in an attempt to understand some of them. This is by no means exhaustive. There is a types section in the manual, but it has nowhere near enough examples.

I'm not talking about managed pointers (@) at all. A lot of the difficulty with Rust types is that the language is constantly changing, so this will likely be out of date soon.

First, a few preliminaries: it's easier to play with types if you have a REPL and can interactively check the types of objects. This isn't really possible in Rust, but there are workarounds.

To start out: some help

How to get a Rust REPL

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 7, 2026 07:45
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname