Skip to content

Instantly share code, notes, and snippets.

View FraGoTe's full-sized avatar
Working from home

Francis Gonzales FraGoTe

Working from home
  • Lima, Perú
  • 17:54 (UTC -05:00)
View GitHub Profile
FraGoTe / directives
Created February 10, 2014 02:43
How to install google chrome in Ubuntu
View directives
$ cd /tmp #Nos posicionamos en la carpeta tmp
$ wget #Descargamos el paquete de Chrome x64
--2014-02-09 15:19:24--
Resolving (,,, ...
Connecting to (||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 42434828 (40M) [application/x-debian-package]
Saving to: `google-chrome-stable_current_amd64.deb'
FraGoTe / killNetbeans
Created March 25, 2014 17:25
DIrective to kill a process
View killNetbeans
ps x | grep netbeans | grep java | awk '{print $1}' | xargs kill -15
View gist:0bbdc59dc47f2e734705
//Conexion a la base de datos
//Fin de la conexión a la base de datos
$username = "aragonc";
$password = "admin";
//Query a la tabla user filtrando por username y password
$sql="SELECT * FROM user WHERE (username='$username' AND password='$password')";
FraGoTe / Video.php
Last active August 29, 2015 14:11 — forked from HarryR/Video.php
View Video.php
class Application_Model_DbTable_Video extends Zend_Db_Table_Abstract
protected $_name = 'VIDEO';
protected $_sequence = 'VIDEO_SEQ';
protected function
editableFieldsOf(array $data) {
View loginController.js
'use strict';
angular.module('Authentication', ['TCS'])
['$scope', '$rootScope', '$location', 'AuthenticationService',
function ($scope, $rootScope, $location, AuthenticationService, tcs_modal) {
// reset login status
View gist:69d0a0a28e3735939787
{ sql: 'insert into users (user_name) values (?)' }
return this.utf8Write(string, offset, length);
TypeError: Argument must be a string
at TypeError (native)
at Buffer.write (buffer.js:572:21)
View map.js
var knex = require('./lib/index')({
dialect: 'firebird',
connection: {
host : '',
user : 'SYSDBA',
password : 'masterkey',
database : 'D:/data/lnag/SIE.FDB'
FraGoTe / 0_reuse_code.js
Created January 3, 2016 22:13
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View docker-compose.yaml
version: '2'
image: 'redmine:passenger'
container_name: 'redmine_web'
restart: always
- '3000:3000'
View de.js
module.exports = function(DocumentoElectronico) {
var _archivos = require('../../classes/Archivos')
DocumentoElectronico._obtenerRucColegio = function (cb)
var knex =;
return knex.schema.then(function(){
return knex('colegio')