Skip to content

Instantly share code, notes, and snippets.

1: /usr/share/vim/vimrc
2: /usr/share/vim/vim72/debian.vim
3: /usr/share/vim/vim72/syntax/syntax.vim
4: /usr/share/vim/vim72/syntax/synload.vim
5: /usr/share/vim/vim72/syntax/syncolor.vim
6: /usr/share/vim/vim72/filetype.vim
7: /home/gtsafas/.vimrc
8: /usr/share/vim/vim72/syntax/nosyntax.vim
9: /home/gtsafas/GIT/Vim/.vim/colors/jellybeans.vim
10: /home/gtsafas/GIT/Vim/.vim/plugin/BlockComment.vim
@gtsafas
gtsafas / gist:1067260
Created July 6, 2011 13:49
Monokai conversion
" Vim color file
" Converted from Textmate theme Monokai using Coloration v0.2.5 (http://github.com/sickill/coloration)
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
endif
@gtsafas
gtsafas / gist:1219198
Created September 15, 2011 13:19
DBIx::Connector issue
my $con = DBIx::Connector->new("dbi:mysql:database=$db_admin_db;host=$db_admin_server;port=$db_port;mysql_socket=$socket_path", $db_admin_user, $db_admin_password,{ RaiseError => 1, AutoCommit => 1, mysql_auto_reconnect => 0 } );
my $emails = "";
$con->run(fixup => sub {
$emails = "";
my $sth = $_->prepare("select distinct U.email from applications T, users U where T.application=? and T.event=? and (U.access & (1<<(T.id-1)) <> 0) and U.client_of=?");
@gtsafas
gtsafas / gist:1235778
Created September 22, 2011 19:32
Mojo make for pj
#hyp.conf
{pid_file => '/tmp/myapp.pid', local_file => '/tmp/myapp.lock'}
#makefile
#-----------------------------------------------------------------------------------
# installer + mgmt tool
#
#
CURL=sudo apt-get install curl
#!/usr/bin/perl
use strict;
use warnings;
my $nginx_prod = '
upstream myapp {
server 127.0.0.1:8080;
}
server {
@gtsafas
gtsafas / gist:1281945
Created October 12, 2011 17:42
gitlibs
slightly better loader Macdonald had a more quotes again, E-I-E-I-O
and on that updated routes to use transactions he had an und3f, E-I-E-I-O
with a added named url_for fixed relative path handling here
and a cleaned up timers added simpsons quote there,
here a fixed fork bug in Mojo::IOLoop, there a mention default connection timeout,
everywhere a added client offline tests added root method to Mojo::DOM,
fixed JavaScript/CSS bug in Mojo::DOM Macdonald had a added experimental sort method to Mojo::Collection, E-I-E-I-O.
#-----------------------------------------------------------------------------------
# Mojo installer + mgmt
#
#
CURL=sudo apt-get install curl
MOJO=sudo sh -c "curl -L cpanmin.us | perl - Mojolicious"
NGINX=sudo apt-get install nginx
OPENSSL=sudo apt-get install openssl
NGINX_PATH=/etc/nginx
INSTALL_PATH=$(shell pwd)
#!/usr/bin/perl
use strict;
use warnings;
my $nginx_prod = '
upstream myapp {
server 127.0.0.1:8080;
}
server {
var webpack = require('webpack');
var path = require('path');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js'
},
module: {
class Item extends React.Component {
onClick() {
console.log(1);
}
render() {
return (<div onClick={this.onClick.bind(this)}></div>)
}
}