Skip to content

Instantly share code, notes, and snippets.

View jonkiddy's full-sized avatar
🏠
Coffee + Music - Interruptions = Code

Jon Kiddy jonkiddy

🏠
Coffee + Music - Interruptions = Code
View GitHub Profile
anonymous
anonymous / gist:161265
Created August 4, 2009 14:09
== Rules ==
On Infrastructure
-----------------
There is one system, not a collection of systems.
The desired state of the system should be a known quantity.
The "known quantity" must be machine parseable.
The actual state of the system must self-correct to the desired state.
The only authoritative source for the actual state of the system is the system.
The entire system must be deployable using source media and text files.
@drewjoh
drewjoh / custom.js
Created January 27, 2012 13:55
Dynamic (AJAX) loaded Bootstrap Modal (Bootstrap 2.1)
$(document).ready(function() {
// Support for AJAX loaded modal window.
// Focuses on first input textbox after it loads the window.
$('[data-toggle="modal"]').click(function(e) {
e.preventDefault();
var url = $(this).attr('href');
if (url.indexOf('#') == 0) {
$(url).modal('open');
} else {
@jessedearing
jessedearing / gist:2351836
Created April 10, 2012 14:44 — forked from twoism-dev/gist:1183437
Create self-signed SSL certificate for Nginx
#!/bin/bash
echo "Generating an SSL private key to sign your certificate..."
openssl genrsa -des3 -out myssl.key 1024
echo "Generating a Certificate Signing Request..."
openssl req -new -key myssl.key -out myssl.csr
echo "Removing passphrase from key (for nginx)..."
cp myssl.key myssl.key.org
openssl rsa -in myssl.key.org -out myssl.key
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active May 29, 2024 14:52
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@ndarville
ndarville / business-models.md
Last active January 13, 2024 17:27
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@jonkiddy
jonkiddy / 2013 FIRST Robotics Competition
Created February 3, 2013 05:15
A short collection of links to various topics related to the 2013 FIRST Robotics Competition.
2013 FIRST QA PDF
https://frc-qa.usfirst.org/ViewPDF/58/58_f09a7fe71f98821
FIRST "Ultimate Accent" 2013 intro/overview video
http://www.youtube.com/watch?v=wa5MGEZNrf0&list=PLZT9pIgNOV6b6ucRIEbEm45PCsFTOmhlb
Technical Resources for FIRST Robotics Competition
http://www.usfirst.org/roboticsprograms/frc/2013-Technical-Resources
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active May 30, 2024 08:12
A badass list of frontend development resources I collected over time.
@ragingwind
ragingwind / Backend Architectures Keywords and References.md
Last active April 17, 2024 10:51
Backend Architectures Keywords and References
@elena-kolevska
elena-kolevska / validators.php
Last active June 24, 2021 14:44
Custom alphabetic validator that allows spaces
<?php
/* app/validators.php */
Validator::extend('alpha_spaces', function($attribute, $value)
{
return preg_match('/^[\pL\s]+$/u', $value);
});
/*
@jonkiddy
jonkiddy / Preferences.sublime-settings
Last active July 23, 2018 15:01
Sublime Text Preferences
keymap:
[
// Sublime
{ "keys": ["super+shift+i"], "command": "reindent" },
{ "keys": ["super+shift+o"], "command": "expand_tabs" },
{ "keys": ["command+shift+k"], "command": "toggle_side_bar" },
// PHP Companion
{ "keys": ["super+shift+u"], "command": "find_use" },
{ "keys": ["super+shift+n"], "command": "insert_php_constructor_property" },