- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"/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). |