Skip to content

Instantly share code, notes, and snippets.

View zzFluke's full-sized avatar
🐉

Pavlo Lozovskyy zzFluke

🐉
  • Softserve
  • Austin TX
View GitHub Profile
@irazasyed
irazasyed / outbound-email-with-cloudflare.md
Last active November 19, 2025 18:28
Using Gmail SMTP with Cloudflare Email Routing: A Step-by-Step Guide

Using Gmail SMTP with Cloudflare Email Routing: Step-by-Step Guide

Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.

Step 1: Enable 2-Factor Authentication

To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.

Step 2: Create an App Password for Mail

@zzFluke
zzFluke / 80-keychron.rules
Created August 12, 2019 13:57 — forked from ercoppa/80-keychron.rules
K2 Keychron Ubuntu 18.04
SUBSYSTEMS=="input", ATTRS{name}=="Keychron K2", RUN+="echo 0 | tee /sys/module/hid_apple/parameters/fnmode"
@aptkdev
aptkdev / ApexFileUpload.cls
Created February 15, 2018 11:54
Apex File File Upload (Using ContentVersion)
/*
* @class FileUploaderClass
* @desc Lets you uplaod a file in Salesforce by giving a base64 string of the
* file, a name for the file, and the Id of the record that you want to attach
* the file to.
*
* @example:
* FileUploaderClass.uploadFile(myBase64String, 'Invoice.pdf', '906F0000000kG2UIAU')
*/
public class FileUploaderClass {
@michaellihs
michaellihs / tmux-cheat-sheet.md
Last active December 6, 2025 01:39
tmux Cheat Sheet
@squarism
squarism / iterm2.md
Last active December 5, 2025 14:15
An iTerm2 Cheatsheet

In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So + D does not mean hold shift. + Shift + D does of course.

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
@sgergely
sgergely / gist:3793166
Created September 27, 2012 09:43
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
@vext01
vext01 / cfg.dot
Created September 10, 2012 16:20
digraph g { node [labeljust="l", shape=record, fontname="Courier New"];
edge [fontname="Courier New", fontsize=9];
blk_400a87 [ label=<{B<SUB>1</SUB><br align="left" />|p<SUB>0</SUB>: MOV R12, RDI<br align="left" />p<SUB>1</SUB>: IMUL RDI, RDI, 0x4<br align="left" />p<SUB>2</SUB>: ADD RDI, 0x4<br align="left" />p<SUB>3</SUB>: CALL malloc<br align="left" />}> ];
blk_400a97 [ label=<{B<SUB>2</SUB><br align="left" />|p<SUB>4</SUB>: CMP RAX, 0x0<br align="left" />p<SUB>5</SUB>: JA p<SUB>7</SUB><br align="left" />}> ];
blk_400a9d [ label=<{B<SUB>3</SUB><br align="left" />|p<SUB>6</SUB>: RET<br align="left" />}> ];
blk_400a9e [ label=<{B<SUB>4</SUB><br align="left" />|p<SUB>7</SUB>: MOV RDI, 0x0<br align="left" />}> ];
blk_400aa5 [ label=<{B<SUB>5</SUB><br align="left" />|p<SUB>8</SUB>: CMP RDI, R12<br align="left" />p<SUB>9</SUB>: JAE p<SUB>13</SUB><br align="left" />}> ];
blk_400aaa [ label=<{B<SUB>6</SUB><br align="left" />|p<SUB>10</SUB>: MOV QWORD [RAX+RDI*4], 0x0<br align="left" />p<SUB>11</SUB
@hellerbarde
hellerbarde / latency.markdown
Created May 31, 2012 13:16 — forked from jboner/latency.txt
Latency numbers every programmer should know

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs

Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs