Skip to content

Instantly share code, notes, and snippets.

View onlurking's full-sized avatar
:shipit:
ship it

Diogo Felix onlurking

:shipit:
ship it
View GitHub Profile
@onlurking
onlurking / Ruby and Rails Study Roadmap.md
Created February 25, 2019 23:58
Ruby and Rails Study Roadmap
@onlurking
onlurking / programming-as-theory-building.md
Last active April 19, 2024 22:31
Programming as Theory Building - Peter Naur

Programming as Theory Building

Peter Naur

Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct

@onlurking
onlurking / arch.md
Last active March 7, 2024 16:52
Arch Linux chroot on Termux

Arch Linux

chroot on Termux

Let's download the Arch ARM image with the text-browser w3m and install proot:

apt install w3m proot
w3m http://archlinuxarm.org/os/ArchLinuxARM-utilite-latest.tar.gz
@onlurking
onlurking / terminal-setup.md
Last active February 19, 2024 18:01
Configs for zsh, oh-my-zsh, zsh-autosuggestions, zsh-syntax-highlighting and FZF

Setup

Terminal

Instal oh-my-zsh with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
@onlurking
onlurking / fix.js
Last active January 11, 2024 19:04
const isValidSongContent = (req, res, next) => {
const rules = [
{
name: "songTitle",
validation: (value) => value.trim().length > 0,
error: "Title content must be at least one character long.",
},
{
name: "songArtist",
validation: (value) => value.trim().length > 0,
@onlurking
onlurking / five-orders-of-ignorance.md
Created July 23, 2020 22:03
The Five Orders of Ignorance - Phillip G. Armour

The Five Orders of Ignorance

By Phillip G. Armour
Communications of the ACM, October 2000, Vol. 43 No. 10, Pages 17-20
10.1145/352183.352194

In my first column (Aug. 2000, p. 19), I argued that software is not a product, but rather a medium for the storage of knowledge. In fact, it is the fifth such medium that has existed since the beginning of time. The other knowledge storage media being, in historical order: DNA, brains, hardware, and books. The reason software has become the storage medium of choice is that knowledge in software has been made active. It has escaped the confinement and volatility of knowledge in brains; it avoids the passivity of knowledge in books; it has the flexibility and speed of change missing from knowledge in DNA or hardware.

If software is not a product, then what is the product of our efforts to produce software? It is the knowledge contained in the software. It's rather easy to produce software. It's much more difficult to produce software that works, because we ha

@onlurking
onlurking / flexbox-emmet.md
Last active December 22, 2023 21:35
Flexbox Emmet Expansions

Flexbox Emmet Expansions

display

expansion: d:f, df:
display: flex;

flex-direction

expansion: fxd:r, fxdr:

@onlurking
onlurking / aiml.md
Created April 28, 2017 04:01
AIML 2.0 Working Draft

AIML 2.0 Working Draft

Revision 1.0.2.22
March 9, 2014
Richard S. Wallace
ALICE A.I. Foundation
Contact: info@alicebot.org

@onlurking
onlurking / dell-vostro-5490-sound-fix.md
Last active March 18, 2023 02:07
Dell Vostro 5490 Sound and Microphone Fix (Manjaro/Arch Linux)

Vostro 5490 Sound and Microphone Fix (Manjaro/Arch Linux)

Instal sof-firmware as described in Arch Linux Wiki:

sudo pacman -S sof-firmware

Configure PulseAudio to load Alsa modules with the correct device and channel settings, by adding these two lines to /etc/pulse/default.pa: