Skip to content

Instantly share code, notes, and snippets.

View juanbrujo's full-sized avatar
:octocat:

Jorge Epuñan juanbrujo

:octocat:
View GitHub Profile
# Git aliases
alias gitd="git diff -- ':!package-lock.json' ':!yarn.lock'"
alias gitc='git checkout develop'
alias gits='git status'
# Will return the current branch name
# Usage example: git pull origin $(current_branch)
function current_branch() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo ${ref#refs/heads/}
@juanbrujo
juanbrujo / enlarge-photoshop.md
Created May 12, 2023 16:47
How to Resize an Image in Photoshop Without Losing Quality

Step 1: Select the Image Size Command

Go to Image in the menu bar and select Image Size. You can also hit Alt + Ctrl + I (Option + Command + I) on the keyboard.

In the box that pops up, be sure to check the box that says Resample. This ensures that Photoshop will create more pixels to add to the image.

There are a few different options for how Photoshop will perform this feat. Most of the time Automatic or Preserve Details work great. However, some of the others may work better with certain images so feel free to play around.

@juanbrujo
juanbrujo / .zshrc
Last active May 4, 2023 13:49
Some useful Git aliases for ~/.zshrc
# Git aliases
alias gitd="git diff -- ':!package-lock.json' ':!yarn.lock'"
alias gitc='git checkout development'
alias gits='git status'
# Will return the current branch name
# Usage example: git pull origin $(current_branch)
function current_branch() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo ${ref#refs/heads/}
@juanbrujo
juanbrujo / el-jak.md
Last active March 29, 2024 00:17
el jak pa sacar hora online @ civil register in Chilito

Cómo sacar hora online en registro civil en Chile (Santiago en este caso) que no sea en 6 meses más.

Antecedentes:

  • Es un cacho sacar hora porque te dan minimo pa 2 meses más adelante. Hay varias alternativas como cachar donde ponen camionetas para atenciones rápidas de CI principalmente, pero enfin si quieres tomar una hora pa la oficina y no quieres hacer la fila de los que no sacaron hora estos pasos han sido probados por varios DevsChile®.
  • Intenté hacer un script para automatizar esto pero el Jorge del pasado ya habia conseguido lo que queria con este hack y lo olvidó.

Pasos:

@juanbrujo
juanbrujo / simple-preloader.vue
Created December 14, 2021 11:01
SImplest Vue2 preloader component
<template>
<div class="preloader">
<div class="f_circleG frotateG_01"></div>
<div class="f_circleG frotateG_02"></div>
<div class="f_circleG frotateG_03"></div>
<div class="f_circleG frotateG_04"></div>
<div class="f_circleG frotateG_05"></div>
<div class="f_circleG frotateG_06"></div>
<div class="f_circleG frotateG_07"></div>
<div class="f_circleG frotateG_08"></div>
@juanbrujo
juanbrujo / stylelint-classname-regex.js
Created November 19, 2021 00:37
promote css class-names
module.exports = {
rules: {
'selector-class-pattern': '^[a-z]+(-[a-z]+)*$'
}
}
// test: https://regex101.com/r/4ChNan/2
@juanbrujo
juanbrujo / replace-jquery.md
Last active October 11, 2021 01:14
List of jQuery alternative methods in alphabetical order

List of jQuery alternative methods in alphabetical order

from: replace jQuery

addClass
addClass(classNames = '') {
  this.each((el) => {
    classNames.split(' ').forEach((className) => {
@juanbrujo
juanbrujo / face-anonymize.py
Last active June 24, 2022 01:40
Anonymize facial data on video: blur people’s faces using OpenCV
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Author: Lima Vallantin
https://medium.com/@limavallantin
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
@juanbrujo
juanbrujo / santorales-catolicos.json
Last active May 22, 2022 19:38
Santorales católicos por mes en formato JSON
{
"enero":[
"María, Madre de Dios",
"Basilio, Gregorio",
"Genoveva",
"Yolando, Rigoberto",
"Emilia",
"Wilma, Melanio",
"Raimundo",
"Luciano, Eladio",
@juanbrujo
juanbrujo / PlayStationBIOSFilesNAEUJP.md
Last active May 26, 2024 21:14
Files for PlayStation BIOS Files NA-EU-JP