Skip to content

Instantly share code, notes, and snippets.


Andrii Yuriev tagplus5

View GitHub Profile
joshbuchea /
Last active May 31, 2023 06:19
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional


squarism /
Last active May 30, 2023 19:13
An 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)
berkorbay /
Last active May 28, 2023 16:35
To install Github Desktop for Ubuntu
## Follow this link for further updates to Github Desktop for Ubuntu
# UPDATE (2022-11-07): Thanks to Sxvxgee's message, the updated code is as follows
sudo wget
### Uncomment below line if you have not installed gdebi-core before
# sudo apt-get install gdebi-core
sudo gdebi GitHubDesktop-linux-3.1.1-linux1.deb
# UPDATE (2021-10-18): Thanks to Amin Yahyaabadi's message, the updated code is as follows
BlakeGardner / install
Last active May 26, 2023 14:40
Syntax highlighting in nano on Mac OS
View install
# Last updated March, 2022 for Apple silicon Macs
# Install Homebrew if you don't already have it:
# install nano from homebrew
brew install nano nanorc
# update your nanorc file
echo 'include "/opt/homebrew/share/nanorc/*.nanorc"' >> ~/.nanorc
# close and re-open your terminal and you'll have syntax highlighting
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:


start new with session name:

fluxrad / onedark.theme
Last active March 27, 2023 05:34
A one-dark theme for xfce4-terminal
View onedark.theme
Name=One Dark
erickoledadevrel / xmlToJson.js
Created December 1, 2014 14:30
A function to convert an XML string to a JSON object in Apps Script, using logic similar to the sunset method Xml.parse().
View xmlToJson.js
* Converts an XML string to a JSON object, using logic similar to the
* sunset method Xml.parse().
* @param {string} xml The XML to parse.
* @returns {Object} The parsed XML.
function xmlToJson(xml) {
var doc = XmlService.parse(xml);
var result = {};
var root = doc.getRootElement();
dado-prateek /
Last active February 25, 2023 10:45
Backup with duplicity to yandex.disk
# Duplicity wrapper
# Not working for now. Yandex prevents uploading lagre files via webdav.
# add to crontab:
# 0 0 * * * /bin/sh /usr/local/sbin/
set -e
skrajewski /
Last active December 2, 2022 16:19
Automate your macOS backup to Backblaze B2 using Restic and launchd.
if [ -f "$PID_FILE" ]; then
if ps -p $(cat $PID_FILE) > /dev/null; then
echo $(date +"%Y-%m-%d %T") "File $PID_FILE exist. Probably backup is already in progress."
exit 1
anildigital / gist:862675ec1b7bccabc311
Created July 26, 2014 18:27
Remove dangling docker images
View gist:862675ec1b7bccabc311
docker rmi $(docker images -q -f dangling=true)