Skip to content

Instantly share code, notes, and snippets.

@Guitsmstr
Guitsmstr / replace.md
Created November 28, 2021 17:07
replace coincidences vim #vim #replace

Replace All:

:%s/foo/bar/g

Find each occurrence of 'foo' (in all lines), and replace it with 'bar'.

For specific lines:

@Guitsmstr
Guitsmstr / remap_caplocks.md
Created November 21, 2021 20:13
remap caploks to scape linux
xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
@Guitsmstr
Guitsmstr / restart_audio.md
Last active November 21, 2021 16:07
restart audio terminal linux #audio #linux

Restart audio by terminal linux

pulseaudio -k 
@Guitsmstr
Guitsmstr / change_bash_colors.md
Last active February 25, 2023 15:23
change bash theme to 256 colors (oh-my-bash) #bash #oh-my-bash #color

Change colors of oh-my-bash themes

this is a script to see the bash colors (paste it in terminal):

 iter=16
    while [ $iter -lt 52 ]
    do
        second=$[$iter+36]
        third=$[$second+36]
        four=$[$third+36]