View directives
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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' |
View killNetbeans
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps x | grep netbeans | grep java | awk '{print $1}' | xargs kill -15 |
View gist:0bbdc59dc47f2e734705
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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')"; |
View Video.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
angular.module('Authentication', ['TCS']) | |
.controller('LoginController', | |
['$scope', '$rootScope', '$location', 'AuthenticationService', | |
function ($scope, $rootScope, $location, AuthenticationService, tcs_modal) { | |
// reset login status | |
AuthenticationService.ClearCredentials(); | |
View gist:69d0a0a28e3735939787
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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) |
View map.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var knex = require('./lib/index')({ | |
dialect: 'firebird', | |
connection: { | |
host : '127.0.0.1', | |
user : 'SYSDBA', | |
password : 'masterkey', | |
database : 'D:/data/lnag/SIE.FDB' | |
} | |
}); | |
/** |
View 0_reuse_code.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
web: | |
image: 'redmine:passenger' | |
container_name: 'redmine_web' | |
restart: always | |
ports: | |
- '3000:3000' |
View de.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(DocumentoElectronico) { | |
var _archivos = require('../../classes/Archivos') | |
DocumentoElectronico._obtenerRucColegio = function (cb) | |
{ | |
var knex = DocumentoElectronico.app.getKnex(); | |
return knex.schema.then(function(){ | |
return knex('colegio') | |
.select('RUC'); |
OlderNewer