Skip to content

Instantly share code, notes, and snippets.

View pazthor's full-sized avatar
🎯
Focusing "el dominio"

Julio Cesar pazthor

🎯
Focusing "el dominio"
View GitHub Profile
@pazthor
pazthor / EasyBrokerChallenge.php
Created May 30, 2023 04:46
Extracto de clases del challenge de Easy Broker escrito en PHP
<?php
namespace App\Services;
use GuzzleHttp\Exception\GuzzleException;
class GetCustomer
{
private $token;
@pazthor
pazthor / CreateRepository.md
Created May 17, 2023 23:42
Subir repositorio local a repo creado por primera vez

#…or create a new repository on the command line

echo "# test-lol" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:pazthor/test-lol.git
git push -u origin main
@pazthor
pazthor / set_keyboard.sh
Last active March 24, 2023 19:05
habilita la opción de usar acentos y la letra ñ en distribución de teclado 'us'
#!/usr/bin/env bash
##? supuestos:
##? Use Linux, systemd, tengas permisos de super usuario
##? source: https://wiki.archlinux.org/title/Xorg/Keyboard_configuration#Using_X_configuration_files
localectl status
localectl --no-convert set-x11-keymap us "" altgr-intl ctrl:swapcaps
@pazthor
pazthor / tmux-cheatsheet.markdown
Created August 6, 2022 04:10 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@pazthor
pazthor / comandos_utiles.md
Last active March 13, 2021 22:54
lista de comando git

Lista comando

Devuelve los commits del branch en el que estas parado comparado contra rama master

git rebase -i HEAD~$(git log master..| grep commit | wc -l)

import sys
from time import sleep
import random
import cursor
class Renderer:
def __init__(self, width, height):
//fsx
// sumar una lista de elementos elevados al qubo
let square n= n*n
let alCubo n = (square n) * n
alCubo (-3)
alCubo (abs -3)
let list = [1;2;3;4]
let list' = [-2 .. 2]
# Esta es una lista de problemas que hice en hacker rank como prueba tecnica para una empresa.
# Arrays: Left Rotation
# a es uin arreglo, d es el número de veces a rotar.
def rotLeft(a, d):
return a[d:] + a[:d]
# New Year Chaos
# queue: una lista de elementos
@pazthor
pazthor / 80-keychron.rules
Created November 23, 2019 20:26 — forked from ercoppa/80-keychron.rules
K2 Keychron Ubuntu 18.04
SUBSYSTEMS=="input", ATTRS{name}=="Keychron K2", RUN+="/bin/sh -c 'echo 0 > /sys/module/hid_apple/parameters/fnmode'"
export const FetchPost = async (url = "", data = {}, sessionToken = "") => {
const errorFetchCode = 2;
const errorServerCode = 1;
const notErros = 0;
const POST = "POST";
const errorFetch = "TypeError: Failed to fetch";
const rawResponse = await fetch(url, {
method: POST,
headers: {