Skip to content

Instantly share code, notes, and snippets.

View dev-math's full-sized avatar

Matheus Rocha dev-math

  • São Paulo, Brasil.
  • 00:54 (UTC -03:00)
View GitHub Profile
Server = http://mirror.ufscar.br/archlinux/$repo/os/$arch
Server = http://archlinux.c3sl.ufpr.br/$repo/os/$arch
Server = https://edgeuno-bog2.mm.fcix.net/archlinux/$repo/os/$arch
Server = https://arch.jsc.mx/$repo/os/$arch
Server = https://mirror.anquan.cl/archlinux/$repo/os/$arch
Server = http://edgeuno-bog2.mm.fcix.net/archlinux/$repo/os/$arch
Server = http://mirrors.bjg.at/arch/$repo/os/$arch
Server = http://mirror.quantum5.ca/archlinux/$repo/os/$arch
Server = http://mirror.anquan.cl/archlinux/$repo/os/$arch
Server = http://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch
#!/bin/env bash
# Update package list
sudo apt update
# Install git
sudo apt install git-all
# Install emacs
sudo apt install emacs
/* example root https://github.com/kevin-powell */
/* :root { */
/* --clr-accent-500: hsl(12, 60%, 45%); */
/* --clr-accent-400: hsl(12, 88%, 59%); */
/* --clr-accent-300: hsl(12, 88%, 75%); */
/* --clr-accent-100: hsl(13, 100%, 96%); */
/**/
/* --clr-primary-400: hsl(228, 39%, 23%); */
/**/
/* --clr-neutral-900: hsl(232, 12%, 13%); */
@dev-math
dev-math / p3.c
Last active December 14, 2022 01:18
// conta o numero de nos de uma arvore que tem chaves maiores que a chave que
// esta em um no P
int contarMaiores(NO *raiz, NO *p) {
if (!raiz) {
return 0;
}
if (raiz->chave > p->chave) {
return 1 + contarMaiores(raiz->esq, p) + contarMaiores(raiz->dir, p);
}
@dev-math
dev-math / install.sh
Created December 20, 2021 14:02
Arch Linux Install Guide (txt)
# Set the console keyboard layout. For example:
loadkeys br-abnt2
# Available layouts can be listed with:
ls /usr/share/kbd/keymaps/**/*.map.gz
# Connect to the internet
# Ensure your network interface is listed and enabled, for example with ip-link:
ip link
# For wireless and WWAN, make sure the card is not blocked with rfkill.
[
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.4.3"