Skip to content

Instantly share code, notes, and snippets.

View cameronraysmith's full-sized avatar
🥝

Cameron Smith cameronraysmith

🥝
View GitHub Profile
#!/usr/bin/env bash
# use /usr/bin/env bash instead of /bin/bash
# because some folks use BSD
# use set -e instead of #!/bin/bash -e in case we're
# called with `bash ~/bin/scriptname`
set -e # bail out early if any command fails
set -u # fail if we hit unset variables
set -o pipefail # fail if any component of any pipe fails
<!doctype html>
<meta charset="utf-8">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.js"></script>
<script src="https://distill.pub/template.v1.js"></script>
<script type="text/front-matter">
title: "Title"
description: "subtitle or description"

Keybase proof

I hereby claim:

  • I am cameronraysmith on github.
  • I am cameronraysmith (https://keybase.io/cameronraysmith) on keybase.
  • I have a public key ASAJEAXyiSX3WUhn0We-sUt8NmgJ8fKSC10tb2009p1uBgo

To claim this, I am signing this object:

@cameronraysmith
cameronraysmith / multistopwatch-cleanup-chrome-extension
Last active July 21, 2016 15:39
multistopwatch-cleanup-chrome-extension
multistopwatch-cleanup-chrome-extension
get [jquery-2.0.3.min.js](https://code.jquery.com/jquery-2.0.3.min.js)
div > .vimiumHintMarker {
/* linkhint boxes */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#565756),
color-stop(100%,#242524));
border: 1px solid #e4e5e4;
opacity: 1.0;
text-shadow: none !important;
}
div > .vimiumHintMarker span {
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>test</title>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" />
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css" />
@cameronraysmith
cameronraysmith / hostmod
Last active August 29, 2015 14:17
Add/remove hosts to/from .ssh/config and etc/hosts files
#!/bin/bash
# initialize help variables
usageHelp="Usage: ${0##*/}
three arguments to add
usage: hostmod -n hostname -i IPaddress -k keyfile
one argument to remove
usage: hostmod -n hostname
"
@cameronraysmith
cameronraysmith / elasticsearch-tutorial-postman.json
Last active August 29, 2015 14:14
elasticsearch-tutorial-postman
{
"id":"cc49cd93-e2a8-b2f9-1e8b-51926ed66fd4",
"name":"elasticsearch-tutorial",
"timestamp":1422493750562,
"requests":[
{
"collectionId":"cc49cd93-e2a8-b2f9-1e8b-51926ed66fd4",
"id":"1b95cc96-2686-fbd1-6bee-2d640cfcdc24",
"name":"index employee 1",
"description":"",
@cameronraysmith
cameronraysmith / css_resources.md
Created June 9, 2014 18:03 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@cameronraysmith
cameronraysmith / python_resources.md
Created June 9, 2014 18:03 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides