- Developer tools
- Mac Ports – http://www.macports.org/install.php
- If you are running Snow Leopard, install using this guide: http://guide.macports.org/#installing.macports.subversion until version 1.8 has been released.
- TextMate – http://macromates.com/
- Snow Leopard: If cmd+left & cmd+right doesn’t work (start and end of line) download “Snow Leopard Compatibility.zip” from http://ticket.macromates.com/show?ticket_id=0FDE7076
- Alternate GUI: http://jason-evers.com/projects/green-moleskine
- Neopro theme: http://github.com/hugowetterberg/Neopro.tmTheme
- Cyberduck – http://cyberduck.ch/
This file contains hidden or 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 php | |
<?php | |
$dir = "/tmp/phpmails"; | |
if (!is_dir($dir)) { | |
mkdir($dir); | |
} | |
$input = file_get_contents('php://stdin'); | |
preg_match('|^To: (.*)|', $input, $matches); | |
$filename = isset($matches[1]) ? $matches[1] . '_' : 'no-recepient_'; | |
$t = tempnam($dir, $filename); |
This file contains hidden or 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 ruby | |
require 'cgi' | |
require ENV['TM_SUPPORT_PATH'] + '/lib/escape' | |
FILEPATH = ENV['TM_FILEPATH'] | |
lint = `~/Library/JSLint/jslint.sh` | |
lint.gsub!(/^Lint at line (\d*) character (\d*):(.+?)\n(?:(.+?)\n\n)?/m) do | |
"<p><span>Lint at <a href=\"txmt://open?url=file://#{e_url FILEPATH}&line=#{$1}&column=#{$2}\">line #{CGI.escapeHTML($1)}</a>:</span><span class=\"message\">#{CGI.escapeHTML($3)}<span></p>" << |
This file contains hidden or 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 | |
repo="`pwd`" | |
export GIT_DIR="$repo" | |
wd="`dirname $repo`" | |
echo "$repo" | |
echo "$wd" | |
cd "$wd" | |
git merge master | |
git submodule init |
This file contains hidden or 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
<?php | |
/** | |
* Override theme_block() to disable rendering of blocks. | |
*/ | |
function YOURTHEME_blocks($region) { | |
$output = ''; | |
// Right region and on the node form. | |
$node_form = ($region == 'right' && arg(0) == 'node' && (arg(1) == 'add' || arg(2) == 'edit')); | |
if (!$node_form) { |
This file contains hidden or 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
<?php | |
function sbm_upgrade_install() { | |
// Install modules that were enabled on the D5 site and should be enabled | |
// here too. Make sure that dependent modules are listed after dependencies. | |
drupal_install_modules(array( | |
'content', | |
'optionwidgets', | |
'text', | |
'content_copy', | |
'emfield', |
This file contains hidden or 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
Se http://goodold.se/blog/tech/git-workflow-going-live för allmän info. | |
Specifikt för Ostnet: | |
Lägga upp SSH-nyckel: | |
$ scp ~/.ssh/goodold_rsa.pub [email protected]:~/goodold_rsa.pub | |
-enter password | |
$ ssh [email protected] | |
-enter password | |
$ cat goodold_rsa.pub >> /mnt/persist/cloudnet/ssh_public_keys |
This file contains hidden or 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
// ==UserScript== | |
// @name Localhost | |
// @namespace GoodOld | |
// @include http://*.local/ | |
// ==/UserScript== | |
/* | |
Displays a bagde when surfing .local pages. | |
*/ |
This file contains hidden or 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
// ==UserScript== | |
// @name Localhost | |
// @namespace Perifer | |
// @include http://*.local/* | |
// ==/UserScript== | |
(function() { | |
div = document.createElement("div"); | |
div.innerHTML = '<style type="text/css" media="screen">#LocalBadge{position:fixed;right:-45px;top:-25px;z-index:99999} #LocalBadge > div{font:15px/17px Helvetica,Arial,sans-serif;-webkit-transform:rotate(45deg);-webkit-transform-origin:0 0;-webkit-box-shadow:0 0 5px #000;-moz-transform:rotate(45deg);-moz-transform-origin:0 0;-moz-box-shadow:0 0 5px #000;background:#222;background:-webkit-gradient(linear,left top,left bottom,from(#444),to(#222));width:70px;padding-top:15px;text-align:center;color:#E458B4;}</style><div id="LocalBadge"><div>local</div></div>'; | |
document.body.appendChild(div); |
This file contains hidden or 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
# Place the following at the end of ~/.profile: | |
# if [ -f ~/.ostnet_profile ]; then | |
# source ~/.ostnet_profile | |
# fi | |
# Remove duplicates from history. | |
export HISTCONTROL=erasedups | |
# Aliases | |
alias ls="ls -al --color=auto" |
OlderNewer