Skip to content

Instantly share code, notes, and snippets.

View dlight's full-sized avatar

Elias Gabriel Amaral da Silva dlight

View GitHub Profile
module Hello exposing (..)
import Html exposing (Html, program, li, ul, div, text, button, input)
import Html.Events exposing (onClick, onInput)
import Html.Events.Extra exposing (onEnter)
import RemoteData exposing (WebData)
import Http
type alias Model =
module Logic where
import Data.List (transpose, intercalate)
{-
Neste código, a tabela verdade
p0 p1 ... pn
0 0 ... 0 | X0 |
#!/bin/bash
. $(dirname $(realpath $0))/lib.sh
[[ $# -lt 1 ]] && echo ERRO: yt-step chamado sem parâmetro && exit 1
file=$(realpath $1)
lock=$controld/lock/$(basename $file)
mkdir -p $lock
CC = gcc
CFLAGS = -std=c99 -pedantic -Wall -lm
TARGETS = teste nanicolina
all:: $(TARGETS)
$(TARGETS): %: %.c
$(CC) $(CFLAGS) -o $@ $<
module Complete where
import Data.List (transpose, intercalate)
{-
Neste código, a tabela verdade
p0 p1 ... pn
0 0 ... 0 | X0 |
@dlight
dlight / README
Last active February 12, 2017 20:39
This folder was created to store external luks headers, without which
the encrypted disks CAN NOT BE OPENED.
Losing such headers means DATA ON ENCRYPTED DISKS WILL BE LOST. So
backup them in other places.
Also this stores some minor backup of metadata like the layout of
partition tables.
Also what commands I ran (if I remember) so that I can more easily
#!/bin/bash
cd $(dirname $(realpath $0))/parity
find \( -name data -o -name '*.vol*+*.par2' \) -prune -or -name '*.par2' -type f \
\( -exec par2 verify -qq {} \; -o -print \) | sed 's/\.par2$//; s/^/Bad file: /'
@dlight
dlight / ,
Created December 17, 2016 23:37
#!/bin/sh
#export DRI_PRIME=1
cmd=mpv
param='--msg-level=all=no,cplayer=info'
filter='/Playing/!d; s/^Playing: //'
order='%C@' # by default, order by ctime
blibli
return {
misc={ autumn="verylongseason" },
override_enabled=true,
presetdata={
data="SURVIVAL_TOGETHER",
desc="The multiplayer Don't Starve experience.",
location="forest",
overrides={ },
text="Together Forever"
},