Install as follows
\curl -sSL https://gist.github.com/bf4/c19f041bb0887476dfaa/download | \
tar xzvf - --include '*setup' -O | bashoptionally first set PROJECT_DIR and PROJECT_CLONE_URL in your ~/.profile
| (* | |
| Script - Comments | |
| @author - Nayan Seth | |
| © Tech Barrack Solutions Pvt Ltd | |
| *) | |
| --This is a single line comment | |
| #This is a comment too but still single line | |
| (* |
| Windows Registry Editor Version 5.00 | |
| [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies] | |
| [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop] | |
| "NoChangingWallPaper"=dword:00000001 | |
| "NoAddingComponents"=dword:00000001 | |
| "NoClosingComponents"=dword:00000001 | |
| "NoDeletingComponents"=dword:00000001 | |
| "NoEditingComponents"=dword:00000001 |
| # list path env variable | |
| function list-path() { | |
| echo $PATH | tr ':' '\n' | |
| } | |
| # find text in files | |
| function search() { | |
| find . -type f -print0 | xargs -0 grep "$1" | |
| } |
A few notes to get started with Sublime Text, some urls, a list of packages i played with, config files, keyboard shortcuts and some more.
| #======================================================================= | |
| # bootstrap4Ubuntu.sh on SoftLayer | |
| #======================================================================= | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| # Install Util | |
| sudo apt-get install git curl -y | |
| # Install SoftLayer Command line Interface |
| #!/bin/bash | |
| # Here short description of this script | |
| # This is just a template to be used for writing new bash scripts | |
| ### | |
| # Based on Google Style Guide: https://google.github.io/styleguide/shell.xml | |
| # General remarks | |
| # * Executables should have no extension (strongly preferred) or a .sh extension. | |
| # * Libraries must have a .sh extension and should not be executable |
| # Ask for the user password | |
| # Script only works if sudo caches the password for a few minutes | |
| sudo true | |
| # Install kernel extra's to enable docker aufs support | |
| # sudo apt-get -y install linux-image-extra-$(uname -r) | |
| # Add Docker PPA and install latest version | |
| # sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| # sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
| #!/bin/bash | |
| # An set of disks to ignore from partitioning and formatting | |
| BLACKLIST="/dev/sda|/dev/sdb" | |
| # Base directory to hold the data* files | |
| DATA_BASE="/media" | |
| usage() { | |
| echo "Usage: $(basename $0) <new disk>" | |
| } |
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |