Skip to content

Instantly share code, notes, and snippets.

View miguelzetina's full-sized avatar
🏠
Working from home

Miguel Angel Zetina Zetina miguelzetina

🏠
Working from home
View GitHub Profile
import time
print "..."
time.sleep(1)
print "..."
print "..."
print "..."
print "..."
time.sleep(1)
print "..."
120 4879 200
120 4880 206
120 4878 209
120 4880 212
120 4877 213
@miguelzetina
miguelzetina / Web pages to download books
Last active January 12, 2020 19:50
Web pages to download free Technology eBooks :)
http://www.foxebook.net/
http://www.freetechbooks.com/
https://kupdf.com/
http://ebook-dl.com/
https://freeebookdownload.blogspot.mx/
https://smtebooks.com/
https://www.pdfdrive.com/
https://scanlibs.com/
https://www.ebookee.ws/
@ibraheem4
ibraheem4 / postgres-brew.md
Last active September 27, 2025 02:49
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
server {
location ~* (serviceworker\.js)$ {
add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
expires off;
proxy_no_cache 1;
}
}
@gilyes
gilyes / Backup, restore postgres in docker container
Last active October 4, 2025 11:26
Backup/restore postgres in docker container
Backup:
docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
Restore:
cat your_dump.sql | docker exec -i your-db-container psql -Upostgres
@gornostal
gornostal / Unicode.md
Created November 22, 2015 10:15
Python 2.7. Unicode Errors Simply Explained

Python 2.7. Unicode Errors Simply Explained

I know I'm late with this article for about 5 years or so, but people are still using Python 2.x, so this subject is relevant I think.

Some facts first:

  • Unicode is an international encoding standard for use with different languages and scripts
  • In python-2.x, there are two types that deal with text.
    1. str is an 8-bit string.
  1. unicode is for strings of unicode code points.
# zsh
EMOJI=(💩 🐦 🚀 🐞 🎨 🍕 🐭 👽 ☕️ 🔬 💀 🐷 🐼 🐶 🐸 🐧 🐳 🍔 🍣 🍻 🔮 💰 💎 💾 💜 🍪 🌞 🌍 🐌 🐓 🍄 )
function random_emoji {
echo -n "$EMOJI[$RANDOM%$#EMOJI+1]"
}
PROMPT="$(random_emoji) "
RPROMPT='%c'
@bzerangue
bzerangue / _verify-repair-permissions-disk.md
Last active January 25, 2026 03:51
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active January 28, 2026 15:05
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname