Skip to content

Instantly share code, notes, and snippets.

View maykonchagas's full-sized avatar
💭
I may be slow to respond.

Maykon Chagas maykonchagas

💭
I may be slow to respond.
View GitHub Profile
# Pull base image
FROM python:3
# Set environment varibles
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set work directory
RUN mkdir /backend-challenge
COPY . /backend-challenge/
@maykonchagas
maykonchagas / arch-linux-install
Last active February 15, 2022 19:58 — 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 brazilian portuguese keymap
// This is a "stub" file. It's a little start on your solution.
// It's not a complete solution though; you have to write some code.
// Package twofer should have a package comment that summarizes what it's about.
// https://golang.org/doc/effective_go.html#commentary
package twofer
import "fmt"
// ShareWith should have a comment documenting it.
'use strict';
const number = Math.trunc(Math.random() * 20) + 1;
// Math.trunc(Math.random() * 21)
//document.querySelector('.message').textContent = 'Hello World!';
//document.querySelector('.score').textContent = 42;
document.querySelector('.number').textContent = number;