Skip to content

Instantly share code, notes, and snippets.

View amonks's full-sized avatar
🐋
🐟🐠🐡

Andrew Monks amonks

🐋
🐟🐠🐡
View GitHub Profile
@amonks
amonks / .editorconfig
Last active August 29, 2015 14:16
my .editorconfig
# EditorConfig is awesome: http://EditorConfig.org
# Andrew Monks' .editorconfig
# current version at http://gist.github.com/amonks/0da5953d8c49f2aa0026
# 3/2/15
# top-most EditorConfig file
root = true
[*]
end_of_line = lf

If you've opened a file read-only, or if you don't want to run sudo vim for some reason, you can use this trick to save the file anyway.

:w !sudo tee %

Because you're working around the official save behavior, it'll give you a warning that the file has changed on disk, and ask if you would like to reload it. It doesn't matter which option you pick: the version you saved is exactly the same as what's in your buffer already.

@amonks
amonks / change to non standard default shell.md
Last active August 29, 2015 14:15
change your default shell

A "non-standard shell" is a shell that's not listed in /etc/shells. So, use where <shell> to find shell path, and add it to /etc/shells.

Then chsh -s

@amonks
amonks / vi-paste-mode.md
Created February 12, 2015 07:39
vi paste mode: turning off auto indentation when pasting

If you paste a block into vim with autoindent turned on, each line will automatically be indented. It's a huge pain in the ass to fix.

Instead, use paste mode!

:set paste

# edit normally, insert mode is now `-- INSERT (paste) --`

:set nopaste
@amonks
amonks / .vimrc
Last active September 30, 2016 19:59
vimrc, using plug.
" Andrew Monks' .vimrc
" current version at https://gist.github.com/amonks/95fe76e4f843c2355736
" 9/30/16
set nocompatible
" " " " " " " " " " " " " " " " " " " " " " "
" plugins
"
" first do this:
int[] numbers = new int[3];
numbers[0] = 90; // Assign value to first element in the array
numbers[1] = 150; // Assign value to second element in the array
numbers[2] = 30; // Assign value to third element in the array
// Get a random element from an array
int index = int(random(numbers.length)); // Same as int(random(3))
println(numbers[index]); // Prints one of the three words

Karaoke with Molly Soda

Andrew Monks

When I walk into the auditorium, a minute or so after 6:00PM, there's a 'Sexy Crushing' video playing off YouTube. My companion and I sit down in the second row. I'd previously been introduced to the fetish/phenomenon of 'sexy crushing' during an artist talk by Jennifer Chan, last year. The videos depict women, usually faceless and shown from the knees down, crushing objects underneath high heeled shoes. Apparently they're very popular. The video ends, and someone behind me shouts, 'Play another!' Molly Soda, whom I now identify standing behind the lecturn says, 'No'. Now we'll watch women getting pied. She types 'girls getting pied compilation' into the search field, waits for the results, and chooses a favorite video from the ones listed. It is now about 6:10. The video description reads,

"This is my second video montage of girls getting pied in the face. All these videos belong to different users around youtube. This is the first video of the week, one will

In his institutions vs. collaboration TED talk, Clay Shirky argues that a sufficiently coordinated public can (and should) more effectively generate content than a traditional institution. He says that it's in the institution's best interest to ignore a majority (perhaps 80%) of potential contributors, since they contribute a significantly smaller number of things (perhaps 20%) than the top minority of contributors. He calls it the 80 20 rule. But since the internet can allow all people to coordinate themselves, they can capture that additional 20% of value from those 80% of potential contributors.

More broadly, Clay takes the position that a small group of people — an institution, a company, an organization — will always be less effective than everybody. This point is as novel as it is obvious: what's valuable here is to create that polarization. The choice of those two alternatives, a small group vs. everybody. It's easy to look at the past and assume that institutions will play an important role going i

@amonks
amonks / portfolio.html
Last active August 29, 2015 14:06
in which I helped my friend izzy with her portfolio
<!DOCTYPE html>
<!-- saved from url=(0027)http://kathrynisabelle.com/ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>
portfolio
</title>
<meta name="description" content="portfolio">

Monument // Andrew Monks

A monument is a celebration of someone’s impact on the world, and of the empty void they leave behind them.

These days, your legacy is manifested as much in intangible media is it is in physical reality.

Celebrate your loved ones with a monument for the digital age.

What is it?