Skip to content

Instantly share code, notes, and snippets.

😈

Julián Duque julianduque

😈
Block or report user

Report or block julianduque

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
@julianduque
julianduque / resize.sh
Created Jun 14, 2012
Bash script for resize and set quality to jpg images (works with sips on Mac OSX)
View resize.sh
#!/bin/bash
for file in *.jpg
do
sips --resampleHeightWidthMax 1357 --setProperty formatOptions 80 $file
done;
@julianduque
julianduque / baal.theme.bash
Created Mar 31, 2019
Baal Bash-It theme by Julián Duque
View baal.theme.bash
#!/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
View cloud-modified.zsh-theme
# 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 / meetups.js
Created Jan 23, 2019
GraphQL for the impatient
View meetups.js
'use strict'
const meetups = [
{
name: 'MedellinJS',
description: 'JavaScript User Group',
members: [
{
name: 'Maria F.'
},
@julianduque
julianduque / 00-README.md
Last active Aug 19, 2018
Primus + MQTT + Arduino == Internet of Things!
View 00-README.md

Primus + MQTT + Arduino == Internet of Things!

LCD Shield

Server

  1. Install dependencies
$ npm install
@julianduque
julianduque / dns.md
Last active May 29, 2018
DNS Command Line Configuration on macOS
View dns.md

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]*\]'
View error.md
...
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

View HelloWorld.sol
pragma solidity ^0.4.11;
contract HelloWorld {
uint public balance;
address public owner;
function HelloWorld() public {
owner = msg.sender;
balance = 0;
}
View rinkeby
0x3172558F6110b37e40335E9D25f7EDAf7c505F4E
View child.js
const minimist = require('minimist')
const args = minimist(process.argv)
switch (args.name) {
case 'slave':
console.log('Doing things in the slave')
startSlave()
break
default:
You can’t perform that action at this time.