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
# https://devcenter.heroku.com/articles/http-routing#heroku-headers | |
# http://wiki.nginx.org/HttpCoreModule#.24http_HEADER | |
# redirect all http to https with 301 | |
if ( $http_x_forwarded_proto = http ) { | |
return 301 https://$host$request_uri; | |
} |
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
http://old.fluxbox.org/docbook/en/html/chap-bg.html | |
Chapter 6. Desktop Backgrounds | |
Fluxbox, like Blackbox, just has two wrapper utilities for this - fbsetroot and fbsetbg. Let's see how they work. | |
fbsetroot is about the equivalent of xsetroot, which can set backgrounds as long as they're simple, like a solid color. fbsetroot can also set gradients. | |
fbsetbg is a wrapper that tries to find a suitable background-setting app and then tries to set the wallpaper using that app. You don't have to configure fbsetbg. It just uses the first app it can find. | |
Overriding theme backgrounds |
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
http://www.debianadmin.com/how-to-auto-login-and-startx-without-a-display-manager-in-debian.html | |
How to auto login and startx without a display manager in Debian | |
Posted by Admin on December 23rd, 2008 | |
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting! | |
If you want to auto login and startx without a display manager in Debian use the one of the following method |
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
$ tar cvvf archive.tar * | |
$ echo 'uudecode -o- << "EOF" | tar xvv ' > shellscript | |
$ uuencode archive.tar archive.tar >> shellscript | |
$ echo 'EOF' >> shellscript |
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
# telnet mldonkey command-line | |
$ telnet localhost 4000 | |
# view current downloads | |
$ vd | |
# show users currently uploading | |
$ uploaders | |
# check shared files for removal |
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
# reference | |
# http://github.com/jnstq/rails-nginx-passenger-ubuntu | |
$ sudo pacman -S base-devel openssl readline zlib | |
$ mkdir pkgs && cd pkgs | |
$ wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz | |
$ tar zxf ruby-enterprise-1.8.7-2010.02.tar.gz | |
$ cd ruby-enterprise-1.8.7-2010.02 | |
$ sudo ./installer | |
$ Enter |
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
# reference | |
# http://library.linode.com/web-servers/nginx/php-fastcgi/debian-5-lenny#install_spawn_fcgi | |
# http://wiki.archlinux.org/index.php/Nginx |
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
# reference | |
# http://wiki.archlinux.org/index.php/PostgreSQL |
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 | |
REDIS_PORT=6379 | |
REDIS_EXEC=/usr/local/bin/redis-server | |
REDIS_CLI=/usr/local/bin/redis-cli | |
REDIS_CONF=/etc/redis.conf | |
PIDFILE=/var/run/redis.pid | |
case "$1" in |
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 | |
### BEGIN INIT INFO | |
# Provides: god | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: God | |
### END INIT INFO |
OlderNewer