Skip to content

Instantly share code, notes, and snippets.

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

Felipe Custódio felipecustodio

🏠
Working from home
View GitHub Profile
@felipecustodio
felipecustodio / strings.c
Last active December 12, 2016 06:52
String functions for C college assignments
#include <stdio.h>
#include <stdlib.h>
/* read string from stdin */
char* readString(char end) {
char* string = NULL;
char value = '@';
int counter = 0;
while (value != end) {
@felipecustodio
felipecustodio / arch-linux-install
Created September 25, 2016 01:34 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
@felipecustodio
felipecustodio / enable1.py
Created August 27, 2016 07:27
Get enable1.txt dictionary
import urllib2
# Create dictionary
words = []
for line in urllib2.urlopen("https://raw.githubusercontent.com/dolph/dictionary/master/enable1.txt"):
words.append(line)
@felipecustodio
felipecustodio / markdown.md
Created August 25, 2016 04:41 — forked from jonschlinkert/markdown-cheatsheet.md
A better markdown cheatsheet. I used Bootstrap's Base CSS documentation as a reference.

Typography

Headings

Headings from h1 through h6 are constructed with a # for each level:

# h1 Heading
## h2 Heading
### h3 Heading
@felipecustodio
felipecustodio / README.md
Created August 21, 2016 06:49 — forked from zenorocha/README.md
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage