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ú
  • 10:15 (UTC -05:00)
View GitHub Profile
var knex = require('./lib/index')({
dialect: 'firebird',
connection: {
host : '127.0.0.1',
user : 'SYSDBA',
password : 'masterkey',
database : 'D:/data/lnag/SIE.FDB'
}
});
/**
{ sql: 'insert into users (user_name) values (?)' }
buffer.js:572
return this.utf8Write(string, offset, length);
^
TypeError: Argument must be a string
at TypeError (native)
at Buffer.write (buffer.js:572:21)
'use strict';
angular.module('Authentication', ['TCS'])
.controller('LoginController',
['$scope', '$rootScope', '$location', 'AuthenticationService',
function ($scope, $rootScope, $location, AuthenticationService, tcs_modal) {
// reset login status
AuthenticationService.ClearCredentials();
@FraGoTe
FraGoTe / Video.php
Last active August 29, 2015 14:11 — forked from HarryR/Video.php
<?php
class Application_Model_DbTable_Video extends Zend_Db_Table_Abstract
{
protected $_name = 'VIDEO';
protected $_sequence = 'VIDEO_SEQ';
protected function
editableFieldsOf(array $data) {
<?php
//Conexion a la base de datos
mysql_connect("localhost","usuarioBaseDeDatos","claveBaseDeDatos");
mysql_select_db("nombreDeLaBaseDeDatos");
//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
FraGoTe / killNetbeans
Created March 25, 2014 17:25
DIrective to kill a process
ps x | grep netbeans | grep java | awk '{print $1}' | xargs kill -15
@FraGoTe
FraGoTe / directives
Created February 10, 2014 02:43
How to install google chrome in Ubuntu
$ cd /tmp #Nos posicionamos en la carpeta tmp
$ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb #Descargamos el paquete de Chrome x64
--2014-02-09 15:19:24-- https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
Resolving dl.google.com (dl.google.com)... 173.194.36.39, 173.194.36.35, 173.194.36.40, ...
Connecting to dl.google.com (dl.google.com)|173.194.36.39|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 42434828 (40M) [application/x-debian-package]
Saving to: `google-chrome-stable_current_amd64.deb'