Skip to content

Instantly share code, notes, and snippets.

@schatteleyn
schatteleyn / Firefly 1x15 ’Dead Or Alive’
Created February 8, 2013 23:24
Firefly 1x15 ’Dead Or Alive’ - Complete Transcript and donate car You don't what could happen, so here's a copy. Original here http://www.whedon.info/article.php3?id_article=8136
Firefly
"Dead or Alive"
Episode # : 1AGE06
Story # :
Written by : Cheryl Cain
Directed by : Marita Grabiak
@joelverhagen
joelverhagen / generate_cert.sh
Created August 10, 2012 16:46
A nice helper script for generating a self-signed certificate. Great for getting HTTPS running on a home server.
#!/bin/bash
# ensure the script is running as root
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root." 1>&2
exit 1
fi
NAME=${1:-self-signed}
@calimarkus
calimarkus / NSContainer+Subscripting.h
Created August 10, 2012 14:35
Objective-C Literals: Object Subscripting (LLVM 4.0) - ready to use in iOS 5 & 4!
//
// NSContainer+Subscripting.h
//
// Created by Markus Emrich on 10.08.12.
// Copyright 2012 nxtbgthng. All rights reserved.
//
#if !defined(__IPHONE_6_0) || __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_6_0
#import "NSContainer+Subscripting.h"
@lucasmezencio
lucasmezencio / gist:3314588
Created August 10, 2012 14:23
Remove all SVN folders recursively from a folder
find . -name ".svn" -exec rm -rf {} \;
@grantmiller
grantmiller / LP-Mobile-Web-Adv.html
Created August 10, 2012 00:45
LP Mobile Advanced Integration Options
<script type="text/javascript" src="https://d3tpuxked45kzt.cloudfront.net/lp_lib/liveperson.js"></script>
<script type="text/javascript">
var _lpcfg = {
triggerSelector : '.hlpBtn', // Replace with a selector to your help button(s)
extras : function() {
var extras = {'varName1': 'varValue1',
'varName2': 'varValue2'};
return extras;
},
onChatDisabled : function(els) {
//
// BCOAuthController.h
// Bivy
//
// Created by Brandon Cordell on 8/1/12.
// Copyright (c) 2012 lead&rock. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <WebKit/WebKit.h>
@irace
irace / BITwitterAuthenticator.h
Created August 9, 2012 21:09
Objective-C Twitter three-legged authorization flow
//
// BITwitterAuthenticator.h
//
// Created by Bryan Irace on 8/9/12.
// http://bryan.mit-license.org
//
@interface BITwitterAuthenticator : NSObject
@property (nonatomic, copy) NSString *OAuthConsumerToken;
/**
* MCG
*/
body {
color: #333;
font-size: 14px;
font-family:'Radley', serif;
font-weight: 400;
}
@maxkramer
maxkramer / NSArray - arrayCreate()
Created August 8, 2012 16:47
Quick NSArray creation objective-c
NSArray *arrayCreate(id firstObject, ...) {
NSMutableArray *objects = [NSMutableArray array];
[objects addObject:firstObject];
va_list args;
va_start(args, firstObject);
id arg;
while ((arg = va_arg(args, id))) {
if (arg == nil)
break;
[objects addObject:arg];

Funktioner

Init

Starta ett nytt projekt i nuvarande katalogen. Detta skulle vara gjort så att man inte behöver komma ihåg alla detaljer om det som skall göras.

  • Git init
  • Lägg till github repo som remote
  • Skapa config filer för deploy script
  • Installera valfritt projekt: drupal, wordpress, html5boilerplate