Skip to content

Instantly share code, notes, and snippets.

View pulketo's full-sized avatar

Pulketo pulketo

View GitHub Profile
@pulketo
pulketo / gist:898fc6245c95acce5504442996a592ca
Created February 28, 2023 22:07
du by date/hour and size
v1:
find . -type f -printf '%s %TY-%Tm-%Td-%TT\n' | cut -d ":" -f1 | sed 's/$/\n/g' | awk '{b[$2]+=$1} END{for (date in b) print date, b[date]}' | sort
v2:
find . -type f -printf '%TY-%Tm-%Td %TH-%TM %h\n' | sort | uniq -c | sort -n
@pulketo
pulketo / gist:855e62e156adf56b08f45c1c29709755
Created February 23, 2023 19:33
dmidecode en un esx esxi
comando: smbiosDump
ejemplo de salida:
~ # smbiosDump
Dumping live SMBIOS data!
BIOS Info: #0
Size: 0x00018
Vendor: "HP"
Version: "I31"
Date: "02/10/2014"
Start Address: 0xf0000
@pulketo
pulketo / gist:dea624a3ff51a0c30f91d6f89b8679f4
Last active February 3, 2023 00:10
dirty hack to diff compare two SQL dumps for changes
#these commands will modify sql structure for A.sql and B.sql, so make a backup first
sed -i 's/(/\n/g;s/,/\n/g' A.sql B.sql ; diff A.sql B.sql
@pulketo
pulketo / gist:b72d70f975a91d4e52caccf56ac7eca6
Created February 1, 2023 21:16
speed / bandwidth test desde terminal
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
@pulketo
pulketo / gist:efd192470bad23aebc54cf1569cb58eb
Last active December 9, 2022 13:48
ulimit.conf unlimited for testing
/etc/security/limits.conf
sudo bash -c "cat << EOF > /etc/security/limits.conf
* soft core unlimited
* hard core unlimited
* soft data unlimited
* hard data unlimited
* soft fsize unlimited
* hard fsize unlimited
* soft memlock unlimited
@pulketo
pulketo / WhatsApp_Business_Platform_On-Premises_API.txt
Created October 12, 2022 05:05
WhatsApp Business Platform On-Premises API
https://developers.facebook.com/docs/whatsapp/on-premises/overview
BSP: Business Solution Provider
WhatsApp Business Platform On-Premises API
Tokens
login------------->Server
bearer Token<________╱
Expiration:
after certain time
@pulketo
pulketo / gist:39119271604159ae8634d84e647e3d00
Created August 10, 2022 18:05
JSON de radio garden FM globe rotating
http://radio.garden/api/ara/content/places
@pulketo
pulketo / gist:27ad98b06c3f282e1c00c71cf0c5037a
Created June 30, 2022 22:42
Bajar cosas de google drive desde terminal bash
FILEID="ID"; wget "https://drive.google.com/uc?export=download&id=${FILEID}&confirm=yes"
@pulketo
pulketo / gist:45308242a35acf6dd960322072d4bdd1
Created April 7, 2022 15:12
debugear permisos de firewalls o permisos de red
brincar por otra máquina que si tiene salida
en la maquina que si tiene accesos:}
ncat -l $IP $PORT --sh-exec "ncat $REMOTEIP $REMOTEPORT"
@pulketo
pulketo / reqs.txt
Created April 6, 2022 16:40
reqs.txt
Se requiere hacer esto y lotro
esto y aquello
bajar y subir
que se programe solo
que se reprograme con el gusto del cliente