Skip to content

Instantly share code, notes, and snippets.

# ROS install ros version 'kinetic'
# mac - http://wiki.ros.org/kinetic/Installation/OSX/Homebrew/Source
# ubuntu - http://wiki.ros.org/kinetic/Installation/Ubuntu
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo apt-get update
sudo apt-get install ros-kinetic-desktop-full
# new install of 16.04
#add swap
sudo fallocate -l 10G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
async uploadAndProcessVideo(name, video: File, brand) {
const params = new HttpParams().set('type', video.type)
const [error, uploadSpec] = await to(
this.http
.post<any>(
environment.apiBaseUrl + '/api/v1/videos/initiate_upload',
null,
{
params,
github ethanj 5El5R5IBfN1s
# install hub for extra git commands for github
# https://hub.github.com/hub.1.html
brew install hub && echo "\n#add github commands to git\neval \"\$(hub alias -s)\"" >> ~/.zshrc
# create a new private repo and setup remote
git create -p philosophie/foo

Setup Atom to use eslint, tslint, prettier, js-beautify, scss-lint, json-lint, etc

install some modules into project dev for when you call atom from commandline

npm install eslint-plugin-html eslint-config-prettier eslint-plugin-prettier tslint-config-prettier --dev

or

# work on new dependent branch (newbranch) while waiting to merge pr on dependent branch (prbranch)
git checkout -b newbranch
# equiv to following if not on prbranch
git checkout -b newbranch prbranch
#do work on newbranch
# lets say pr needs mods
gco prbranch
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->