Skip to content

Instantly share code, notes, and snippets.

View ernestoalejo's full-sized avatar

Ernesto Alejo ernestoalejo

View GitHub Profile
@tomhicks
tomhicks / plink-plonk.js
Last active May 15, 2025 13:25
Listen to your web pages
@sorahn
sorahn / Laws of Computer Programming.md
Last active September 15, 2023 17:54
COMPUTER© 1980 ART 101 Limited, Atlanta Georgia - Kenneth Grooms

laws of computer programming

  • any given program, when running, is obsolete.
  • if a program is useless, it will have to be documented.
  • if a program is useful, it will have to be changed.
  • any program will expand to fill all available memory.
  • the value of a program is proportional to the weight of its output.
  • program complexity grows until it exceeds the capability of the programmer to maintain it.
  • make it possible for programmers to write in english and you will find that programmers cannot write in english.

rules of pratt

# swith to sudo
sudo -i
# create swap
touch /2GiB.swap
chattr +C /2GiB.swap
fallocate -l 2048m /2GiB.swap
chmod 600 /2GiB.swap
mkswap /2GiB.swap
@ernestoalejo
ernestoalejo / deploy.sh
Last active December 19, 2015 15:59
FTP deploy file for cb
#!/bin/bash
if [ "$1" == "" ]; then
echo "first arg should be the user name"
exit 1
fi
USER=$1
DATE="deploy-"`date +%s`
HOST="ftp.latala.altiplaconsulting.com"
"/home/ernesto/bin/Sublime Text 2/sublime_text" -n $1 > /dev/null 2>&1 &
# Don't forget to use sublime_text.desktop for the link with Alacarte (for the icon).