Skip to content

Instantly share code, notes, and snippets.

View angelamancini's full-sized avatar

Angela Mancini angelamancini

  • Sage
  • Pittsburgh, PA
View GitHub Profile
@angelamancini
angelamancini / restore-vagrant-tmux.sh
Last active June 26, 2016 23:37
hostname of vagrant box is the same as project folder
#!/bin/bash
SESSIONNAME=$(hostname -f)
cd /vagrant
echo "Moved to $(pwd)"
tmux has-session -t $SESSIONNAME 2>/dev/null
if [ "$?" -eq 1 ] ; then
echo "No Session found. Creating and configuring."
# new session with name $SESSIONNAME and window 0 named "base"
tmux new-session -s $SESSIONNAME -n base -d
tmux split-window -t $SESSIONNAME:0 -v
@angelamancini
angelamancini / quiver-to-evernote.rb
Created May 20, 2017 16:14
Converts Quiver notebook exports to Evernote *.enex files. Only tested with text and code cells. This *was not tested* with any other cell types.
# Before running this script, go to Quiver and export all notebooks into json/quiver format
# Place them in a folder called `exports` in the same directory as this script.
# In terminal, run `ruby quiver-to-evernote.rb`
# Check for presence of required gems.
# If not present, install the gems
["rubygems", "sanitize"].each do |gem|
begin
gem "#{gem}"
rescue Gem::LoadError
`gem install #{gem}`
chalice new-project s3copy
cd s3copy