Skip to content

Instantly share code, notes, and snippets.

View jaimeguzman's full-sized avatar

Jaime Guzman jaimeguzman

View GitHub Profile
@jaimeguzman
jaimeguzman / fastapi-apis-rules
Last active February 24, 2025 16:25
FastAPI-Rules-monorepo
---
description: Reglas para fast api y carpeta apis
globs: *.py
---
Eres un experto en Python, FastAPI y desarrollo de APIs escalables.
Reglas del monorepo:
- Siempre responderas en español latino
- Toda las apis deben estar en la carpeta `apis/`
@jaimeguzman
jaimeguzman / git_create_orphan.sh
Created August 16, 2023 20:05 — forked from seanbuscay/git_create_orphan.sh
Create an orphan branch in a repo.
cd repository
git checkout --orphan orphan_name
git rm -rf .
rm '.gitignore'
echo "#Title of Readme" > README.md
git add README.md
git commit -a -m "Initial Commit"
git push origin orphan_name
@jaimeguzman
jaimeguzman / gist:03da0a381413c86a28255bd94cf206d5
Created May 29, 2019 19:35
Commands to restart touchbar mac osx
sudo pkill TouchBarServer
pkill "Touch Bar agent"
killall ControlStrip
@jaimeguzman
jaimeguzman / companyActivityId.txt
Created April 1, 2018 16:38
Public company Activity iD from indeed
<select name="companyActivityId" id="companyActivityId" class="form-control validate[required] input_warning" placeholder="Este campo es obligatorio">
<option value="">Seleccione</option>
<option value="26">Administración Pública</option>
<option value="1">Aeronaves / Astilleros</option>
<option value="75">Afore</option>
<option value="59">Agencia de Aduanas</option>
<option value="2">Agrícola / Ganadera</option>
<option value="76">Agroindustria</option>
<option value="3">Agropecuaria </option>
<option value="4">Agua / Obras Sanitarias</option>
@jaimeguzman
jaimeguzman / predawn.txt
Last active April 1, 2018 16:37
predawn sbt3
Package Control Messages
========================
Predawn
-------
::::::: ::::::: ::::::: ::::::: :::::: ::: ::: ::: ::::: :::
::: ::: ::: ::: ::: ::: ::: ::: ::: ::: ::: ::: ::::::: :::
@jaimeguzman
jaimeguzman / cool ldif output with date
Created March 28, 2018 02:33
cool ldif output with date
# ldapsearch -x -H ldaps://ldap.tumfatig.net -D "cn=admin,dc=tumfatig,dc=net" -W -b "dc=tumfatig,dc=net" -LLL > ldapd-"`date +%Y%m%d`".ldif
@jaimeguzman
jaimeguzman / gist:c06229f3998bd2cb5895a95147d7476d
Created April 25, 2017 02:21
gitconfig for windows github client
# Path: C:\Users\Administrator\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\mingw32\etc
[user]
name = Jaime Guzmán
email =
[color]
ui = auto
status = auto
@jaimeguzman
jaimeguzman / gist:ddd869948e6375526411677db129499e
Created January 8, 2017 21:37
bash gist imprime un árbol de directorios y archivos
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' \
-e 's/^/ /' -e 's/-/|/'
# source
# https://systembash.com/one-line-linux-command-to-print-out-directory-tree-listing/
@jaimeguzman
jaimeguzman / gist20170108.sh
Last active January 8, 2017 21:35
bash path full recursive
ls -R /path | awk '
/:$/&&f{s=$0;f=0}
/:$/&&!f{sub(/:$/,"");s=$0;f=1;next}
NF&&f{ print s"/"$0 }'
#source
#http://stackoverflow.com/questions/1767384/ls-command-how-can-i-get-a-recursive-full-path-listing-one-line-per-file