Skip to content

Instantly share code, notes, and snippets.

View mgmilcher's full-sized avatar

Marius Milcher mgmilcher

View GitHub Profile
@mgmilcher
mgmilcher / gist:5605936
Created May 18, 2013 22:11
Markdown Cheat Sheet. Originally created by from http://warpedvisions.org/projects/markdown-cheat-sheet/
# Header 1 #
## Header 2 ##
### Header 3 ### (Hashes on right are optional)
#### Header 4 ####
##### Header 5 #####
## Markdown plus h2 with a custom ID ## {#id-goes-here}
[Link back to H2](#id-goes-here)
This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one
@mgmilcher
mgmilcher / linux_crib_sheet.md
Last active October 12, 2015 10:08
Linux Crib Sheet

Linux Shortcuts

General Crib Sheet

Find a file

find / -name php.ini

Find Directory

@mgmilcher
mgmilcher / samples.label
Created October 5, 2012 12:13
SLIMS Sample Label Template
<?xml version="1.0" encoding="utf-8"?>
<DieCutLabel Version="8.0" Units="twips">
<PaperOrientation>Portrait</PaperOrientation>
<Id>Shipping</Id>
<PaperName>30323 Shipping</PaperName>
<DrawCommands>
<RoundRectangle X="0" Y="0" Width="3060" Height="5715" Rx="270" Ry="270" />
</DrawCommands>
<ObjectInfo>
<TextObject>
@mgmilcher
mgmilcher / pagination.ctp
Created June 4, 2012 16:15 — forked from slywalker/pagination.ctp
pagination element for CakePHP on twitter bootstrap
<?php
if (!isset($modules)) {
$modulus = 11;
}
if (!isset($model)) {
$models = ClassRegistry::keys();
$model = Inflector::camelize(current($models));
}
?>
<div class="pagination">
<?
class AppController extends Controller {
var $sslRequired = array('login', 'logout');
var $sslAllowed = array('index');
var $beforeFilter = array('ensureProperProtocol');
private function sslRequired() {
return in_array($this->action, $this->sslRequired);
}