This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'net/http' | |
require 'nokogiri' | |
TUMBLR_USER = '[email protected]' | |
TUMBLR_PASS = 'yourpassword' | |
url = URI.parse('http://www.tumblr.com/api/write') | |
# Read the WP export file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Kerberos + Apache + SVN | |
======================= | |
I did this on Ubuntu server 10.10. Based on this: https://help.ubuntu.com/community/Kerberos | |
1) Make sure the server has appropriate DNS info, e.g.: (/etc/hosts) | |
10.0.1.147 draco.madebysofa.com | |
127.0.0.1 localhost ubuntu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (IBAction) pressedPeelIt:(UIButton *)sender | |
{ | |
//Disable the button so they can't press it | |
self.peelIt.enabled = NO; | |
[self.textHere resignFirstResponder]; | |
//Create a new UIView and set the background color to be a UIColor with pattern image of a screen capture | |
UIView *imgView = [[UIView alloc] init]; | |
[self.view addSubview:imgView]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script(src='/javascripts/jquery-1.7.min.js') | |
link(rel='stylesheet', href='/stylesheets/bootstrap.min.css') | |
link(rel='stylesheet', href='/stylesheets/bootstrap-overrides.css') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# A) Run ./iphone-screenshot | |
# B) Type in the screenshot filename | |
# C) Click on the iPhone simulator | |
OUTPUTDIR=~/Desktop | |
TEMPFILE=iphone_screenshot_temp.png | |
echo "output filename:\c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "bundler/capistrano" | |
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) | |
require "rvm/capistrano" | |
set :rvm_ruby_string, '1.9.2@sinatroxy' | |
set :rvm_type, :system | |
set :bundle_flags, "--deployment" | |
set :application, "sinatroxy" | |
set :repository, "xxx@yyy:sinatroxy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
extern UIImage * UIImageWithJPEG2000Data( NSData * data ) ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :application, "multio" | |
set :scm, :git | |
set :repository, "[email protected]:cearls/multio.git" | |
set :domain, "web310.webfaction.com" | |
set :user, "cearls" | |
set :scm_username, "cearls" | |
set :use_sudo, false | |
default_run_options[:pty] = true | |
set :ssh_options, {:forward_agent => true} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Copyright (c) 2012-2015 Cédric Luthi / @0xced. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#if TARGET_OS_SIMULATOR | |
static const char *fakeCarrier; | |
static const char *fakeTime; |
OlderNewer