Skip to content

Instantly share code, notes, and snippets.

Henrique Alves henriquea

  • Lisbon, Portugal
Block or report user

Report or block henriquea

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@henriquea
henriquea / example.sh
Last active Dec 18, 2018
ANDROID_HOME environment variable for Fish terminal
View example.sh
set --export ANDROID $HOME/Library/Android;
set --export ANDROID_HOME $ANDROID/sdk;
set -gx PATH $ANDROID_HOME/tools $PATH;
set -gx PATH $ANDROID_HOME/tools/bin $PATH;
set -gx PATH $ANDROID_HOME/platform-tools $PATH;
set -gx PATH $ANDROID_HOME/emulator $PATH;
set --export JAVA_HOME /Applications/Android\ Studio.app/Contents/jre/jdk/Contents/Home;
set -gx PATH $JAVA_HOME/bin $PATH
@henriquea
henriquea / vscode.settings.json
Last active May 2, 2018
Visual Code User Settings
View vscode.settings.json
{
"css.validate": false,
"docker.showExplorer": false,
"editor.tabSize": 2,
"editor.fontSize": 13,
"editor.fontFamily": "Fira Code, Menlo, Monaco, 'Courier New', monospace",
"editor.minimap.enabled": false,
"editor.folding": false,
View gist:4716dd08709c01ec0f3f96f86113b2b2
Verifying my Blockstack ID is secured with the address 1EA1osRQS35qDfaDzLsHvZQcq3fy8YTRNN https://explorer.blockstack.org/address/1EA1osRQS35qDfaDzLsHvZQcq3fy8YTRNN
View keybase.md

Keybase proof

I hereby claim:

  • I am henriquea on github.
  • I am henriquea (https://keybase.io/henriquea) on keybase.
  • I have a public key ASAafE2LPrfw2LTk7GRI6FBi0dZ1vFLtj_gBc3Iymfb5Jgo

To claim this, I am signing this object:

View gist:bee3cea3595cb321221dcbd9b31f8f4d
Verifying my Blockstack ID is secured with the address 1EA1osRQS35qDfaDzLsHvZQcq3fy8YTRNN https://explorer.blockstack.org/address/1EA1osRQS35qDfaDzLsHvZQcq3fy8YTRNN
View gist.js
var md = fs.readFileSync('./index.md', 'utf8');
var remark = require('remark');
var html = require('remark-html');
var yamlConfig = require('remark-yaml-config');
var processor = remark().use(yamlConfig).use(html);
var doc = processor.process([
'---',
'remark:',
' commonmark: true',
'---',
View hello-world.js
import React from 'react';
function HelloWorld () {
return (
<h1>Hello World!</h1>
);
}
export default HelloWorld;
View server.js
var webpack = require('webpack');
var webpackDevMiddleware = require('webpack-dev-middleware');
var webpackHotMiddleware = require('webpack-hot-middleware');
var config = require('./webpack.config');
var app = new require('express')();
var port = 5000;
var compiler = webpack(config);
app.use(webpackDevMiddleware(compiler, { noInfo: true, publicPath: config.output.publicPath }));
@henriquea
henriquea / fish-default-on-osx.sh
Last active Oct 13, 2019
Setting Fish as your default shell on Mac OS X
View fish-default-on-osx.sh
$ brew install fish
$ echo "/usr/local/bin/fish" | sudo tee -a /etc/shells
$ chsh -s `which fish`
@henriquea
henriquea / gist:6383643
Created Aug 29, 2013
Install PostgreSQL on OSX with Homebrew
View gist:6383643
$ brew install postgresql
$ initdb /usr/local/var/postgres -E utf8
$ createuser -P --superuser postgres
$ createuser -U postgres root -P
$ createdb -U postgres -E utf8 -O root <database> -T template0
$ ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
$ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
You can’t perform that action at this time.