Skip to content

Instantly share code, notes, and snippets.

View IanoNjuguna's full-sized avatar
:electron:

Iano Njuguna IanoNjuguna

:electron:
View GitHub Profile
@akuya-ekorot
akuya-ekorot / compilation_process.md
Created December 22, 2022 19:34
Compilation Process for C programs with GCC

Compilation Process for C programs with GCC

  • C is a programming language.
  • Programs written in C end with a .c extension.
  • .c files are human-readable, written in plain text using alphanumeric and math symbols
  • This makes C is a high-level language.
  • Computer hardware, on the other hand, communicate using low-level languages.
    • Low-level languages can either be Machine language or Assembly language.
    • Machine language is in binary, ones and zeros.
    • Assembly language is written with a set of letters and symbols.
@ivanleoncz
ivanleoncz / .env
Last active January 19, 2023 05:58
Postgresql connector, using psycpg2 and environment variables (.env) loaded via python-dotenv.
# Example data, used for Docke Container environment.
DATABASE_USERNAME='postgres'
DATABASE_PASSWORD='postgres'
DATABASE_IP='172.17.0.2'
DATABASE_PORT='5432'
DATABASE_NAME='postgres'
@Athesto
Athesto / .vimrc
Last active February 29, 2024 02:31
.vimrc
set encoding=utf-8 "encoding file for unicodes and accents
scriptencoding utf-8 "Requirements of Vint and it must be after encoding
"Vim's configuration file
"RAW's url: https://git.io/fjppd
"RAW's url2: gustavomejia.tech/.vimrc
"download1: curl -sLo ~/.vimrc https://git.io/fjppd
"reload file :so ~/.vimrc or :so %
"To find more info user :help <option> ex :help [ nocompatible ]
"To exit help use <C-w> q
@paolocarrasco
paolocarrasco / README.md
Last active June 28, 2024 23:01
How to understand the `gpg failed to sign the data` problem in git

Problem

You have installed GPG, then tried to commit and suddenly you see this error message after it:

error: gpg failed to sign the data
fatal: failed to write commit object

Debug

@christiangenco
christiangenco / download website assets
Created January 20, 2014 23:23
Use wget to download a website's assets, including images, css, javascript, and html. From http://www.linuxjournal.com/content/downloading-entire-web-site-wget
$ wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--domains website.org \
--no-parent \
www.website.org/tutorials/html/