Skip to content

Instantly share code, notes, and snippets.

View youshy's full-sized avatar
🍕

Artur Kondas youshy

🍕
View GitHub Profile
@youshy
youshy / i3-cheat-sheet.md
Created March 27, 2022 11:19 — forked from miguelmota/i3-cheat-sheet.md
i3 Window Manager Cheat Sheet

i3 Window Manager Cheat Sheet

$mod refers to the modifier key (window/command or alt by default depending on config)

General

  • startx i3 start i3 from command line
  • $mod+<Enter> open a terminal
  • $mod+d open dmenu (text based program launcher)
  • $mod+r resize mode ( or to leave resize mode)
  • $mod+shift+e exit i3
@youshy
youshy / ANSI.md
Created August 12, 2021 08:13 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1b
  • Decimal: 27
@youshy
youshy / Unicode table
Created June 5, 2021 15:04 — forked from ivandrofly/Unicode table
Unicode table - List of most common Unicode characters *
Unicode table - List of most common Unicode characters *
* This summary list contains about 2000 characters for most common ocidental/latin languages and most printable symbols but not chinese, japanese, arab, archaic and some unprintable.
Contains character codes in HEX (hexadecimal), decimal number, name/description and corresponding printable symbol.
What is Unicode?
Unicode is a standard created to define letters of all languages ​​and characters such as punctuation and technical symbols. Today, UNICODE (UTF-8) is the most used character set encoding (used by almost 70% of websites, in 2013). The second most used character set is ISO-8859-1 (about 20% of websites), but this old encoding format is being replaced by Unicode.
How to identify the Unicode number for a character?
Type or paste a character:
@youshy
youshy / curl_ssh.md
Last active October 5, 2020 15:47
Curl & SSH

Curl

Postman

High-level - way to transfer data within terminal. We'll focus on HTTP functionality:

GET - literally get something POST - post something (save) PUT - update something DELETE - delete something

@youshy
youshy / cheats.md
Last active October 2, 2020 09:14
VIM-Academy-Cheat-Sheet

Academy VIM Cheatsheet

Why VIM?

It's fast, free, open-source, basically installed everywhere, you can customize it however you want and you look swish with using terminal (remember Matrix?).

9/10 if you'll SSH into a server you'll have to use VIM so why not to learn it and use it daily?

Basics

@youshy
youshy / tmux.md
Created July 13, 2020 16:03 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

Get your instance HERE

Join the support channel HERE

Find more from the author @ akondas.com

Vim

Save and/or quit

@youshy
youshy / 50_lines.pde
Created April 26, 2020 09:33 — forked from u-ndefine/50_lines.pde
Sketch of my generative art, "50 Lines"
float decel(float x) { // as an easing function
return 1-(x-1)*(x-1);
}
void setup() {
background(255);
size(750,750,P2D);
PImage img = loadImage("image.png");
strokeWeight(2);
noFill();

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@youshy
youshy / iterm2.md
Created December 6, 2019 14:36 — forked from squarism/iterm2.md
iterm2 cheatsheet

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
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)