Skip to content

Instantly share code, notes, and snippets.

View zeroidentidad's full-sized avatar
:shipit:
00:00 [ᴢᴇʀᴏ]~ go run .

フ乇丂ひ丂 zeroidentidad

:shipit:
00:00 [ᴢᴇʀᴏ]~ go run .
View GitHub Profile
@zeroidentidad
zeroidentidad / mass_git_updater.py
Created June 30, 2021 15:08 — forked from lggomez/mass_git_updater.py
[Python] Mass git updater
__author__ = "lggomez"
__copyright__ = "Copyright 2017"
__credits__ = ["Luis Gomez"]
__license__ = "MIT"
__version__ = "0.3"
__maintainer__ = "lggomez"
__status__ = "Production"
import argparse
import os
@zeroidentidad
zeroidentidad / ternario.go
Last active June 24, 2023 14:59
Idea helper ternario en Go
package main
import (
"fmt"
)
func main() {
// Con tipos primitivos definidos
a := ternaryInt64(5 > 88, 13, 0)
b := ternaryString(3 > 1, "correcto", "incorrecto")
@zeroidentidad
zeroidentidad / docker-compose.yml
Created October 28, 2019 23:08
hub.docker.com/r/bitnami/laravel
version: '2'
services:
mariadb:
image: 'bitnami/mariadb:10.1'
environment:
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=my_user
- MARIADB_DATABASE=my_database
- MARIADB_PASSWORD=my_password
@zeroidentidad
zeroidentidad / app.js
Created October 18, 2019 00:02
JS FrontEnd: uso de modulos y exportación de clases (ES6+)
import variableModulo, {MiClase} from "./modulo.js";
const texto = document.createElement("p");
texto.textContent = variableModulo;
contenedor.appendChild(texto);
const obj = {propx: 'holax', propy: 'holay'}
const usar = new MiClase(obj, 'otro valor');
usar.miFuncion();
@zeroidentidad
zeroidentidad / grub
Last active January 19, 2025 03:37
grub config Lubuntu 18.04 with AMD CPU and integrated GPU
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="default text amdgpu.noretry=0 amdgpu.dc=1 amdgpu.cik_support=1 amdgpu.si_support=1 amdgpu.dpm=-1 amdgpu.aspm=0 amdgpu.gpu_recovery=1 amdgpu.gfx9_support=1"