Skip to content

Instantly share code, notes, and snippets.

View bmann's full-sized avatar
🏝️
In the jungle, eating cold squirrel with @anthrocypher

Boris Mann bmann

🏝️
In the jungle, eating cold squirrel with @anthrocypher
View GitHub Profile
@bmann
bmann / pre-push
Created January 10, 2015 01:43
Pre-push hook to deploy a new release to Parse.com
#!/bin/sh
/usr/local/bin/parse deploy
exit 0
@bmann
bmann / composer.json
Created January 4, 2015 06:35
Composer file for Known on Heroku
{
"require": {
"ext-gd": "*",
"ext-mbstring": "*",
"ext-mysql": "*",
"ext-mysqlnd": "*",
"ext-xmlrpc": "*"
}
}
@bmann
bmann / gist:ba40704d5c069a36c605
Created October 26, 2014 18:28
Onename verificat
Verifying that +bmann is my Bitcoin username. You can send me #bitcoin here: https://onename.io/bmann
@bmann
bmann / lunch.txt
Last active August 29, 2015 13:57
Slack commands for StackHaus
Maybe sandwiches from Big Lou's?
Save on Meats. Comfort food.
Lost and Found has good salads. Healthy, too.
Just run and get a burger from Vera's.
Across the street, Rainier Provisions.
Nelson the Seagull. Goooood bread. And salad!
Bestie! It's the wurst.
Pourhouse. A little pricey, but nice and private. And beer.
Nuba! Get the daily juice. And Najib's
Why don't we ever go to New Town Bakery?
@bmann
bmann / keybase.md
Last active December 1, 2019 21:53
keybase.md

Keybase proof

I hereby claim:

  • I am bmann on github.
  • I am boris (https://keybase.io/boris) on keybase.
  • I have a public key ASBr3eMAPCTEbqIYoCt6X8ZKhcouHWQYjIcPB7zDo-X0SAo

To claim this, I am signing this object:

@bmann
bmann / postachio-gridly-theme.html
Last active May 9, 2016 18:55
Custom Postachio theme based on the Gridly base theme. Modified to focus on highlighting link posts over "original" posts. Home page links go directly to original article.
<!DOCTYPE html>
<html lang="en-US" prefix="og: http://ogp.me/ns#">
<head>
<meta charset="utf-8">
<title>{% if is_home %}{{ site.author }} {% elif is_post %} {{ post.title }} {% elif is_link %} {{ link.title }} {% elif is_tag %} {{ tag }} {% elif is_page %} {{ page.title }} {% endif %} | {{ site.name }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
@bmann
bmann / article-image.ejs
Created September 8, 2013 06:23
A partial for Harp to include in an article layout if you want to embed a gallery. Create a directory with the same name as the article and put as many images as you like in it. Uses [swipejs](http://swipejs.com).
<%
if (public.images[current.source]) { %>
<div id="slider" class="swipe">
<div class="swipe-wrap"> <%
for (image in public.images[current.source].contents) { %>
<div><img src="/images/<%= current.source %>/<%= public.images[current.source].contents[image] %>" class="image image-full" /></div>
<% } %>
</div>
</div>
<% } %>
@bmann
bmann / selfhostedrssreaders.md
Last active December 17, 2015 00:38
Self-hosted RSS Readers

My bias is towards PaaS compatible implementations (i.e. no full LAMP server required). Russell Beattie has the definitive and updated list of all readers right now: http://www.russellbeattie.com/blog/readerpocalypse-the-players

  • Stringer - Ruby-based reader - Sinatra, PostgreSQL, designed to run on Heroku
  • Leselys - Python / Mongo / Redis, designed to run on Heroku
  • CommaFeed - Java + AngularJS + MySQL, runs on OpenShift
  • BirdReader - the only Node-based feed reader I could find. Uses CouchDB / Cloudant as the DB, no instructions for PaaS hosting
@bmann
bmann / drupal.rb
Created May 22, 2012 01:40
Modified Jekyll drupal importer - all post types, supports tags / categories, no refresh layout for nodes
require 'rubygems'
require 'sequel'
require 'fileutils'
require 'yaml'
# NOTE: This converter requires Sequel and the MySQL gems.
# The MySQL gem can be difficult to install on OS X. Once you have MySQL
# installed, running the following commands should work:
# $ sudo gem install sequel
# $ sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
@bmann
bmann / tumblr.rb
Created January 18, 2012 08:56 — forked from derek-watson/tumblr.rb
Tumblr to Jekyll migration (Octopress / link blog edition)
#!/usr/bin/env ruby
# Script to import tumblr posts into local markdown posts ready to be consumed by Jekyll.
# Inspired by New Bamboo's post http://blog.new-bamboo.co.uk/2009/2/20/migrating-from-mephisto-to-jekyll
# Supports post types: regular, quote, link, photo, video and audio
# Saves local copies of images
# via gist at https://gist.github.com/867468
require 'rubygems'
require 'open-uri'