Skip to content

Instantly share code, notes, and snippets.

View OctavioBR's full-sized avatar
⌨️
Working from home

Octávio Richter OctavioBR

⌨️
Working from home
View GitHub Profile
@OctavioBR
OctavioBR / SimHub HUDs.md
Last active June 17, 2021 01:05
Instructions about how to install SimHub TV and HaloHUD

Requirements

1. Install fonts

  • open 1-Fonts folder
  • select all files
  • right click
  • "Install". install-fonts
@OctavioBR
OctavioBR / global-boilerplate.js
Created March 19, 2020 18:16
That vanilla js snippet which avoids polluting global scope exporting a single namespace
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.YourNameSpace = factory());
}(this, function () {
'use strict';
function method() {}
var YourNameSpace = {
method: method

Arch Install for Macbook Pro

Macbook Pro Retina 15-inch, Late 2013
Model Identifier: MacBookPro11,2

The MacBook Pro 11,x consists of models with Retina display shipped by Apple In Late 2013 and Mid 2014.
Following ArchWiki guide.

Steps for OS installation

Grab a cup of coffe and get ready, because life is not always easy 🙈

Assets

TAR cheat sheet

TAR = Tape Archive but it is essentially the native linux format of creating an archive. Gzip = Compressed. Together a Gzipped Tar is the linux equivalent of a Zip.

To create a gzipped TAR archive of all files in the current directory do this:

tar -czvf archive.tgz *

to tar-gz the xfiles folder into xarchive.tgz do:

@OctavioBR
OctavioBR / ZSH
Last active May 22, 2019 20:09
zsh config
This gist tracks my zsh configurations
Profiles for both OSX & Linux
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
if [[ $# -ne 1 ]]; then
echo 'This script must receive a tar ball as single argument'
exit 1
fi
EXTRACTEDFOLDER="$(dirname $1)/gitkraken"

Keybase proof

I hereby claim:

  • I am octaviobr on github.
  • I am octavio (https://keybase.io/octavio) on keybase.
  • I have a public key ASBfBzYywJpiUgHM3g39Ex3WnlsD5gZEGHv2R1k4bVyt-go

To claim this, I am signing this object:

@OctavioBR
OctavioBR / .gitconfig
Last active August 23, 2017 00:56
Dev tooling & configs
[core]
excludesfile = /Users/octavio/.gitignore_global
pager = diff-so-fancy | less --tabs=4 -RFX
editor = /usr/bin/vim
[alias]
st = status -sb
branches = branch -a
remotes = remote -v
co = checkout
lg = log --color --graph
bind "F3" "+show_runetop" // Hold to see top rune.
bind "F4" "+show_runebottom" // Hold to see bot rune.
bind "F5" "+showboard"
bind "F10" "showgraph" //Toggle Net_Graph
//chat_join "[your channel]" // Join chat channel
// ~~~~~~~~~~~~ SETTINGS ~~~~~~~~~~~~
cl_forcepreload "1"
sv_forcepreload "1"
regExp = /collectionPrefix_*/;
db.getCollectionNames().filter(function(name){
return name.match(regExp)
}).forEach(function(name){
db.getCollection(name).drop()
});