Skip to content

Instantly share code, notes, and snippets.

View chaoky's full-sized avatar
🦩
in a nix rebound phase

Leo chaoky

🦩
in a nix rebound phase
View GitHub Profile
@chaoky
chaoky / fstab-generate-arch
Created September 1, 2019 06:42 — forked from Brainiarc7/fstab-generate-arch.md
Generate fstab in Arch Linux
First, install arch-install-scripts:
sudo pacman -S --needed arch-install-scripts
Secondly, mount your partitions in all the internal hard drives.
Thirdly, generate and validate your config by piping it out to stdout:
genfstab -U -p / | less
~ 3s press to enter the menu/exit/select/confirm
~ 1s press to cicle thought options
---- MENU ------
1 - Max temp 1
2 - Min temp 2 (based on max temp)
3 - Fake temp (based on max temp)
5 - Cicle duration
@chaoky
chaoky / regexCheatsheet.js
Created March 12, 2019 23:22 — forked from sarthology/regexCheatsheet.js
A regex cheatsheet 👩🏻‍💻 (by Catherine)
let regex;
/* matching a specific string */
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello"
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO"
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes...
/* wildcards */
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo"
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo"
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->