Skip to content

eepykate/shnippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

collection of small snippets

previously this was just shell (hence the name), didn't want another repo for snippets

All credit for the repo name goes to maxestorr

css

Displays language if declared (& gives them a cleaner look)
Credit: gk

Replaces the role outlines with a background
Credit: gk

Credit: gk


shell

Credit: viz

Credit: gk

Credit: BanchouBoo

requires colorpicker & for your notification daemon to support pango markup
Credit: gk

Credit: turquoise-hexagon

Credit: MCotocel

Credit: MCotocel

Open random manpage

Credit: Mcotocel

man -k . | awk '{print $1}' | shuf -n 1 | xargs man

Grab a random image from Unsplash

Credit: paradox

curl -Ls https://source.unsplash.com/random/3840x2160 -o image.jpg

cd without typing cd

Instead of typing cd dir you can just type dir. If a command exists with the name dir it will run that instead of cd. You can force it to go into the dir by typing dir/.

bash:

shopt -s autocd

zsh:

setopt auto_cd

Record the screen with ffmpeg

Option 1 Credit: MitchWeaver

Note: Remeber to add -pix_fmt yuv420p after -i ${DISPLAY:=:0.0}+${1},${2} to have videos work on all platforms correctly.

Option 2 Credit: gk

About

collection of small snippets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published