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 | |
// in the top of config/projectconfiguration.php you should have | |
require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php'; | |
sfCoreAutoload::register(); | |
// Immediately beneath, add this: | |
require_once dirname(__FILE__).'/../lib/util/NsAutoload.class.php'; | |
// then within ProjectConfiguration::setup() add: |
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/bash | |
# | |
# Aims to rename a symfony1 module, including renaming files and directories and replacing all usages within files | |
# | |
# Usage | |
# | |
# CD to module folder (ie: modules/old_module) and run. Then rename the module dir itself. | |
# | |
# If you are brave, may also work in modules folder and will then rename module dir too. | |
# But will replace in all modules - which may be a problem. |
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
sudo ssh -p port -C u@h mysqldump -u mysqlu --password=mysqlp dbname | mysql -u mu dbname |
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 hotpotato | |
// @namespace hotpotato | |
// @description hotpotato | |
// @include http://hotpotato.heroku.com/* | |
// ==/UserScript== | |
// Add jQuery |
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
http://t.co/@"onmouseover="$("a[href*='@']").remove();"class="modal-overlay"style="z-index:999999;font-size:99999px"/ |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# if it doesn't work, or you use a subfolder type path, you may need to edit/uncomment below | |
#RewriteBase / | |
# in short, this bit says "does this request map to a file or folder? if not, send it to index.php | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ index.php [QSA,L] | |
</IfModule> |
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
{"results":[{"profile_image_url":"http://a3.twimg.com/profile_images/1082794631/133195601-48014b398077eb7104b38ef53ce54bec_4c46fd60-full_normal.jpg","created_at":"Fri, 30 Jul 2010 14:07:28 +0000","from_user":"levi_alpha","metadata":{"result_type":"recent"},"to_user_id":null,"text":"\u8ab0\u3044\u308b\u306e\u30fc\uff1f RT @K1_ICE: @Raven8492 \u306a\u3093\u3060\u3063\u305f\u3089\u3053\u3063\u3061\u304f\u308b\u30fc\uff1f\u606f\u629c\u304d\u306b\u306a\u308b\u304b\u3082\u3088\u30fc","id":19911951483,"from_user_id":81931583,"geo":null,"iso_language_code":"ja","source":"<a href="http://twitman.channel.or.jp/auth/" rel="nofollow">TWIT-MAN</a>"},{"profile_image_url":"http://a2.twimg.com/profile_images/1024228130/___normal.png","created_at":"Fri, 30 Jul 2010 14:06:32 +0000","from_user":"papapoto","metadata":{"result_type":"recent"},"to_user_id":116859875,"text":"@RAVEN_Alhazerd \u5de6\u3082\u30ed\u30de\u30f3\u6b66\u5668\u3068\u8a00\u3046\u624b\u3082\u3042\u308b\u3093\u3060\u304c\u30fb\u3 |
NewerOlder