iRedAdmin - API interface to the panel iRedMail (http://www.iredmail.org)
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
[Unit] | |
Description=Control headless soffice instance | |
After=network.target xvfb.service | |
Requires=xvfb.service | |
[Service] | |
Type=simple | |
ExecStart=/opt/libreoffice4.4/program/soffice --headless \ | |
--accept=socket,host=127.0.0.1,port=8101;urp; --display :5.0 \ | |
--pidfile=/var/run/soffice.pid --nologo --nodefault --nofirststartwizard |
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 | |
# | |
# chkconfig: 2345 55 25 | |
# Description: Openresty init.d script, put in /etc/init.d, chmod +x /etc/init.d/openresty | |
# For Debian, run: update-rc.d -f openresty defaults | |
# For CentOS, run: chkconfig --add openresty | |
# | |
### BEGIN INIT INFO | |
# Provides: openresty | |
# Required-Start: $all |
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
" Vim color file | |
" Converted from Textmate theme Monokai using Coloration v0.3.2 (http://github.com/sickill/coloration) | |
set background=dark | |
highlight clear | |
if exists("syntax_on") | |
syntax reset | |
endif |
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
use Plack::Builder; | |
use Plack::App::File; | |
use CGI::Emulate::PSGI; | |
use CGI::Compile; | |
my $path_of_otrs = "/path/otrs"; | |
my $cgi_script_index = $path_of_otrs . "/bin/cgi-bin/index.pl"; | |
my $sub_index = CGI::Compile->compile($cgi_script_index); | |
my $app_index = CGI::Emulate::PSGI->handler($sub_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
#!/bin/bash | |
yum groupinstall 'Development tools' -y | |
yum install ncurses ncurses-devel wget git -y | |
cd /usr/local/src | |
wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2 | |
tar -xjf vim-7.4.tar.bz2 | |
cd vim74 | |
./configure --prefix=/usr --with-features=huge --enable-rubyinterp --enable-pythoninterp | |
make && make install |
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
mike@rbci:~$ psql -U postgres | |
psql (9.0.3) | |
Type "help" for help. | |
postgres=# update pg_database set datallowconn = TRUE where datname = 'template0'; | |
UPDATE 1 | |
postgres=# \c template0 | |
You are now connected to database "template0". | |
template0=# update pg_database set datistemplate = FALSE where datname = 'template1'; | |
UPDATE 1 |
NewerOlder