Skip to content

Instantly share code, notes, and snippets.

View mchelen's full-sized avatar

Mike Chelen (he/him) mchelen

View GitHub Profile
@mchelen
mchelen / README.md
Last active August 29, 2015 14:15
ansible aws

you must set up a security group ansible-test on ec2

the basic requirement is for inbound ssh and i used my ip as the allowed traffic source

remember! t2 instances must be launched in VPC, so you have to create a VPC security group if not using default

also you must specify a subnet id or network interface id

@mchelen
mchelen / .gitignore
Last active March 31, 2020 06:10
jsonresume registry server ubuntu 14.04
*~
registry-server/
.vagrant/
@mchelen
mchelen / index.html
Last active August 29, 2015 14:08
rich citations cytoscape.js
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cytoscape.github.io/cytoscape.js/api/cytoscape.js-latest/cytoscape.min.js"></script>
<script src="script.js"></script>
<style>
#cy {
height: 100%;
@Noitidart
Noitidart / about.md
Last active April 13, 2022 17:52 — forked from antichris/about.md
Adds a fully functional "Fork" button to your own Gist.

Fork your own Gist

This is a script that adds a fully functional Fork button to your own Gist.

If a Fork button is already present in the page, this bookmarklet will set focus to it instead of adding another one.

The change is temporary and the button will disappear as soon as you navigate away from that Gist (clicking the Fork button does this for you as well). Meaning you will have to run the script every new page load.

Firefox

Copy the contents from bookmarklet.js, open Scracthpad (Ctrl+F4), paste it there. Back in browser, swwitch to tab with your Gist you want to fork. Back in Scratchpad, "Run" it. Save and/or bookmark the Scratchpad file for future use.

@BinaryMuse
BinaryMuse / gist_tag.rb
Created January 31, 2011 00:44
A Liquid tag for Jekyll sites that allows embedding Gists and showing code for non-JavaScript enabled browsers and readers.
require 'cgi'
require 'digest/md5'
require 'net/https'
require 'uri'
module Jekyll
class GistTag < Liquid::Tag
def initialize(tag_name, text, token)
super
@text = text
module Jekyll
module Filters
def summarize(str, splitstr = /\s*<div id="extended">/)
str.split(splitstr)[0]
end
end
end
<style type="text/css" media="screen">
table {
font-size: x-small;
font-family: sans-serif;
}
</style>
<?php
We can't make this file beautiful and searchable because it's too large.
doi,2003-10,2003-11,2003-12,2004-1,2004-2,2004-3,2004-4,2004-5,2004-6,2004-7,2004-8,2004-9,2004-10,2004-11,2004-12,2005-1,2005-2,2005-3,2005-4,2005-5,2005-6,2005-7,2005-8,2005-9,2005-10,2005-11,2005-12,2006-1,2006-2,2006-3,2006-4,2006-5,2006-6,2006-7,2006-8,2006-9,2006-10,2006-11,2006-12,2007-1,2007-2,2007-3,2007-4,2007-5,2007-6,2007-7,2007-8,2007-9,2007-10,2007-11,2007-12,2008-1,2008-2,2008-3,2008-4,2008-5,2008-6,2008-7,2008-8,2008-9,2008-10,2008-11,2008-12,2009-1,2009-2,2009-3,2009-4,2009-5,2009-6,2009-7,2009-8,2009-9,2009-10,2009-11,2009-12,2010-1,2010-2,2010-3,TOTAL
10.1371/journal.pbio.0000001,1654,1316,170,121,108,100,129,110,60,64,38,66,55,48,27,53,84,127,125,117,79,49,41,40,67,47,44,31,51,48,37,32,30,25,42,38,38,34,24,46,56,27,44,39,30,29,17,23,14,31,20,28,30,33,21,33,27,36,34,30,19,21,14,10,17,34,9,17,43,60,25,26,19,14,14,17,14,19,6409
10.1371/journal.pbio.0000002,0,1590,678,404,300,316,271,270,309,176,136,164,170,221,150,209,201,791,362,287,142,141,128,209,289,158,117,157,199,235,195,186,135,172,182
@mchelen
mchelen / apikey.php
Created September 21, 2010 18:34
Klout Batch // Submits a list of names to Klout API to find influence and basic stats // Returns results in XML or JSON
<?php
// enter API key
$key = "****************";
?>