Skip to content

Instantly share code, notes, and snippets.

View threeaccents's full-sized avatar

Rodrigo Lessa threeaccents

View GitHub Profile
@ricardopadua
ricardopadua / install_asdf.sh
Last active December 20, 2023 14:17
Installing Elixir and Erlang With ASDF ( Fedora )
#!/bin/bash
## Ricardo Pádua
## install asdf in fedora
## install curl and git
dnf install curl git
## install asdf
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.9.0
@pinksynth
pinksynth / get_file_type.ex
Last active April 28, 2022 03:19
Get missing file type from magic numbers in Elixir
defmodule Mix.Tasks.GetFileType do
use Mix.Task
def run([filename]) do
File.read!(filename)
|> check_magic_bytes()
|> IO.puts()
end
# Here's some basic file signatures, but you can easily add others as needed.
@RossJHagan
RossJHagan / GUIDE.md
Last active June 15, 2017 16:51
Aurelia CLI based project (0.13.6) - Add e2e tests [Typescript based]

Setting up Aurelia CLI based project with e2e tests

Disclaimer: This is a basic implementation, and much of the configuration files have been lifted from the aurelia skeleton.

##Install dependencies

npm i -D del gulp-protractor

Establish configurations

@stupidbodo
stupidbodo / aes_encryption.go
Last active January 3, 2024 10:29
AES Encryption Example in Golang
// Playbook - http://play.golang.org/p/3wFl4lacjX
package main
import (
"bytes"
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"encoding/base64"