Skip to content

Instantly share code, notes, and snippets.

View fguisso's full-sized avatar
🌭
Hot dogs

Fernando Guisso fguisso

🌭
Hot dogs
View GitHub Profile
@fguisso
fguisso / console.log.js
Created January 13, 2017 01:56
Colors for your logs
const colors = {
Reset: "\x1b[0m",
Bright: "\x1b[1m",
Dim: "\x1b[2m",
Underscore: "\x1b[4m",
Blink: "\x1b[5m",
Reverse: "\x1b[7m",
Hidden: "\x1b[8m",
fg: {
Black: "\x1b[30m",
@fguisso
fguisso / teste.js
Last active January 29, 2017 01:16
this.log.writeln('\n→ INITIAL SETTINGS');
return this.prompt(questions)
.then((answers) => {
this.answers = answers; })
.bind(this);
FROM node:7.6.0
RUN mkdir -p /usr/src/app && \
apt-get update && apt-get install -y curl apt-transport-https && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update && apt-get install yarn && npm install -g gulp-cli
WORKDIR /usr/src/app
export default {
name: 'users-view',
data: () => ({
userList: [],
checkedIds: [],
allSelected: false,
}),
beforeMount() {
this.http.get('/users/list')
.then((res) => {
@fguisso
fguisso / bitcoin-core.md
Last active May 9, 2017 05:25
Criando um endereço multi assinado no bitcoin.

Criando o endereço

createmultisig M '["keyN"]' Onde M é o total de keys necessarias para assinar a tx e N é o numero total de keys. Usa-se o scriptPubKey, que você pode conseguir dando o comando validateaddress <address>, assim as partes não precisam da privkey, garantindo a privacidade de cada um.

ex:

createmultisig 2
'["034d43e1271139ec736f8f0ecb1777968e342b219e02c7888f547d9108f2733cfe",
  "0216b988bf22709a09030832d8e3d8f4fdfbb353a466696085bdadaccc6a668e3c",
@fguisso
fguisso / install.sh
Last active September 17, 2017 13:46 — forked from Gutem/install
Shell script to automate environment installs after a vanilla OSX install
#!/bin/bash
red='\033[0;31m'
green='\033[0;32m'
NC='\033[0m' # No Color
################################################################################
# XCode CLI
################################################################################
xcode-select --install
<template>
<div class="hello">
<img v-bind:src="logoPath">
<h1>{{ msg }}</h1>
<h2>Essential Links</h2>
<ul>
<li><a href="https://vuejs.org" target="_blank">Core Docs</a></li>
<li><a href="https://forum.vuejs.org" target="_blank">Forum</a></li>
<li><a href="https://gitter.im/vuejs/vue" target="_blank">Gitter Chat</a></li>
<li><a href="https://twitter.com/vuejs" target="_blank">Twitter</a></li>
@fguisso
fguisso / funny.md
Last active June 6, 2024 03:26
Funny initial commit messages

Funny initial commit messages

This is where it all begins...
Commit committed
Version control is awful
COMMIT ALL THE FILES!
The same thing we do every night, Pinky - try to take over the world!
Lock S-foils in attack position
This commit is a lie
I'll explain when you're older!
@fguisso
fguisso / Dockerfile
Created June 13, 2017 23:52
express-hello-world
FROM node:alpine
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . /usr/src/app/
RUN npm install
EXPOSE 8080
CMD [ "npm", "start" ]
@fguisso
fguisso / birobiro.zsh-theme
Created June 16, 2017 14:57
oh-my-zsh theme and libs
# ZSH Theme, bira custom, add node version by fernandoguisso
# Bira Preview: http://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
if [[ $UID -eq 0 ]]; then
local user_host='%{$terminfo[bold]$fg[red]%}%n@%m%{$reset_color%}'
local user_symbol='#'
else
local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'