Skip to content

Instantly share code, notes, and snippets.

View henvic's full-sized avatar

Henrique Vicente henvic

View GitHub Profile
@henvic
henvic / .zshrc
Last active August 21, 2021 17:42
my ~/.zshrc
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="steeef"
# Example aliases
@henvic
henvic / Migration.md
Last active May 14, 2024 21:40
Migrating to a new Mac

Here are the steps I took for migrating from a early-2013 MacBook Pro Retina 15-inch to a late-2013 one.

  1. Disconnected from the Internet (at least it will simplify
  2. Updated my TimeMachine (TM) backup ("Back Up Now" on the status bar)
  3. Disconnected my TM hard drive and connected it to the new Mac
  4. Turned off the TM backup and Backblaze from the old machine
  5. Connected the TM backup disk to the new Mac
  6. Selected the TM restore process on the install process, but it never showed up, so I restarted it with the 'option' key down and selected the TM code, entered its password and continued with the installer from there
  7. Waited about 3 hours till the data transfer (about 200GB from a stock external drive) was done
  8. Logged in my account

Keybase proof

I hereby claim:

  • I am henvic on github.
  • I am henvic (https://keybase.io/henvic) on keybase.
  • I have a public key whose fingerprint is 655A D2F2 D6B0 5751 AA22 4042 D0F4 DFBD 257C 1575

To claim this, I am signing this object:

/*
* Darwin has a low limit for file descriptors (256 per process) by default.
*
* Increase it for this process to avoid an EMFILE error when opening lots of
* files for releasing packages, compressing, etc.
*
* This is a temporary fix while node >= 0.12 isn't out as it is already fixed
* properly in the core.
*
* It uses the posix @ ~1.0.3 library found on the npm registry
@henvic
henvic / .gitconfig
Last active December 21, 2015 19:07
Git configs
[user]
name = Henrique Vicente
email = [email protected]
[mergetool]
keepBackup = true
[core]
autocrlf = input
excludesfile = ~/.global_gitignore
editor = ~/Applications/Sublime\\ Text.app/Contents/SharedSupport/bin/subl -n -w
abbrev = 40
@henvic
henvic / Preferences.sublime-settings
Last active August 29, 2015 14:02
Preferences.sublime-settings
{
"color_scheme": "Packages/Dracula Color Scheme/Dracula.tmTheme",
"copy_with_empty_selection": false,
"show_full_path": true,
"file_exclude_patterns":
[
"*-coverage.js",
"*-debug.js",
"*-min.js",
"*.a",
public class T2Q1 {
Arquivo io;
int[] coins = new int[] {1, 5, 10, 25, 50};
public void printChange(int change, int[] amounts) {
int amountCoins = 0;
int length = amounts.length;
int pos = length - 1;
int left = change;
int[] used = new int[5];
@henvic
henvic / SeleniumGrid.md
Created July 22, 2014 03:32
Plan to implement a Selenium grid for testing AlloyUI

AlloyUI Selenium Grid Config

Selenium grid configuration for the functional testing of AlloyUI.

Running all the tests on all the environment takes some time. On average it takes 1min to run all the tests on Chrome on a last-generation MacBook Pro. Running on all the browsers we plan to support should take about 1 hour.

Dependencies

<ul class="posts-thumbnail-view results-thumbnail clearfix">
<li>
<a href="/henvic/1340">
<div class="img-place">
<img src="https://d8o390tnhj670.cloudfront.net//unsafe/400x300/73f391c8253d4c969aedb68c928b663c.jpg" alt="picture">
</div>
<p class="post-listing">
<em>Volvo</em> 460 5.7
@henvic
henvic / DNS.markdown
Last active August 29, 2015 14:15
Wireshark labs
$ nslookup sony.jp
Server:		192.168.0.1
Address:	192.168.0.1#53

Non-authoritative answer:
Name:	sony.jp
Address: 72.246.56.107
Name:	sony.jp