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
#! ruby -Ku | |
# mood2twit.rb | |
require 'rubygems' | |
require 'win32ole' | |
require 'twitter' | |
require 'kconv' | |
$KCODE = 'UTF8' |
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
# death_agony.rb | |
#! ruby -Ku | |
require 'rubygems' | |
require 'win32ole' | |
require 'kconv' | |
$KCODE = 'UTF8' | |
@MACHINE = ARGV[0] | |
@GOD = ARGV[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
<fop version="1.0"> | |
<base>file:/C:/Program Files/Oxygen XML Author 11/</base> | |
<source-resolution>72</source-resolution> | |
<target-resolution>72</target-resolution> | |
<default-page-settings height="11in" width="8.26in"/> | |
<renderers> | |
<renderer mime="application/pdf"> | |
<filterList> | |
<value>flate</value> | |
</filterList> |
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
cd your-repo | |
git init | |
git remote add origin git@YOUR_SERVER_HOSTNAME:your-repo.git | |
# do some work, git add and commit files | |
# should commit some,otherwise repo refs not def error | |
git push origin master:refs/heads/master |
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
server { | |
listen 80; | |
# Serve static files | |
location ~* ^.+\.(css|png|ico)$ { | |
root /var/www/htdocs; | |
expires 30d; | |
} | |
if (!-f $request_filename) { |
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
user www-data; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
# multi_accept on; | |
} |
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
virtual-root=/ | |
cache-size=1000 | |
enable-index-links=1 | |
enable-log-filecount=1 | |
enable-log-linecount=1 | |
max-stats=quarter | |
root-title=tknv git repositories | |
root-desc=tracking the tknv development | |
root-readme=/var/www/htdocs/about.html | |
snapshots=tar.gz tar.bz2 zip |
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
#!perl | |
use FCGI; | |
use Socket; | |
use FCGI::ProcManager; | |
sub shutdown { FCGI::CloseSocket($socket); exit; } | |
sub restart { FCGI::CloseSocket($socket); &main; } | |
use sigtrap 'handler', \&shutdown, 'normal-signals'; | |
use sigtrap 'handler', \&restart, 'HUP'; | |
require 'syscall.ph'; | |
use POSIX qw(setsid); |
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
# death_agony.rb | |
#! ruby -Ku | |
require 'rubygems' | |
require 'win32ole' | |
require 'kconv' | |
$KCODE = 'UTF8' | |
@MACHINE = ARGV[0] | |
@GOD = ARGV[1] |
OlderNewer