Skip to content

Instantly share code, notes, and snippets.

View Esiravegna's full-sized avatar

Esteban Siravegna Esiravegna

  • Mendix
  • Rotterdam, Nederland
View GitHub Profile
@Esiravegna
Esiravegna / extractSubtitles.sh
Created October 17, 2024 18:42 — forked from FurloSK/extractSubtitles.sh
Extract subtitles from MKV/MP4 videos
#!/bin/sh
# Extract subtitles from each MKV/MP4 file in the given directory
# [updated 2024-01-09 by FurloSK]
# Permanent gist address: https://gist.github.com/FurloSK/7f52303a10ab7478e3cddfe4bcc50881
#
# ===== Usage =====
# extractSubtitles.sh [-i] [<fileOrDirectory>]
# -i
# Supplying this option will skip extraction and only print information about subtitles in file
# <fileOrDirectory>
| ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄|
| TEXTO |
|___________|
\ (•◡•) /
\ /
---
| |
@Esiravegna
Esiravegna / keras-regression.py
Created May 21, 2018 20:45 — forked from guangningyu/keras-regression.py
Reference: [Regression Tutorial with the Keras Deep Learning Library in Python](http://machinelearningmastery.com/regression-tutorial-keras-deep-learning-library-python/)
#!/usr/bin/env python
import urllib2
import numpy as np
from keras.models import Sequential
from keras.layers import Dense
from keras.wrappers.scikit_learn import KerasRegressor
from sklearn.model_selection import cross_val_score
from sklearn.model_selection import KFold
from sklearn.preprocessing import StandardScaler
@Esiravegna
Esiravegna / PowerShell Customization.md
Created April 22, 2018 18:37 — forked from jchandra74/PowerShell Customization.md
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

Cualquier cosa que pueda ir mal, ... irá mal. (Ley de Murphy)
Si una cosa puede ir mal, irá mal por triplicado. (Ley de Murphy sobre el gobierno)
Si hay diversas cosas que pueden ir mal, irá mal, la que haga más daño. (Corolario de Murphy)
La ley de Murphy, no la inventó Murphy, sino otro hombre que se llamaba igual.
Dos colas no son más que el principio. (Corolario de Kuhin sobre la ley de Murphy)
@Esiravegna
Esiravegna / jquery.imgareaselect.pack.js
Last active March 16, 2017 18:16
jquery.imgareaselect.pack.js
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(m($){18 W=2v.4T,D=2v.4S,F=2v.4R,u=2v.4Q;m V(){C $("<4P/>")};$.N=m(T,c){18 O=$(T),1F,A=V(),1k=V(),I=V().r(V()).r(V()).r(V()),B=V().r(V()).r(V()).r(V()),E=$([]),1K,G,l,17={v:0,l:0},Q,M,1l,1g={v:0,l:0},12=0,1J="1H",2k,2j,1t,1s,S,1B,1A,2o,2n,14,1Q,a,b,j,g,f={a:0,b:0,j:0,g:0,H:0,L:0},2u=R.4O,1M=4N.4M,$p,d,i,o,w,h,2p;m 1n(x){C x+17.v-1g.v};m 1m(y){C y+17.l-1g.l};m 1b(x){C x-17.v+1g.v};m 1a(y){C y-17.l+1g.l};m 1z(3J){C 3J.4L-1g.v};m 1y(3I){C 3I.4K-1g.l};m 13(32){18 1i=32||1t,1h=32||1s;C{a:u(f.a*1i),b:u(f.b*1h),j:u(f.j*1i),g:u(f.g*1h),H:u(f.j*1i)-u(f.a*1i),L:u(f.g*1h)-u(f.b*1h)}};m 23(a,b,j,g,31){18 1i=31||1t,1h=31||1s;f={a:u(a/1i||0),b:u(b/1h||0),j:u(j/1i||0),g:u(g/1h||0)};f.H=f.j-f.a;f.L=f.g-f.b};m 1f(){9(!1F||!O.H()){C}17={v:u(O.2t().v),l:u(O.2t().l)};Q=O.2Y();M=O.3H();17.l+=(O.30()-M)>>1;17.v+=(O.2q()-Q)>>1;
@Esiravegna
Esiravegna / multithread_downloader.py
Created September 25, 2016 00:27
image downloader python
import os
import concurrent.futures
import urllib.request
def download(url, element):
# open in binary mode
@Esiravegna
Esiravegna / defining_builidng_coursera.ipynb
Created September 11, 2016 17:20
Defining a building
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
(venv)➜ Mort git:(PBL_1505) ✗ conda install --yes --copy --prefix ./venv --file requirements-conda.txt
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata: ....
.Solving package specifications: .........
Package plan for installation in environment /Users/estebansiravegna/OLAPIC/Mort/venv:
The following NEW packages will be INSTALLED:
coverage: 4.0.3-py27_0 (copy)
@Esiravegna
Esiravegna / apcs_dump.txt
Created January 22, 2016 21:46
power ups
apc/ups/linev 206.0
apc/ups/linev 208.0
apc/ups/linev 208.0
apc/ups/linev 212.0
apc/ups/linev 210.0
apc/ups/linev 208.0
apc/ups/linev 210.0
apc/ups/linev 210.0
apc/ups/linev 210.0
apc/ups/linev 210.0