Skip to content

Instantly share code, notes, and snippets.

View weblogix's full-sized avatar

Randy weblogix

View GitHub Profile
@weblogix
weblogix / Create application shortcut
Last active April 27, 2017 09:20
Ubuntu (17.04) Installation tips
$ nano /usr/share/applications/<app>.desktop
#/usr/share/applications/<app>.desktop
[Desktop Entry]
Name=<App Name>
Comment=
Exec=/opt/<App>
Icon=/opt/<App>/app-icon.png
Terminal=false
@weblogix
weblogix / .gitconfig
Last active August 19, 2020 06:20
[git cheatsheet] #git
[user]
name = Randy
email = [email protected]
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
@weblogix
weblogix / brew-cheatsheet
Last active August 29, 2017 02:45
brew cheatsheet #cheatsheet
# Install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Uninstall all packages
brew remove --force --ignore-dependencies $(brew list)
@weblogix
weblogix / mouse acceleration
Last active April 25, 2017 09:48
Apple OSX tweaks
# Tested on OSX 10.12
# Disable mouse pointer acceleration
defaults write .GlobalPreferences com.apple.mouse.scaling -1
# Disable mouse wheel acceleration
defaults write .GlobalPreferences com.apple.scrollwheel.scaling -1
@weblogix
weblogix / .bash_profile
Last active March 8, 2017 06:59
.bash_profile for git-aware-prompt
# https://github.com/jimeh/git-aware-prompt
export GITAWAREPROMPT=~/.bash/git-aware-prompt
source "${GITAWAREPROMPT}/main.sh"
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
export PS1="\[\033[32m\]➤ \[\033[00m\]\W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
@weblogix
weblogix / .bash_profile
Last active June 14, 2017 11:48
.bash_profile for my local development machine
# Defaults
export VISUAL=nano
# Aliases
alias c='clear'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ......='cd ../../../../..'