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 / 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 / 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 / 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:

@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"

@evanwill
evanwill / openRefineTips.md
Created August 31, 2016 18:32
openrefine tips

Handy OpenRefine Functions to Remember

OpenRefine Cross function

Use cross to retrieve columns from other OpenRefine projects based on a common column.

  1. Open the two projects you want to join
@evanwill
evanwill / wgetNotes.md
Created August 31, 2016 18:45
wget notes

wget

Wget is a handy commandline utility for grabbing stuff off the web. It is built into most UNIX systems. If you are on windows, install Git for Windows which comes packaged with Git Bash, a very handy UNIX terminal emulator (note: check if Git Bash has wget installed by typing wget --version. If it is not installed, check this Gist). Another handy windows option is MobaXterm.

Check all the commands by typing wget --help in your terminal.

Ubuntu tips

Ubuntu is great, but here are some tips to fix some issues that I regularly encounter.

Mouse doesn't seem quite right

If its a logitech mouse, install solaar with Unity/gnome extensions, sudo apt-get install solaar-gnome3. Then unplug the mouse and restart the system. Or try lomoco to manually configure.

Use Jekyll Deploy command

jekyll-deploy adds a new jekyll command, accessed on the command line as jekyll deploy. It allows you to add a custom config to quickly deploy the site after build to a different destination.

install

Create a file in root project directory called Gemfile that contains: