Skip to content

Instantly share code, notes, and snippets.

View Donluigimx's full-sized avatar

Luis Angel Iñiguez Hernández Donluigimx

  • BeKind / Agtonomy
  • Guadalajara, Jalisco, México
View GitHub Profile
@Donluigimx
Donluigimx / gitup.sh
Created November 21, 2023 22:57
Git Up
git config --global alias.up '!git remote update -p; git merge --ff-only @{u}'
@Donluigimx
Donluigimx / daemon.sh
Created September 22, 2022 22:15
Watch for changes on a folder, execute command on change
daemon() {
chsum1=""
while [[ true ]]
do
chsum2=`find src/ -type f -exec md5 {} \;`
if [[ $chsum1 != $chsum2 ]] ; then
if [ -n "$chsum1" ]; then
execute
fi
@Donluigimx
Donluigimx / README.MD
Created April 26, 2022 00:38 — forked from AstralJohn/Reset Udemy Progress.md
Reset Udemy Progress

Reset Udemy Progress

Last Updated: 02/11/2022

Step 1. Go to Udemy course in browser

Go to the course and have any video up. The following code relies on the right sidebar to be visible to uncheck all your progress.

Step 2. Open browser console

You can do this with ctrl+shift+j and making sure the console tab is selected for chrome/brave

@Donluigimx
Donluigimx / .tmux.conf
Last active November 12, 2021 00:43
TMUX configuration file
# Replace C-b to C-a
set -g prefix C-a
# Move between panes a la vim
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize panes a la vim
@Donluigimx
Donluigimx / eqmac.json
Created June 16, 2021 18:47
eqMac Configuration
[
{
"isDefault" : false,
"gains" : {
"global" : 0,
"bands" : [
0,
0,
0,
0,
### Keybase proof
I hereby claim:
* I am donluigimx on github.
* I am donluigimx (https://keybase.io/donluigimx) on keybase.
* I have a public key ASBCDPsUbm-DWkfQoKjuZJ2lZsk6PsqNrz5rm_-PMP311wo
To claim this, I am signing this object:
@Donluigimx
Donluigimx / .vimrc
Last active September 22, 2022 22:17
call plug#begin()
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'honza/vim-snippets'
Plug 'grvcoelho/vim-javascript-snippets'
Plug 'maxmellon/vim-jsx-pretty'
Plug 'tpope/vim-surround'
Plug 'othree/html4.vim'
Plug 'pangloss/vim-javascript'
{"Touch Bar Items":[],"Key Mappings":{"0xf700-0x260000":{"Text":"[1;6A","Action":10},"0x37-0x40000":{"Text":"0x1f","Action":11},"0x32-0x40000":{"Text":"0x00","Action":11},"0xf709-0x20000":{"Text":"[17;2~","Action":10},"0xf70c-0x20000":{"Text":"[20;2~","Action":10},"0xf729-0x20000":{"Text":"[1;2H","Action":10},"0xf72b-0x40000":{"Text":"[1;5F","Action":10},"0xf705-0x20000":{"Text":"[1;2Q","Action":10},"0xf703-0x260000":{"Text":"[1;6C","Action":10},"0xf700-0x220000":{"Text":"[1;2A","Action":10},"0xf701-0x280000":{"Text":"0x1b 0x1b 0x5b 0x42","Action":11},"0x38-0x40000":{"Text":"0x7f","Action":11},"0x33-0x40000":{"Text":"0x1b","Action":11},"0xf703-0x220000":{"Text":"[1;2C","Action":10},"0xf701-0x240000":{"Text":"[1;5B","Action":10},"0xf70d-0x20000":{"Text":"[21;2~","Action":10},"0xf702-0x260000":{"Text":"[1;6D","Action":10},"0xf729-0x40000":{"Text":"[1;5H","Action":10},"0xf706-0x20000":{"Text":"[1;2R","Action":10},"0x34-0x40000":{"Text":"0x1c","Action":11},"0xf700-0x280000":{"Text":"0x1b 0x1b 0x5b 0x41","Action":
const bent = require('bent');
const parser = require('csv-parser')
const fs = require('fs')
const pino = require("pino");
const destination = pino.destination("./app.log");
const pinoConfig = { name: "image-uploader" };
const log = pino(pinoConfig, destination);
const imagesServer = bent('https://wiggot.com/upload', 'json', 200, 'POST')
const results = []
@Donluigimx
Donluigimx / nginx.conf
Created April 14, 2020 22:57 — forked from nrollr/nginx.conf
NGINX config for SSL with Let's Encrypt certs
# UPDATED 17 February 2019
# Redirect all HTTP traffic to HTTPS
server {
listen 80;
listen [::]:80;
server_name www.domain.com domain.com;
return 301 https://$host$request_uri;
}
# SSL configuration