This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Simple script to control your Raspberry Pi with your TV remote using libcec | |
# | |
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com> | |
# GPL licensed (see end of file) * Use at your own risk! | |
# | |
# You can set this to be run in your desktop "startup programs", or | |
# at the last line of /etc/rc.local, just to say a couple options | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List files in zsh with <TAB> | |
# | |
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com> | |
# GPL licensed (see end of file) * Use at your own risk! | |
# | |
# Usage: | |
# In the middle of the command line: | |
# (command being typed)<TAB>(resume typing) | |
# | |
# At the beginning of the command line: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Simple colorize for bash by means of sed | |
# | |
# Copyright 2008-2015 by Andreas Schamanek <[email protected]> | |
# | |
# 2017 - Modified from mycolorize into a shell function | |
# by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com> | |
# | |
# GPL licensed (see end of file) * Use at your own risk! | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# Simple colorize for bash by means of sed | |
# | |
# Copyright 2008-2015 by Andreas Schamanek <[email protected]> | |
# | |
# 2017 - Modified from mycolorize into a shell function | |
# by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com> | |
# | |
# GPL licensed (see end of file) * Use at your own risk! | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Completely remove a file from a git repository history | |
# | |
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com> | |
# GPL licensed (see end of file) * Use at your own risk! | |
# | |
# Usage: | |
# git-forget-blob file_to_forget | |
# | |
# Notes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple, convenient way of starting and restoring tmux sessions | |
# | |
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com> | |
# GPL licensed (see end of file) * Use at your own risk! | |
# | |
# I source this function as part of my .bashrc or .zshrc (actually I do 'source .zsh_library.sh') | |
# I normally also run 'start_tmux' at the end of my .bashrc or .zshrc in all my servers | |
# | |
# Usage: | |
# start_tmux # instead of just 'tmux' |