Skip to content

Instantly share code, notes, and snippets.


Bruno Antunes sardaukar

View GitHub Profile
sardaukar / .envrc
Created Jun 26, 2018
.envrc multi-env
View .envrc
[[ -f .envrc.context ]] && context=$(< .envrc.context)
watch_file ".envrc.context"
if [[ -n "$context" ]]; then
sardaukar / Udongein.html
Created Apr 21, 2018 — forked from jaysn/Udongein.html
Reisen Udongein html table
View Udongein.html
<body bgcolor=000000>
<table boder=0 cellpadding=0 cellspacing=0>
<tr height=3>
<td width=3 bgcolor=888888 rowspan=105></td>
<td bgcolor=888888 colspan=54></td>
<td width=3 bgcolor=888888 rowspan=105></td>
View RevDate.js
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var RevDate = function RevDate(dateparse) {
_classCallCheck(this, RevDate);
var moment = new Date();
if (typeof dateparse !== 'undefined') {
moment = new Date(dateparse);
sardaukar / fizz_buzz.exs
Created May 4, 2017 — forked from gonzofish/fizz_buzz.exs
Solving FizzBuzz without if in Elixir
View fizz_buzz.exs
fizz_word = fn
(0, 0, _) -> "FizzBuzz"
(0, _, _) -> "Fizz"
(_, 0, _) -> "Buzz"
(_, _, third) -> third
fizz_buzz = fn n -> fizz_word.(rem(n, 3), rem(n, 5), n) end
sardaukar /
Created Apr 10, 2017
flac2mp3 (fish shell)
for file in *.flac
ffmpeg -i $file -ab 320k -map_metadata 0 -id3v2_version 3 (basename $file .flac).mp3
View config
# i3 config file (v4)
# Please see for a complete reference!
set $mod Mod1
set $ws1 "⠂work"
set $ws2 "⠃mail/IM"
set $ws3 "⠇misc"
sardaukar /
Last active Jul 1, 2016
better fish for `node_modules` issue by hijacking cd (don't judge me)
# Path to your oh-my-fish.
set fish_path $HOME/.oh-my-fish
# Theme
#set fish_theme robbyrussell
set fish_theme bobthefish
#set fish_theme coffeeandcode
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-fish/plugins/*)
# Custom plugins may be added to ~/.oh-my-fish/custom/plugins/
sardaukar /
Created Mar 18, 2016 — forked from justinwoo/
Using RxJS instead of Flux with React to organize data flow

Reposted from Qiita

For almost a year now, I've been using this "flux" architecture to organize my React applications and to work on other people's projects, and its popularity has grown quite a lot, to the point where it shows up on job listings for React and a lot of people get confused about what it is.

Why I'm tired of using and teaching flux

There are a billion explainations on the internet, so I'll skip explaining the parts. Instead, let's cut to the chase -- the main parts I hate about flux are the Dispatcher and the Store's own updating mechanism.

If you use a setup similar to the examples in facebook/flux, and you use flux.Dispatcher, you probably have this kind of flow:


I have spent quite a bit of time figuring out automounts of NFS shares in OS X...

Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:

/etc/auto_master (see last line):

# Automounter master map
+auto_master		# Use directory service

Keybase proof

I hereby claim:

  • I am sardaukar on github.
  • I am sardaukar ( on keybase.
  • I have a public key whose fingerprint is 7AB6 C47E 0B86 7ECA 0229 F856 A8C4 1D3D A028 94E4

To claim this, I am signing this object:

You can’t perform that action at this time.