Skip to content

Instantly share code, notes, and snippets.

View criskell's full-sized avatar

criskell

View GitHub Profile
@criskell
criskell / init
Last active June 23, 2025 14:30
initramfs
#!/bin/sh
mount -t proc proc /proc
mount -t sysfs sysfs /sys
mount -t devtmpfs devtmpfs /dev
# we need to do the redirection only when we are the leader of the process group session.
# activating the tty starting at tty_open (https://github.com/torvalds/linux/blob/86731a2a651e58953fc949573895f2fa6d456841/drivers/tty/tty_io.c#L2169)
# because of the dup2 syscall will cause the tty_open_proc_set_tty function with
# the current process being the leader and passing [this check](https://github.com/torvalds/linux/blob/86731a2a651e58953fc949573895f2fa6d456841/drivers/tty/tty_jobctrl.c#L136).
CREATE TABLE demo (ID integer primary key, Name varchar(20), Hint text );
CREATE TABLE vendas (
    ID_Venda INTEGER primary key AUTOINCREMENT,
      Curso VARCHAR(100),
      Aluno VARCHAR(100),
      Estado VARCHAR(100),
      Valor DECIMAL(10.2)
);
@criskell
criskell / Ex073.py
Last active October 25, 2024 19:34
Exercício 73 - Curso em Vídeo
import time
tabela = ('Botafogo', 'Palmeiras', 'Fortaleza', 'Flamengo', 'São Paulo', 'Internacional', 'Bahia', 'Cruzeiro',
'Atlético-MG', 'Vasco', 'Fluminense', 'Criciúma', 'Grêmio', 'Bragantino', 'Juventude', 'Vitória',
'Corinthians', 'Athletico-PR', 'Cuiabá', 'Atlético-GO')
print('Welcome to the Brazilian championship table')
print(''' Options menu
To check the top 5 in the table, type { 1 }
To check the last 4 placed press { 2 }