Skip to content

Instantly share code, notes, and snippets.

@techieimposter
techieimposter / TrueColour.md
Created May 12, 2019 10:00 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Terminal Colors

There exists common confusion about terminal colors. This is what we have right now:

  • Plain ASCII
  • ANSI escape codes: 16 color codes with bold/italic and background
  • 256 color palette: 216 colors + 16 ANSI + 24 gray (colors are 24-bit)
  • 24-bit true color: "888" colors (aka 16 milion)
@techieimposter
techieimposter / comcast.js
Created May 12, 2019 09:50 — forked from Jarred-Sumner/comcast.js
Comcast injects this into webpages to show copyright notices
// Comcast Cable Communications, LLC Proprietary. Copyright 2014.
// Intended use is to display browser notifications for critical and time sensitive events.
var _ComcastAlert = (function(){
return {
SYS_URL: '/e8f6b078-0f35-11de-85c5-efc5ef23aa1f/aupm/notify.do'
, dragObj: {zIndex: 999999}
, browser: null
, comcastCheck: 1
, comcastTimer: null
, xmlhttp: null
@techieimposter
techieimposter / .bash_profile
Created May 12, 2019 09:35 — forked from jjNford/.bash_profile
Default .bash_profile file.
# DIRECTORIES
alias dev="cd ~/Developer/dev"
alias sy="cd ~/Developer/dev/sincerely"
# APPLICATIONS
alias lime="/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl"
alias markdown="/Applications/Markdown\ Pro.app/Contents/MacOS/Markdown\ Pro"
# ANDROID
export ANDROID_HOME=`brew --prefix android-sdk`

Helpful Information for MacOS

The below information is current as of 2019-05-11 and applies to MacOS 10.14.x (Mojave).

This document is meant to serve as an aid and reference in preparing a MacOS system, the process and .dotfiles are completed manually. Note that the default Terminal is replaced with iTerm2 and Bash v5.

For additional information or help please feel free to ping via https://www.coreygo.com.

System information commands

# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Set to this to use case-sensitive completion
@techieimposter
techieimposter / .ignore
Created May 12, 2019 09:21 — forked from hereisderek/.ignore
my homebrew install list
dump.list
alias cp='cp -iv' # Preferred 'cp' implementation
alias mv='mv -iv' # Preferred 'mv' implementation
mkdir() { command mkdir -pv "$1" && cd "$1"; } # Preferred 'mkdir' implementation
alias l='ls -FGlahp' # Preferred 'ls' implementation
alias less='less -FSRXc' # Preferred 'less' implementation
cd() { builtin cd "$@"; l; pwd; } # Always list directory contents upon 'cd'
alias ..='cd ../' # Go back 1 directory level
alias .1='cd ../' # Go back 1 directory level
alias .2='cd ../../' # Go back 2 directory levels
alias .3='cd ../../../' # Go back 3 directory levels
# ╔════════════════════════════════════════════════════════════════════════════╗
# ║ ║
# ║ ┏━━━━┓ ┏━━━┓ ┏━┓ ┏━┓ ║
# ║ ┗━━┓ ┃ ┃┏━━┛ ┃ ┃ ┃ ┃ ║
# ║ ┏┛┏┛ ┃┗━━┓ ┃ ┗━┛ ┃ ║
# ║ ┏┛┏┛ ┗━━┓┃ ┃ ┏━┓ ┃ ║
# ║ ┏┛ ┗━┓ ┏━━┛┃ ┃ ┃ ┃ ┃ ║
# ║ ┗━━━━┛ ┗━━━┛ ┗━┛ ┗━┛ ║
# ║ ║
# ║ * github.com/mrusme * twitter.com/mrusme * mrus@mrus.me * ║
@techieimposter
techieimposter / .bash_profile
Created May 12, 2019 09:02 — forked from jernejcic/.bash_profile
.bash_profile file on Mac OS X
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases.
# Much of this was originally copied from:
# http://natelandau.com/my-mac-osx-bash_profile/
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
@techieimposter
techieimposter / android-sdk-tools
Created May 12, 2019 08:59 — forked from fuentes73/android-sdk-tools
Install Android SDK Tools (Mac - Homebrew)
brew tap homebrew/cask
brew cask install java8
brew cask install android-sdk
sdkmanager --update
sdkmanager "build-tools;27.0.3" "platforms;android-24" "platforms;android-25" "platforms;android-26"
sdkmanager --licenses