Skip to content

Instantly share code, notes, and snippets.

View chubas's full-sized avatar

Rubén Medellín chubas

View GitHub Profile
@chubas
chubas / tag-exists.sh
Created February 15, 2017 01:19
Tag exists?
#! /usr/bin/env bash
# USAGE:
# Replace your dockerhub credentials on DOCKER_HUB_USERNAME and DOCKER_HUB_PASSWORD
# Invoke from the directory you want to check against
#
# e.g. [/home/skycatch/core]$ ../tools/tag-exists.sh
# > Tag exists: core/8d5b62
#
# Requires `jq` to be installed (brew install jq)

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@chubas
chubas / tmux-cheatsheet.markdown
Created November 30, 2015 16:46 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@chubas
chubas / cas-bot.md
Last active December 10, 2015 19:02
Cards Against Slack

GDLJS Monthly Challende #2 - Cards Against Slack

CAH

The task for this month is to create a simple Hubot script to play Cards Against Humanity on Slack. Yay productivity!

Rules

The rules for the challenge will be the minimum set of rules of the game (full rules), only using the house rule of public voting (God is Dead rule)

@chubas
chubas / wordblender.md
Last active February 27, 2019 19:06
Word Blender

GDLJS Monthly Challenge #1 - Word Blender

This is an adaptation for the RubyQuiz #108 Word Blender, lots of spoilers there so best to look after!

Word Blender

The task for this month is to build a game based on the popular game TextTwist (and many other variations there are). It can be built as sophisticaded as you want, ranging from a command line game to a full featured GUI game if you want.

Rules

@chubas
chubas / .gitignore
Last active August 31, 2015 19:40 — forked from kleber-swf/.gitignore
# =============== #
# Unity generated #
# =============== #
[Tt]emp/
[Oo]bj/
[Bb]uild
[Ll]ibrary/
sysinfo.txt
# ===================================== #

The following document attempts to define a legend for easy specification of APIs for components. Any suggestions to improve are welcome.

Class Members
   + class property
   - instance property
  ~> listened events (socket)
  +> listened events (class/module)
  -> listened events (instance)
  <~ dispatched events (socket)
# Configure colors, if available.
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
c_reset='\[\e[0m\]'
c_user='\[\e[0;32m\]'
c_path='\[\e[1;34m\]'
c_git_clean='\[\e[0;37m\]'
c_git_staged='\[\e[0;32m\]'
c_git_unstaged='\[\e[0;31m\]'
else
c_reset=
@chubas
chubas / Chubascasts.xml
Created May 22, 2013 16:10
Theme configuration file for Rubymine (4.0). Derived from Railscasts
<?xml version="1.0" encoding="UTF-8"?>
<scheme name="Chubascasts" version="1" parent_scheme="Default">
<option name="LINE_SPACING" value="0.85" />
<option name="EDITOR_FONT_SIZE" value="12" />
<option name="CONSOLE_FONT_NAME" value="Monaco" />
<option name="CONSOLE_LINE_SPACING" value="1.0" />
<option name="EDITOR_FONT_NAME" value="Consolas" />
<colors>
<option name="ANNOTATIONS_COLOR" value="3399" />
<option name="ANNOTATIONS_MERGED_COLOR" value="6666" />
@chubas
chubas / ruby_differences.rb
Created October 10, 2012 02:01
(Some) differences between ruby versions.
#!/bin/env ruby
# encoding: utf-8
# Differences between Ruby versions
code = case ARGV[0]
when "1"
puts "- Local block variables"