Skip to content

Instantly share code, notes, and snippets.

Deluan Quintão deluan

Block or report user

Report or block deluan

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
@deluan
deluan / alias.sh
Last active Jun 8, 2019
My ZSH/Bash custom functions
View alias.sh
alias vauth='vault login --method=github'
alias pstree='pstree -g 2'
alias l='ls -lah'
alias la='ls -lAh'
alias ll='ls -lh'
alias ls='ls -G'
alias lsa='ls -lah'
alias grep='grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn}'
alias ddc='docker-compose'
@deluan
deluan / crypt.go
Created Sep 9, 2016
Testing bcrypt in GoLang
View crypt.go
///usr/bin/env go run "$0" "$@"; exit;
package main
import (
"fmt"
"os"
"golang.org/x/crypto/bcrypt"
)
@deluan
deluan / mc.go
Created Sep 8, 2016
Test for multiconfig on Go 1.7
View mc.go
///usr/bin/env go run "$0" "$@"; exit;
package main
import "github.com/koding/multiconfig"
type Server struct {
Name string `required:"true"`
Port int `default:"6060"`
Enabled bool
@deluan
deluan / README.md
Last active Oct 6, 2016
README for Checkman Simulator
View README.md

Checkman Simulator

This plugin simulates Checkman functionality, allowing you to use all its plugins and configuring checks in external files. It downloads Checkman's plugins on demand, so you don't need to install Checkman itself.

Available check plugins: HTTP, GoCD, Concourse, Jenkins, Travis, Semaphore, Codeship, CircleCI, Airbrake, GitHub, Pivotal Tracker, TDDium and SnapCI.

To learn more about Checkman and its existing plugins, see:

@deluan
deluan / extract_itunes_artwork.sh
Created Mar 7, 2016
Script to transform .itc files into images (JPG or PNG)
View extract_itunes_artwork.sh
#!/bin/bash
# Script to transfort .itc files into images (JPG or PNG)
#
# .itc files are located in ~/Music/iTunes/Album Artwork
#
# This script uses (/!\ needs ) ImageMagick's convert, hexdump, printf and dd.
#
# This script might be a little slow, You might want to look at Simon Kennedy's work at http://www.sffjunkie.co.uk/python-itc.html
AlbumArtwork="${HOME}/Music/iTunes/Album Artwork"
@deluan
deluan / subsonic_upgrade.yml
Last active Feb 20, 2016
Upgrade Subsonic on Mac OS X
View subsonic_upgrade.yml
- hosts: all
gather_facts: no
vars:
- release_tag: "{{latest_release.stdout}}"
- repository: EugeneKay/subsonic
- war_name: subsonic-{{release_tag}}.war
- release_url: https://github.com/{{repository}}/releases/download/{{release_tag}}/{{war_name}}
- app_path: /Applications/Subsonic.app
- war_path: "{{app_path}}/Contents/Resources"
@deluan
deluan / bb-trigger.sh
Created Mar 8, 2015
Use this script for services you don't want BB to alert in red on the first failure. It will become yellow first, and then, after a configurable number of polls, it will go red. Useful with network tests over a noisy link (except when you're responsible for the link ;). Tested only with Linux. http://goo.gl/WZFwNZ
View bb-trigger.sh
#!/bin/sh
#
# $Id: bb-trigger.sh,v 1.2 2002/01/29 18:50:17 deluan Exp $
#
# by Deluan Cotts Quintao (bb@deluan.com.br)
#
# Use this script for services you don't want BB to alert in red on the first error.
# It will become yellow first, and then, after a configurable number of polls, it will
# go red. Useful with network tests over a noisy link (except when you're responsible
# for the link ;)
@deluan
deluan / simian-summary.rb
Last active Aug 29, 2015
This script processes the YML output of Simian (http://www.harukizaemon.com/simian/) and generates some useful summarized information
View simian-summary.rb
#!/usr/bin/env ruby
require 'yaml'
require 'pp'
if ARGV.count == 0
puts "Usage: simian-sum <simian-result.yml>"
puts
puts "Remember to remove the first 3 lines of the yml file"
exit
View robot.js
var Robot = function(robot) {
// var robot = ev.robot;
}
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.clone();
robot.rotateCannon(360);
robot.turn(360)
We couldn’t find that file to show.
You can’t perform that action at this time.