Skip to content

Instantly share code, notes, and snippets.

@jgillman
jgillman / 1_intro.txt
Last active November 11, 2023 02:33
i3 config from /u/twodogsdave
If this is hard to read in your browser, just copy the text and paste it into your editor.
Turn 'line wrapping' on. :)
This is a 'how to' for anyone interested in a i3 setup and also for anyone currently
using i3 and wants to tweak there setup a little more. I am constantly updating my
i3 config with cool 'stuff.' I hope you enjoy reading and if you use some of the code,
great! I don't know everything and am still learning, too. :)
This is my system settings for i3. Specifically, I use [Manjaro i3](https://forum.manjaro.org/index.php?topic=28022.0).
@aslushnikov
aslushnikov / download.sh
Last active December 28, 2017 18:27
a simple snippet to pull track url from VK
# rename hashes, setup id3 tags
set -o
track=$(echo "$1" | cut -d'@' -f1)
url=$(echo "$1" | cut -d'@' -f2)
name=$(echo "$1" | cut -d'@' -f3)
artist=$(echo "$name" | cut -d'-' -f1)
song=$(echo "$name" | cut -d'-' -f2)
@kates
kates / search_and_replace.sh
Last active August 31, 2019 05:22
bulk search and replace with the silver searcher, awk, sed and xargs
ag "sometext" --nogroup | awk '{print substr($1,1,index($1,":")-1);}' | xargs -I {} sed -i .bak -e 's/sometext/anothertext/g' {}