Skip to content

Instantly share code, notes, and snippets.

View silvioq's full-sized avatar

Silvio silvioq

  • Argentina
  • 01:27 (UTC -03:00)
View GitHub Profile
<?php
require_once("../includes/config.inc.php");
require_once("../includes/class.CommonFunctions.php");
require_once("../includes/class.DatabaseManager.php");
require_once("../includes/class.LogonUser.php");
use strict;
use warnings;
# open log.txt
open (my $LOG, '>>', 'log.txt');
# change to log
select $LOG;
print "hello log!\n";
#!/usr/bin/perl
use strict;
use CGI;
use CGI::Carp qw ( fatalsToBrowser );
use File::Basename;
use JSON;
$CGI::POST_MAX = 1024 * 512;
$CGI::DISABLE_UPLOADS=0;
$|=1;
#!/usr/bin/perl
use strict;
use CGI;
use CGI::Carp qw ( fatalsToBrowser );
use File::Basename;
$CGI::POST_MAX = 1024 * 512;
$CGI::DISABLE_UPLOADS=0;
$|=1;
@silvioq
silvioq / README
Last active August 29, 2015 14:01
Monkey banana, walk on the arena and do not crash with your bananas
<!DOCTYPE HTML>
<html>
<script>
function drawPicture(){
// Primero se recupera el objeto canvas a modificar
var canvas = document.getElementById('example');
// Luego se le indicar la forma de trabajar 2D o 3D
var context = canvas.getContext('2d');
# Created by Kevin Kelly (at) devonit.com
# July 16, 2009
# based on latin american keyboard layout
include common
map 0x080A
#
bar 0x29
notsign 0x29 altgr
@silvioq
silvioq / openshift-symfony-creator.sh
Last active February 27, 2016 00:51
This script creates a Gear with symfony in Openshift
#!/bin/bash
read -p "Enter your app name: " APP
if [ q$APP == q ] ; then
echo "No app ... aborting"
exit 1
fi
read -p "Enter database engine [mysql|pgsql] (mysql): " ENG
if [ q$ENG == q ] ; then
ENG=mysql
" Delete buffer while keeping window layout (don't close buffer's windows).
" Version 2008-11-18 from http://vim.wikia.com/wiki/VimTip165
if v:version < 700 || exists('loaded_bclose') || &cp
finish
endif
let loaded_bclose = 1
if !exists('bclose_multiple')
let bclose_multiple = 1
endif
@silvioq
silvioq / .vimrc.vim
Last active January 3, 2016 20:19
My vimrc
:syntax on
:set et
:set ts=2
:set sts=2
:set nowrap
:set autoindent
:set nocompatible
:set background=light