This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!usr/bin/ruby | |
# Change the file extensions below with what you are converting from and to | |
extFrom = '.html' | |
extTo = '.md' | |
files = Dir.glob("*#{extFrom}") | |
name = '' | |
base = '' | |
files.each do |file| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
packages: | |
yum: | |
gcc: [] | |
libstdc++-devel: [] | |
gcc-c++: [] | |
fuse: [] | |
fuse-devel: [] | |
libcurl-devel: [] | |
libxml2-devel: [] | |
openssl-devel: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MONGODUMP_PATH="/usr/bin/mongodump" | |
MONGO_HOST="172.31.22.248" | |
MONGO_PORT="27000" | |
MONGO_DATABASE="speechbubble" | |
#Force file syncronization and lock writes | |
mongo $MONGO_HOST:$MONGO_PORT/admin --eval "printjson(db.fsyncLock())" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding: utf-8 | |
import json | |
import requests | |
class Slack(object): | |
""" | |
References: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
pip install networkx distance pattern | |
In Flipboard's article[1], they kindly divulge their interpretation | |
of the summarization technique called LexRank[2]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys, os, urllib, json | |
user = sys.argv[1] | |
u = urllib.urlopen('http://gist.github.com/api/v1/json/gists/' + user) | |
bytes = u.read() | |
u.close() | |
gistdir = user + '-gists' |