Skip to content

Instantly share code, notes, and snippets.

View viceo's full-sized avatar
๐Ÿ‡ฒ๐Ÿ‡ฝ
Working from home

Leopoldo Muรฑoz viceo

๐Ÿ‡ฒ๐Ÿ‡ฝ
Working from home
  • Fermilab
  • Batavia IL
View GitHub Profile
@viceo
viceo / git-log2json.sh
Created April 13, 2018 04:45 — forked from textarcana/git-log2json.sh
Convert Git logs to JSON. The first script (git-log2json.sh) is all you need, the other two files contain only optional bonus features :) UPDATED 2017: Today I would just use https://github.com/tarmstrong/git2json
#!/usr/bin/env bash
# Use this one-liner to produce a JSON literal from the Git log:
git log \
--pretty=format:'{%n "commit": "%H",%n "author": "%aN <%aE>",%n "date": "%ad",%n "message": "%f"%n},' \
$@ | \
perl -pe 'BEGIN{print "["}; END{print "]\n"}' | \
perl -pe 's/},]/}]/'
@viceo
viceo / imageToBase64.js
Created October 31, 2018 04:18 — forked from gfcarvalho/imageToBase64.js
Converting a local image to base64 using JavaScript (canvas + regexp)
function imageToBase64(img)
{
var canvas, ctx, dataURL, base64;
canvas = document.createElement("canvas");
ctx = canvas.getContext("2d");
canvas.width = img.width;
canvas.height = img.height;
ctx.drawImage(img, 0, 0);
dataURL = canvas.toDataURL("image/png");

Crear y Correr nuevo contenedor

$ docker run

Crear nuevo contenedor

$ docker create

Correr contenedor

$ docker run -a

Ver lista de contenedores (procesos)

@viceo
viceo / gist:a1ab4cddde2d445c0d635b6758342f5d
Created April 12, 2019 16:45
WoeUSB Installation Command
Instalar Windows 10
$ sudo woeusb --tgt-fs NTFS -d /path/of/iso /path/of/dev/usb
@viceo
viceo / 80-touchscreen.rules
Last active June 11, 2020 02:00
Deshabilitar drivers en Linux (Molestos Touchscreen)
# Encuentras el idVendor y el idProduct haciendo
cat /proc/bus/input/devices
# Despues de guardar hacer como root (sin necesidad de reboot)
udevadm control --reload-rules && udevadm trigger
# Ubicaciรณn
# /etc/udev/rules.d/80-touchscreen.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="04f3", ATTRS{idProduct}=="20d0", ATTR{authorized}="0"
@viceo
viceo / gist:8352213213b207165d808bb41a46507d
Created June 14, 2019 05:27
Instalar todos los Screensavers en MATE
1) Instalar
apt-get install xscreensaver-data-extra xscreensaver-gl-extra
2) ir a
cd /usr/share/applications/screensavers
3) Cambiar "OnlyShowIn=GNOME;" por "OnlyShowIn=GNOME;MATE;"
@viceo
viceo / project-ideas01.md
Created January 22, 2020 18:31 — forked from MWins/project-ideas01.md
Back end Projects - list

Project Ideas

Ok. I'm going to list off some ideas for projects. You will have to determine if any particular idea is good enough to include in a portfolio. These aren't creative ideas. They likely already exist. Some are way too advanced while others are simplistic.

I will recommend to post any project you make to github and make a github project page for it. Explain in as much detail as possible how you made it, how it can be improved etc. Document it.

If you pick an advanced idea, setup a development roadmap and follow it. This will show some project management skills.

Another piece of advice for those who are design challenged. Use different front end frameworks and use different themes for those frameworks to provide appealing designs without looking like yet another bootstrap site.

@viceo
viceo / Regex RFC
Last active February 26, 2021 21:16
Regex para validar RFC
^([A-Zร‘&]{3,4}) ?(?:- ?)?(\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])) ?(?:- ?)?([A-Z\d]{2})([A\d])$
@viceo
viceo / README.md
Created February 13, 2020 17:49 — forked from roachhd/README.md
EMOJI cheatsheet ๐Ÿ˜›๐Ÿ˜ณ๐Ÿ˜—๐Ÿ˜“๐Ÿ™‰๐Ÿ˜ธ๐Ÿ™ˆ๐Ÿ™Š๐Ÿ˜ฝ๐Ÿ’€๐Ÿ’ข๐Ÿ’ฅโœจ๐Ÿ’๐Ÿ‘ซ๐Ÿ‘„๐Ÿ‘ƒ๐Ÿ‘€๐Ÿ‘›๐Ÿ‘›๐Ÿ—ผ๐Ÿ”ฎ๐Ÿ”ฎ๐ŸŽ„๐ŸŽ…๐Ÿ‘ป

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. โœˆ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: ๐Ÿ˜„

@viceo
viceo / multiplePromiseFileUpload.js
Last active May 7, 2021 05:16
Subir multiples archivos en promesa
let _peticionesArchivos = [];
postData.archivos.forEach(archivo => {
let formData = new FormData();
formData.append("comprobante", archivo["$file"]);
// Encolamos peticiones en lista
_peticionesArchivos.push(
axios.post("/archivos", formData, {
headers: {
"Content-Type": "multipart/form-data"