Skip to content

Instantly share code, notes, and snippets.

View julianduque's full-sized avatar
😈
Heroku DevRel

Julián Duque julianduque

😈
Heroku DevRel
View GitHub Profile
pragma solidity ^0.4.11;
contract HelloWorld {
uint public balance;
address public owner;
function HelloWorld() public {
owner = msg.sender;
balance = 0;
}
...
up to date in 1.85s
[!] 3 vulnerabilities found [2672 packages audited]
    Severity: 2 low | 1 high
    Run `npm audit` for more detail

Ok, let's run npm audit

@julianduque
julianduque / dns.md
Last active May 29, 2018 13:24
DNS Command Line Configuration on macOS

DNS Command Line Configuration on macOS

The following commands work on macOS High Sierra, not tested in previous versions

Get DNS Resolvers

$ scutil --dns | grep 'nameserver\[[0-9]*\]'
@julianduque
julianduque / meetups.js
Created January 23, 2019 21:29
GraphQL for the impatient
'use strict'
const meetups = [
{
name: 'MedellinJS',
description: 'JavaScript User Group',
members: [
{
name: 'Maria F.'
},
# Modified version of Cloud theme by Julián Duque
ZSH_THEME_CLOUD_PREFIX="⬢"
PROMPT='%{$fg_bold[cyan]%}$ZSH_THEME_CLOUD_PREFIX %{$fg_bold[green]%}%p %{$fg[green]%}%c %{$fg_bold[cyan]%}$(git_prompt_info)%{$fg_bold[blue]%} % ($(node -v)) %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}[%{$fg[cyan]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}] %{$fg[yellow]%}⚡%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}]"
@julianduque
julianduque / baal.theme.bash
Created March 31, 2019 13:10
Baal Bash-It theme by Julián Duque
#!/usr/bin/env bash
#
SCM_NONE_CHAR=''
SCM_THEME_PROMPT_DIRTY="⚡"
SCM_THEME_PROMPT_CLEAN=""
SCM_THEME_PROMPT_PREFIX="${cyan}[${green}"
SCM_THEME_PROMPT_SUFFIX="${cyan}] "
SCM_GIT_SHOW_MINIMAL_INFO=true