Skip to content

Instantly share code, notes, and snippets.

View gilberto-009199's full-sized avatar
🎯
Focusing

Gil gilberto-009199

🎯
Focusing
View GitHub Profile
@gilberto-009199
gilberto-009199 / FormasCSSGilbertoRamos.css
Last active May 23, 2020 02:01
Calculadora de Formas Geometricas
/*! Link https://jsfiddle.net/gilbertotec/fvyst952/8/
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
@gilberto-009199
gilberto-009199 / promise.polyfill.js
Created July 23, 2021 20:11
Promise polyfill es5 ie8+
/** Pseudo classe Promise es5 compativel ie8+ */
function MyPromisePolyfill(func){
var ctx = this;
this.resolve = function(data){
ctx.then(data);
};
this.then = function(funcResolve){
ctx.then = funcResolve;
};
this.reject = function(data){
package main;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.Socket;
import java.util.List;
import java.util.Map;
@gilberto-009199
gilberto-009199 / Main.java
Created February 14, 2023 18:55
Capture packet in device network JAVA using jnetpcap
package main;
import org.jnetpcap.Pcap;
// Lib = https://sourceforge.net/projects/jnetpcap/files/jnetpcap/Latest/
// Tutorial = https://www.geeksforgeeks.org/packet-capturing-using-jnetpcap-in-java/
import org.jnetpcap.PcapIf;
import org.jnetpcap.packet.JPacket;
@gilberto-009199
gilberto-009199 / index.js
Created May 2, 2023 04:42
Compare Properties files
let fs = require('fs');
let path = require('path');
// npm install readline-sync event-stream
const es = require('event-stream');
const os = require('os');
const readlineSync = require('readline-sync');
let dirs = [];
FROM osixia/openldap
ENV LDAP_ORGANISATION="Warlords" \
LDAP_DOMAIN="warlords.org"
COPY bootstrap.ldif /container/service/slapd/assets/config/bootstrap/ldif/50-bootstrap.ldif
FROM quay.io/keycloak/keycloak
ENV KEYCLOAK_IMPORT realm-export.json
COPY ${KEYCLOAK_IMPORT} /opt/keycloak/data/import/
RUN ./opt/keycloak/bin/kc.sh import --file /opt/keycloak/data/import/${KEYCLOAK_IMPORT}
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]
@gilberto-009199
gilberto-009199 / main.go
Created July 27, 2023 18:39
Example of symmetric cryptography in Golang
// You can edit this code!
// Click here and start typing.
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/des"
"crypto/rc4"
"fmt"
@gilberto-009199
gilberto-009199 / analytics.ipynb
Last active September 20, 2023 00:39
analytics.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gilberto-009199
gilberto-009199 / ENB2012_data.csv
Last active September 25, 2023 18:58
ac2.ipynb
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Compactação Relativa;Área da Superfície;Área da Parede;Área do Telhado;Altura Geral;Orientação;Área de Envidraçamento;Distribuição da Área de Envidraçamento;Carga de Aquecimento;Carga de Resfriamento
0.98;514.50;294.00;110.25;7.00;2;0.00;0;15.55;21.33
0.98;514.50;294.00;110.25;7.00;3;0.00;0;15.55;21.33
0.98;514.50;294.00;110.25;7.00;4;0.00;0;15.55;21.33
0.98;514.50;294.00;110.25;7.00;5;0.00;0;15.55;21.33
0.90;563.50;318.50;122.50;7.00;2;0.00;0;20.84;28.28
0.90;563.50;318.50;122.50;7.00;3;0.00;0;21.46;25.38
0.90;563.50;318.50;122.50;7.00;4;0.00;0;20.71;25.16
0.90;563.50;318.50;122.50;7.00;5;0.00;0;19.68;29.60
0.86;588.00;294.00;147.00;7.00;2;0.00;0;19.50;27.30