Skip to content

Instantly share code, notes, and snippets.

@evanwill
evanwill / PiPoemsVPOD.md
Last active March 14, 2016 23:45
poetry remix for Pi Day 2016

Pi Py Poetry: Pi Day Remix

Its 3:14 on 3/14 (2016)! Time for some Vandal Poem of the Day (VPOD) poetry remix using OpenRefine and Python.

First, I grabbed all of the poems from VPOD at http://poetry.lib.uidaho.edu/

Then I parsed it all using OpenRefine.

I Refined it down to a table with these columns: title, author, poem, words, length. Each row represents one line from a poem in the corpus.

@evanwill
evanwill / handyPiCommands.md
Last active June 21, 2016 21:40
list of handy commands for Raspberry Pi

Handy Raspberry Pi Commands

First time set up

default password for “pi” is “raspberry”

First time set up: sudo raspi-config

update everything:

Connect to AirVandalGold wifi on Linux

There is no automatic set up utility or documentation for University of Idaho's AirVandalGold wifi network for Linux users.

I got it to work using these steps on Ubuntu:

  1. Go to ITS Tools page, click on 'AirVandalGold Certificates for Linux' and 'Download Now' (or try this link). Note: you will have to log in with your UIdaho account.

  2. Extract the certificate zip file to a permanent location in your home directory.

@evanwill
evanwill / jekyllNotes.md
Last active October 4, 2016 06:49
notes about static gen, Jekyll, and how to install
@evanwill
evanwill / un-lenovo.md
Created May 25, 2016 05:37
things to do when you get a new lenovo computer

Things to do when you get a new lenovo computer

  1. Uninstall everything from Lenovo! Its all sketchy bloatware and you don't need any of it at all. Win 10 has everything you need.
  2. Navigate over to C:\Program Files (x86)\Lenovo and look in all the directories there and click the unistall.exe files! Cause guess what? Lenovo put some even sleezer things in there that you can't uninstall via normal means. Then delete all the directories.
  3. Just to be sure--You dont need anything in this ^ directory! Customer Engagement Service (CCSDK) and others log your activities and send information to weird unsecure web locations! Yuck!
  4. Go into control panel, device manager, and update drivers for wifi, audio, video, intel power management.
  5. okay, it should be better now!
@evanwill
evanwill / gitBash_windows.md
Last active April 26, 2024 03:58
how to add more utilities to git bash for windows, wget, make

How to add more to Git Bash on Windows

Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.

The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root. Find it by using pwd -W). If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on).

If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so

@evanwill
evanwill / dualpythonnotebook.md
Created June 3, 2016 19:16
add more kernels to python 3 jupyter notebooks with anaconda

this assumes you have installed Python 3 via Anaconda distribution.

Make Python 2 kernel available to Jupyter Notebook

  1. open a terminal and create a new python 2 environment: conda create -n py27 python=2.7
  2. activate the environment: linux source activate py27 or windows activate py27
  3. install the kernel in the env: conda install notebook ipykernel
  4. install the kernel for outside the env: ipython kernel install --user
  5. close the env: source deactivate
@evanwill
evanwill / etherpadsetup.md
Last active June 9, 2016 22:13
set up etherpad on a cloud vm

How to set up Etherpad in a cloud VM

Set up an Ubuntu server, then follow these directions to get an instance of Etherpad up and running! For full documentation check out the Etherpad-lite wiki.

Install dependencies

sudo apt-get install gzip git-core curl python libssl-dev pkg-config build-essential apache2
@evanwill
evanwill / osxOpenRefine.md
Last active March 29, 2021 10:03
installing OpenRefine on Mac

Install OpenRefine on Mac

Mac seems to have a few issues when trying to install OpenRefine. The official instructions are on the OpenRefine wiki, but this list brings together resources to trouble shoot some common issues.

  1. Open Refine needs Java JRE. OS X has a few issues with Java, many are documented at Oracle Java on Mac OS X. Older versions of Java are automatically disabled by OS X. Its best to go to the Java page and just download and install the most up-to-date version for Mac.
@evanwill
evanwill / grub_boot_order.md
Created July 20, 2016 04:31
update grub boot order

How to update Grub boot order on multi boot system

When logged into Ubuntu, open terminal:

sudo nano /etc/default/grub

Change GRUB_DEFAULT= to the value you want, based on its position on the GRUB menu when your computer starts up (the top OS is 0). You can use the number or use the exact label like GRUB_DEFAULT="Ubuntu 15"