Skip to content

Instantly share code, notes, and snippets.

View danibram's full-sized avatar
🏠
Hack hack hack hack

Daniel Biedma danibram

🏠
Hack hack hack hack
View GitHub Profile

Keybase proof

I hereby claim:

  • I am danibram on github.
  • I am danibram (https://keybase.io/danibram) on keybase.
  • I have a public key ASCC_wzM_E88-IMuDm7ccJZHJIppgDbuLJJw_OpUoqjF9wo

To claim this, I am signing this object:

Despliege

Una vez el desarrollador quiera desplegar una nueva funcionalidad o testear en un entorno de desarrollo.

  1. Subira los cambios a una rama especial del repositorio.
  2. Un sistema de integracion continua (CI) estara escuchando esa rama (Jenkins por ejemplo).
    1. El CI lanzara los tests de integracion.
    2. Este hara la build de la imagen de Docker
    3. Se guardara en un container registry.
  3. Se desplegara la imagen en un Cluster de Kubernetes o tecnologia similar que acepte imagenes de docker.
@danibram
danibram / README.md
Last active May 5, 2021 07:54
Nginx Automated with @jwilder/nginx-proxy

Base Scafold project for a docker-compose with automated nginx, it has only 2 services api and pwa Folder Structure:

[proxy folder]
├── conf.d            // Folder
├── my_proxy.conf     // general nginx conf
├── nginx.tmpl        // nginx template
└── vhost.d
 └── awesome-domain.com // specific nginx config for that domain
@danibram
danibram / README.md
Last active May 5, 2021 08:46
Traefik automated dev/prod environment with docker-compose

Base Scafold project for a docker-compose with traefik, only 2 services api and pwa, no additional files needed.

@danibram
danibram / CronJob
Created August 27, 2021 07:03
AutoBackup files to S3 with md5
0 22 * * * /root/ecosystem/auto-backup backup auto
@danibram
danibram / main.js
Created May 17, 2022 10:47
XOR encode decode browser
const s1 = ``
const s2 = ``
function utf8_to_b64( str ) {
return btoa(unescape(encodeURIComponent( str )));
}
function b64_to_utf8( str ) {
return decodeURIComponent(escape(atob( str )));
@danibram
danibram / index.js
Last active August 16, 2022 01:20
Simple jquery video player (dblclick to fullscreen, play sound icons, play on screen etc...)
let VideoPlayer = {};
const pauseSVG = `
<svg width="26" height="32" viewBox="0 0 24 24">
<path fill="currentColor"
d="M8 19c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2s-2 .9-2 2v10c0 1.1.9 2 2 2zm6-12v10c0 1.1.9 2 2 2s2-.9 2-2V7c0-1.1-.9-2-2-2s-2 .9-2 2z" />
</svg>
`;
const playSVG = `
<svg xmlns="http://www.w3.org/2000/svg" width="26" height="32" viewBox="0 0 24 24">
@danibram
danibram / promises.re
Created August 20, 2022 07:56 — forked from lilactown/promises.re
Notes on using JavaScript Promises in ReasonML/BuckleScript
/**
* Making promises
*/
let okPromise = Js.Promise.make((~resolve, ~reject as _) => [@bs] resolve("ok"));
/* Simpler promise creation for static values */
Js.Promise.resolve("easy");
Js.Promise.reject(Invalid_argument("too easy"));