Skip to content

Instantly share code, notes, and snippets.

View hauntedhost's full-sized avatar
💭
👻

Jules Omlor hauntedhost

💭
👻
View GitHub Profile

Keybase proof

I hereby claim:

  • I am seanomlor on github.
  • I am seanomlor (https://keybase.io/seanomlor) on keybase.
  • I have a public key whose fingerprint is 01D9 0B9B EA5A CD52 FCDD 36D6 2EB0 8ADD 5A5B 5A20

To claim this, I am signing this object:

# ~/.bash_profile
__GIT_PROMPT_DIR=/usr/local/opt/bash-git-prompt/share
GIT_PROMPT_THEME=Custom
source "${__GIT_PROMPT_DIR}/gitprompt.sh"
@hauntedhost
hauntedhost / mnemonic-wordlist.txt
Created November 22, 2017 03:40
mnemonic wordlist
Wordlist ver 0.732 - EXPECT INCOMPATIBLE CHANGES;
acrobat africa alaska albert albino album
alcohol alex alpha amadeus amanda amazon
america analog animal antenna antonio apollo
april aroma artist aspirin athlete atlas
banana bandit banjo bikini bingo bonus
camera canada carbon casino catalog cinema
citizen cobra comet compact complex context
credit critic crystal culture david delta
dialog diploma doctor domino dragon drama
@hauntedhost
hauntedhost / ruby-exercises-02.md
Created October 8, 2017 16:27
ruby-exercises-02.md

hello

Write a method hello that takes one argument and calls puts so that the output if called with, e.g., hello("Alli") would be Hello there Alli!

Player

Write a class Player that can be initialized with one argument name and returns a player instance with the keys name, health and role.

  • The name key should be assigned the given name argument.
  • The health key should be a random integer from 50 to 100.

1. vultr iso > add iso

2. upload 18.03 iso

https://d3g5gsiof5omrk.cloudfront.net/nixos/unstable/nixos-18.03pre116572.9824ca6975/nixos-minimal-18.03pre116572.9824ca6975-x86_64-linux.iso

3. deploy new server

defmodule BarberShop do
@name :barber_shop
@num_chairs 3
def open do
shop_pid = spawn(__MODULE__, :loop, [])
:global.register_name(@name, shop_pid)
Barber.register(shop_pid)
end
@hauntedhost
hauntedhost / ids_parser.exs
Last active December 30, 2022 00:36
Elixir mp3 id3 parser
defmodule Id3Parser do
@id3_tag_size 128
def parse(file_name) do
case File.read(file_name) do
{:ok, mp3} ->
# mp3 size minus 128 bytes where id3 tag is located
mp3_byte_size = byte_size(mp3) - @id3_tag_size