Skip to content

Instantly share code, notes, and snippets.

NAME

DHX - Generate XML for defining interfaces with DHTMLX

SYNOPSIS

NAME

DHX::Accordion - Generate XML for defining interfaces with DHTMLX

SYNOPSIS

NAME

Dancer2::Plugin::Pg - PostgreSQL connection for Dancer2

SYNOPSIS

NAME

iRedAdmin::Admin - API for add, edit, delete, enable and disable User Admin

NAME

iRedAdmin::Domain - API for add, edit, delete, enable and disable Domain

@lucas1
lucas1 / psqlfix.txt
Created April 28, 2016 16:53
Change postgres default template0 to UTF8 encoding
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

NAME

iRedAdmin::User - API for add, edit, delete, enable and disable User

@lucas1
lucas1 / vim74centos
Created November 2, 2016 20:06 — forked from juxtin/vim74centos
Compile Vim 7.4 on Centos and install my vimrc
#!/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
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);
" 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