Skip to content

Instantly share code, notes, and snippets.

View FernandoCutire's full-sized avatar
🙌
Just do it !

Fernando Cutire FernandoCutire

🙌
Just do it !
View GitHub Profile
license: mit
@FernandoCutire
FernandoCutire / .block
Last active June 13, 2020 13:04
Horizontal Bar Chart
license: mit
use bd_test;
/* Clientes */
insert into bd_test.cliente_FC (id_cliente,nombre,apellido,cedula,sexo,fecha_nacimiento) values (1002,'Fernando','Ortega','8-328-121','M','1976-01-10');
insert into bd_test.cliente_FC (id_cliente,nombre,apellido,cedula,sexo,fecha_nacimiento) values (2002,'Julio','Castro','E-835-645','M','1981-12-05');
insert into bd_test.cliente_FC (id_cliente,nombre,apellido,cedula,sexo,fecha_nacimiento) values (3002,'Maria','Gonzalez','E-821-1479','F','1981-12-06');
/* Hobbies */
insert into bd_test.hobbie_FC (descripcion) values ('Aviones Spotting ');
insert into bd_test.hobbie_FC (descripcion) values ('Aerografía ');
@FernandoCutire
FernandoCutire / creatingTables.sql
Created May 22, 2021 01:10
Creando tablas para el taller de Banco general
/* Creando Tablas */
use bd_test;
drop table if exists bd_test.cliente_FC;
CREATE TABLE bd_test.cliente_FC (
id_cliente int NOT NULL AUTO_INCREMENT,
nombre varchar(200) NOT NULL,
@FernandoCutire
FernandoCutire / Ejercicio1.groovy
Last active May 25, 2021 23:45
Ejercicio1.groovy
#!/usr/bin/env groovy
import groovy.sql.Sql
import groovy.util.logging.*
import java.sql.SQLException
import org.apache.log4j.*
import BGUTPConexion
import BGUTPLogger
@FernandoCutire
FernandoCutire / BGEjercicio2.groovy
Created May 26, 2021 00:19
Ejercicio 2 banco general
#!/usr/bin/env groovy
import groovy.sql.Sql
import groovy.util.logging.*
import java.sql.SQLException
import org.apache.log4j.*
import BGUTPConexion
import BGUTPLogger
@Log4j
@FernandoCutire
FernandoCutire / BG_Ejercicio-3.groovy
Created May 26, 2021 00:50
Ejercicio groovy resuelto Banco general
#!/usr/bin/env groovy
import groovy.sql.Sql
import groovy.util.logging.*
import java.sql.SQLException
import org.apache.log4j.*
import BGUTPConexion
import BGUTPLogger
@FernandoCutire
FernandoCutire / config
Created August 17, 2021 19:20
✅ Solución: SSH Config -Problemas por múltiples cuentas de git en un mismo ordenador
# GITHUB
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/github/id_rsa_pub
# GITLAB
Host gitlab.com
HostName gitlab.com
PreferredAuthentications publickey
@FernandoCutire
FernandoCutire / eliminarTablas.sql
Created November 2, 2021 01:33
El sql para eliminar todas las tablas
BEGIN
FOR cur_rec IN (SELECT object_name, object_type
FROM user_objects
WHERE object_type IN
('TABLE',
'VIEW',
'MATERIALIZED VIEW',
'PACKAGE',
'PROCEDURE',
'FUNCTION',
$ git config --global user.name "your_github_username"
$ git config --global user.email "your_github_email"
$ git config -l