Skip to content

Instantly share code, notes, and snippets.

View bluestrike2's full-sized avatar

Tom Stoecklein bluestrike2

View GitHub Profile
@bluestrike2
bluestrike2 / nginx.conf
Created April 2, 2012 06:43
Just saving an nginx.conf file I found somewhere for a couple ideas on pjax & SSI includes
user nginx nginx;
worker_processes 1;
error_log /var/log/nginx/error_log info;
events {
worker_connections 1024;
use epoll;
}
@bluestrike2
bluestrike2 / discoverdev.css
Last active May 12, 2018 23:33
discoverdev.io user style
@-moz-document domain("discoverdev.io") {
body {
background-color: #192834;
font-size: calc( 20px + ( ( 20 - 16) * (100vw - 400px) / (1200 - 400)));
}
header>nav,
main>.intro,
.tag-list li,
.post-link>.title,
.post-item .title,

Keybase proof

I hereby claim:

  • I am bluestrike2 on github.
  • I am bluestrike2 (https://keybase.io/bluestrike2) on keybase.
  • I have a public key ASAKLofeb0h_FMGwuvsbGn-Nj0j4J1fNSAdT6dZ5xsp-wQo

To claim this, I am signing this object:

@bluestrike2
bluestrike2 / android_instructions.md
Created August 3, 2016 19:10 — forked from patrickhammond/android_instructions.md
Easily setup an Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

@bluestrike2
bluestrike2 / bookmarklet.js
Created September 28, 2012 22:47
turbolinks bookmarklet
javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('src','https://raw.github.com/gist/3802463/fa48c9302283a13e83a9f04c19022c66170aa3db/turbolinks.js');document.body.appendChild(e)%7D)());
# This code is free software; you can redistribute it and/or modify it under
# the terms of the new BSD License.
#
# Copyright (c) 2010, Sebastian Staudt
# A nano configuration file to enable syntax highlighting of some Git specific
# files with the GNU nano text editor (http://www.nano-editor.org)
#
# Save this file to a directory of your choice and add it to your nanorc using
# include ${PATH_TO_THE_FILE}/git.nanorc
#app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
def opensearch
response.headers['Content-Type'] = 'application/opensearchdescription+xml; charset=utf-8'
end
@bluestrike2
bluestrike2 / 0-readme.md
Created December 10, 2012 18:09 — forked from burke/0-readme.md
ruby-1.9.3-p327 cumulative performance patch for rbenv

ruby-1.9.3-p327 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.

Requirements

You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

@bluestrike2
bluestrike2 / boilerplate.slim
Created August 18, 2012 08:29
html5boilerplate meets slim. falls in love, builds stuff together.
doctype 5
/[if lte IE 7]
html.no-js.wf-loading.ie.ie-old lang='en'
/[if IE 8]
html.no-js.wf-loading.ie.ie8 lang='en'
/[if IE 9]
html.no-js.wf-loading.ie.ie9 lang='en'
| <!--[if (gte IE 9)|!(IE)]<!--> <html class='no-js' lang='en'> <!--<![endif]-->
head
meta charset='utf-8'
@bluestrike2
bluestrike2 / symbolset.styl
Created August 4, 2012 07:49
Stylus stylesheet for symbolset icons
@charset "UTF-8";
@font-face
font-family: 'SS-Standard'
src: url("<%= asset_path('/assets/ss-standard.eot') %>")
src: url("<%= asset_path('/assets/ss-standard.eot?#iefix') %>") format('embedded-opentype'),
url("<%= asset_path('/assets/ss-standard.woff') %>") format('woff'),
url("<%= asset_path('/assets/ss-standard.ttf') %>") format('truetype'),
url("<%= asset_path('/assets/ss-standard.svg#SSStandard') %>") format('svg')
@font-face
font-family: 'SS-Social'