start new:
tmux
start new with session name:
tmux new -s myname
| #!/bin/bash | |
| function package-version { | |
| apt-cache policy $1 | grep Installed | awk -F ' ' '{print $2}' | |
| } | |
| function kernel-current-version { | |
| major=$(uname -r | awk -F '.' '{print $1}') | |
| minor=$(uname -r | awk -F '.' '{print $2}') | |
| if [ $(uname -r | grep rc) ]; then | |
| rc="rc$(uname -r | awk -F '-' '{print $2}' | awk -F 'rc' '{print $2}')" |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------14:28:57 | |
| tjt263@osx:~$ port search example |grep @ |cut -d'(' -f1 | |
| gnss-sdr @0.0.6_6 | |
| gnss-sdr-devel @20151115_5 | |
| gnss-sdr-next @20151115_5 | |
| gvemod-xforms-example @0.2_1 | |
| hs-fingertree @0.1.0.0_3 | |
| p5-pod-tests @1.190.0_3 | |
| p5.22-pod-tests @1.190.0_3 | |
| proxytunnel @1.9.0 |
| -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------14:40:54 | |
| tjt263@osx:~$ port search example | |
| gnss-sdr @0.0.6_6 (science) | |
| An Open Source Global Navigation Satellite Systems (GNSS)(for example: GPS, Galileo, Glonass, Beidou, etc) Software Defined Radio (SDR) Receiver | |
| gnss-sdr-devel @20151115_5 (science) | |
| An Open Source Global Navigation Satellite Systems (GNSS)(for example: GPS, Galileo, Glonass, Beidou, etc) Software Defined Radio (SDR) Rec |
| homebrew/completions/ctest-completion Caskroom/cask/aja-system-test Caskroom/cask/colortester Caskroom/cask/nsregextester Caskroom/cask/sqlitestudio | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------14:32:31 | |
| tjt263@osx:~$ brew info $(!!) | |
| brew info $(brew search test) | |
| cpptest: stable 1.1.2 (bottled) | |
| Unit testing framework handling automated tests in C++ | |
| http://cpptest.sourceforge.net/ | |
| Not installed | |
| From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/cpptest.rb |
Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.
| #!/bin/sh | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' |