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
/** | |
* Override or insert PHPTemplate variables into the templates. | |
*/ | |
function _phptemplate_variables($hook, $vars) { | |
if ($hook == 'page') { | |
// Add page template suggestions based on node type, if we aren't editing the node. | |
if ($vars['node'] && arg(2) != 'edit') { | |
$vars['template_files'][] = 'page-nodetype-'. $vars['node']->type; | |
} | |
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
touch thememe.info | |
touch style.css | |
touch page.tpl.php | |
touch region.tpl.php | |
touch block.tpl.php | |
touch node.tpl.php | |
touch comment-wrapper.tpl.php | |
touch comment.tpl.php | |
touch template.php | |
mkdir images |
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
<?php | |
$data=array( | |
"name"=>"beckham", | |
"address"=>"LA" | |
); | |
$filename = 'data.txt'; | |
$string = ''; | |
foreach($data as $key => $val) { |
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
# replace [] with your own config | |
# replace own dir to save | |
# echo doesn't work. hmm... | |
mysql -u[uname] -p'[pwd]' -e "show databases" \ | |
| grep -Ev 'Database|information_schema' \ | |
| while read dbname; \ | |
do \ | |
echo 'Dumping $dbname' \ | |
mysqldump -u[uanme] -p'[pwd]' $dbname > ~/db_backup/$dbname.sql;\ |
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
<!-- copy this to YOUR_THEME.tmTheme--> | |
<dict> | |
<key>name</key> | |
<string>diff: deleted</string> | |
<key>scope</key> | |
<string>markup.deleted</string> | |
<key>settings</key> | |
<dict> | |
<key>background</key> | |
<string>#EAE3CA</string> |
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
<? | |
function aes128Encrypt($key, $data) { | |
if(16 !== strlen($key)) $key = hash('MD5', $key, true); | |
$padding = 16 - (strlen($data) % 16); | |
$data .= str_repeat(chr($padding), $padding); | |
return base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $data, MCRYPT_MODE_CBC, str_repeat("\0", 16))); | |
} | |
function aes128Decrypt($key, $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
Show hidden characters
[ | |
{ | |
"keys" : ["alt+shift+w"], | |
"command" : "insert_snippet", | |
"args": { | |
"contents": "<${1:p}>${0:$SELECTION}</${1}>" | |
} | |
}, | |
{ "keys": ["j", "j"], "command": "exit_insert_mode", | |
"context": |
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
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"draw_centered": true, | |
"font_size": 10.0, | |
"gutter": true, | |
"ignored_packages": | |
[ | |
"SyncedSideBar" | |
], | |
"indent_guide_options": |
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
/**********************************************/ | |
/* | |
/* Darker Skin by Darcy Clarke - 2011 | |
/* | |
/* For how to install, or more themes, check out: | |
/* http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
/* | |
/* Color scheme is based on Joe Bergantine's Specials Board: | |
/* http://joebergantine.com/werkstatt/seestyle | |
/* |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Monokai</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
OlderNewer