Skip to content

Instantly share code, notes, and snippets.

View gomezjdaniel's full-sized avatar

Daniel Gómez Jurado gomezjdaniel

View GitHub Profile
@gomezjdaniel
gomezjdaniel / psql_useful_stat_queries.sql
Created June 18, 2020 15:21 — forked from anvk/psql_useful_stat_queries.sql
List of some useful Stat Queries for PSQL
--- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md
--- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192
-- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB.
------------
-- Basics --
------------
-- Get indexes of tables

Keybase proof

I hereby claim:

  • I am gomezjdaniel on github.
  • I am gomezjdaniel (https://keybase.io/gomezjdaniel) on keybase.
  • I have a public key ASDPJ6-HINOog66P3e85UeGibijSOmY-Vxrby2BEAYfp3Ao

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am gomezjdaniel on github.
* I am gomezjdaniel (https://keybase.io/gomezjdaniel) on keybase.
* I have a public key ASD_INcTpjHDBQGq8dHgqFvJchJPVInGR8BBROU_N53srwo
To claim this, I am signing this object:
@gomezjdaniel
gomezjdaniel / deezer-mp3-download.js
Created August 19, 2017 20:46
Download - stream a deezer song / playlist / album in 320kbps, for educational purposes only ;). Strongly inspired by https://github.com/jaimehrubiks/deezer-download
const Promise = require("bluebird");
const request = require("request-promise");
const ID3Writer = require('browser-id3-writer');
const crypto = require('crypto');
const format = require('util').format;
const fs = require("fs");
const http = require('http');
// Download a deezer song / playlist / album
@gomezjdaniel
gomezjdaniel / gulpfile.js
Created January 27, 2017 18:15 — forked from soin08/gulpfile.js
Gulpfile.js to use with Django projects. Based on gulpfile.js from Google Web Starter Kit.
//Based on gulpfile.js from Google Web Starter Kit.
//https://github.com/google/web-starter-kit
'use strict';
// Include Gulp & Tools We'll Use
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var del = require('del');
var runSequence = require('run-sequence');
var browserSync = require('browser-sync');
^((ERROR)|(CRITICAL)|(Traceback \(most recent call last\):))
sem_t cola
cola colaprocesos
mumeroProcesos := 3
contador1 := 0
salida := false
@gomezjdaniel
gomezjdaniel / pseudo
Created November 14, 2012 19:44
Planificacion FIFO monitores con semaforos
numeroProcesos = 3
contador1 = 0
contador2 = 0
contador3 = 0
sem_t cola
salida = false
func extraerProceso() {