Skip to content

Instantly share code, notes, and snippets.

🔳
lost in the shell

Mischievous Meerkat jarun

🔳
lost in the shell
Block or report user

Report or block jarun

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mateuspontes
mateuspontes / migrate-fish-history-to-zsh.py
Created Apr 7, 2018
Migrate fish history to zsh shell (python 2.7)
View migrate-fish-history-to-zsh.py
import os
import re
def fish_to_zsh(cmd):
return (cmd.replace('; and ', '&&')
.replace('; or ', '||'))
with open(os.path.expanduser('~/.zsh_history.test'), 'a') as o:
with open(os.path.expanduser('~/.local/share/fish/fish_history')) as f:
for line in f:
@jarun
jarun / cupcakes.md
Last active Jan 16, 2020
Random collection of useful commands
View cupcakes.md

A collection of awesome commands, functions, aliases to save your time

Play random music from your media storage:
# BASH shell

boom()                                                                           
{                                                                                
    find $@ -type f \( -iname "*.mp3" -o -iname "*.flac" -o -iname "*.webm" -o -iname "*.wma" \) | sort -R | head -n 100 | xargs -d "\n" smplayer > /dev/null 2>&1 &
View Cliref.md
_________ _____ _______________       _____
\_   ___ \\    \\___________   \____ / ____\     ~/.bash/cliref.md
/    \  \/|    | |   ||       _/ __ \  __\    copy/paste from whatisdb
\     \___|__  |_|_  ||    |   \  __/|_ |   http://pastebin.com/yGmGiDQX
 \________  /_____ \_||____|_  /____  /_|     yunga.palatino@gmail.com
 20160515 \/ 1527 \/         \/     \/

alias CLIRef.txt='curl -s "http://pastebin.com/raw/yGmGiDQX" | less -i'
You can’t perform that action at this time.