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 | |
# Palette is a Perl tool that creates a color swatch from a CSS file | |
# http://code.google.com/p/css-palette/source/browse/trunk/src/palette.pl | |
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/executor" | |
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/save_current_document" | |
palette = ENV["TM_BUNDLE_SUPPORT"] + "/palette.pl" | |
TextMate.save_current_document |
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
/* | |
compilation: | |
cc -fPIC -DCOMPILE_DL=1 -I/usr/local/src/php-4.2.3/main/ -I/usr/local/src/php-4.2.3/Zend/ -I/usr/local/src/php-4.2.3/ -I/usr/local/src/php-4.2.3/TSRM import_module.c -c -o import_module.o | |
gcc -shared -L/usr/local/lib -rdynamic -o import_module.so import_module.o | |
usage: | |
- assume headers are in the first row, use them for field titles | |
dl("/path/to/module"); | |
start_import("/path/to/file"); |
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 | |
# A bash script for muotning remote systems using sshfs | |
#------------------------------------------------------------ | |
clear | |
echo "This script will help you mount a remote system using sshfs." | |
echo "" | |
echo -n "Continue? (Y|n) > " | |
read a | |
if [ "$a" = "y" ] || [ "$a" = "Y" ] || \ | |
[ "$a" = "" ]; then |
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
--[[ ©2012 Tangent128 | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
of the Software, and to permit persons to whom the Software is furnished to | |
do so, subject to the Conditions of the MIT License as specified here: | |
http://opensource.org/licenses/MIT |
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 | |
# Startup script for soffice | |
# | |
# chkconfig: 2345 75 35 | |
# description: Run soffice in server mode | |
# Source function library. | |
. /etc/rc.d/init.d/functions | |
SOFFICE=/opt/openoffice.org2.4/program/soffice |
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
// To start vlc with telnet remote control: | |
// ./VLC --extraintf rc --rc-host 0.0.0.0:3000 | |
// | |
// To connect to multiple vlc's | |
// node vlcrc.js host1:3000 host2:3000 | |
var net = require('net'); | |
var readline = require('readline'); | |
//addresses of servers |
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
- certain endpoints are always blocked | |
if nginx_uri == "/_access_token" or nginx_uri == "/_me" then | |
ngx.exit(403) | |
end | |
-- import requirements | |
local cjson = require "cjson" | |
-- setup some app-level vars | |
local app_id = "APP_ID" |
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 | |
//set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__); // optional | |
spl_autoload_register(function ($class) { | |
$file = preg_replace('#\\\|_(?!.+\\\)#','/', $class) . '.php'; | |
if (stream_resolve_include_path($file)) | |
require $file; | |
}); |
OlderNewer