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
#include <iostream> | |
#include <string> | |
#include <algorithm> | |
class VBEncoder | |
{ | |
private: | |
size_t buffer_size; | |
uint32_t 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
<?php | |
/** | |
* Dowload image file from tumblr. | |
* | |
* @author sotarok | |
* @copyright 2009 sotarok | |
* @lisence The MIT License | |
*/ | |
define("BASE_DIR", dirname(__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
<?php | |
/** | |
* PcjTwitterSearch.php | |
* search.twitter.com #pcj09 log | |
* | |
* @author sotarok | |
* @copyright 2009 sotarok | |
* @license The MIT License | |
*/ |
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
._index_* |
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 php | |
<?php | |
array_shift($argv); | |
list($dir, $refname, $oldrev, $newrev, $newrev_type) = $argv; | |
$repo = str_replace('/home/git/repositories/', '', $dir); | |
chdir($dir); | |
$commit_log_cmd = "git-cat-file $newrev_type $newrev 2>&1"; |
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 | |
/** | |
* | |
* | |
*/ | |
require_once 'Net/Socket/Tiarra.php'; // openpear | |
try | |
{ |
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 | |
# | |
# An example hook script to blocks unannotated tags from entering. | |
# Called by git-receive-pack with arguments: refname sha1-old sha1-new | |
# | |
# To enable this hook, make this file executable by "chmod +x update". | |
# | |
# Config | |
# ------ | |
# hooks.allowunannotated |
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 | |
set -e | |
gitosis-run-hook post-update | |
git-update-server-info | |
## copy skeleton of hook script to each repositories (by sotaork) | |
find /home/git/repositories -name update -exec cp /home/git/git-hook-update-skel {} \; | |
find /home/git/repositories -name update -exec chmod +x {} \; |
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
diff --git a/install-all-php.sh b/install-all-php.sh | |
index cf773d0..d942b53 100755 | |
--- a/install-all-php.sh | |
+++ b/install-all-php.sh | |
@@ -71,7 +71,7 @@ fi | |
mkdir -p $HOME/bin | |
-php_dirs=`find . -type d -path './php-5.?.?'` | |
+php_dirs=`find . -type d -path './php-5.?.*'` |
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 | |
/** | |
* @author sotarok | |
* @license The MIT License | |
*/ | |
function smarty_function_gravatar ($param, &$smarty) | |
{ | |
$email = $param['email']; | |
$default = $param['default']; |