Skip to content

Instantly share code, notes, and snippets.

View leanucci's full-sized avatar

Leandro Marcucci leanucci

  • CABA - Argentina
  • 02:55 (UTC -03:00)
  • X @leanucci
View GitHub Profile
@leanucci
leanucci / heterogram.rb
Created February 20, 2024 14:38
Rendezvous with Cassidoo challenge 19-02-2024
# frozen_string_literal: true
class HeterogramProductMaximizer
attr_accessor :words
def initialize(words)
@words = words
@product = 0
end
01 - Nue - (Stench / Scorch Build-Up / Weaken Ranged Weapons / Summon Amrita Spike Wind)
02 - Derrick the Executioner (+ Ryunoshin, If you're doing coop) - (Confusion / Poison Build-Up / Reduce Agility / Create Water Area)
03 - Honda Tadakatsu (+ Ii Naomasa, If you're doing coop) - (Stench / Reduce Ki Recovery / Stench / Create Yokai Realm)
04 - Onryoki (+ Sakata Kintoki, If you're doing coop) - (Torpor / Poison Build-Up / Reduce Agility / Summon Amrita Spike Fire)
05 - White Tiger (+ Marume Nagayoshi, If you're doing coop) - (Stench / Increase Enemy Attack / Reduce Agility / Create Yokai Realm)
pg_dump --no-acl --no-owner -h [host] -U username -T reports --data-only -v [db_name] > tmp/db_name.dump
psql db_name < tmp/dump_name.dump
function fish_prompt --description 'Write out the prompt'
if not set -q __fish_git_prompt_show_informative_status
set -g __fish_git_prompt_show_informative_status 1
end
if not set -q __fish_git_prompt_hide_untrackedfiles
set -g __fish_git_prompt_hide_untrackedfiles 1
end
if not set -q __fish_git_prompt_color_branch
set -g __fish_git_prompt_color_branch magenta --bold
# RubyGoal - Fútbol para Rubistas
#
# Este documento contiene varias implementaciones mínimas de un entrenador de RubyGoal.#
#
# Esta clase debe implementar, como mínimo, los métodos `name` y `formation(match)`
# Esta clase debe ser implementada dentro del módulo Rubygoal
module Rubygoal
class MyCoach < Coach
# Indica el nombre del equipo
@leanucci
leanucci / cert-req-howno
Created November 18, 2013 00:53
Como generar el CSR. Copia tomada de la cache de Google ya que el documento no siempre está disponible, aunque sigue vigente al 17/NOV/2013.
Básicamente, necesita usar el utilitario OpenSSL.
Si tiene acceso a un servidor Unix/Linux, seguramente, ya lo tiene instalado.
Si sólo tiene acceso a equipos Windows, puede bajar openSSL de:
http://www.slproweb.com/products/Win32OpenSSL.html
Los pasos a seguir son los siguientes:
- Genere su clave privada (private key) ejecutando desde la línea de comando:
@leanucci
leanucci / gist:3615059
Created September 4, 2012 00:02
migration
13155 20:59 ~/Workspace/Yeti-Media/Projects/TEDInsideOut (leanucci/users_management) ➔ rake db:migrate VERSION=20120827220828
rake db:migrate
== AddUserIdToPortraits: reverting ===========================================
-- remove_column("portraits", :user_id)
-> 0.0151s
== AddUserIdToPortraits: reverted (0.0155s) ==================================
== CreateIopAbouts: reverting ================================================
-- drop_table("iop_abouts")
-> 0.0014s
@leanucci
leanucci / pull.rebase.log
Created August 13, 2012 20:30
pull.rebase
17:28 ~ ➔ git config --global pull.rebase true
17:28 ~ ➔ cat ~/.gitconfig
... otras cosas
[pull]
rebase = true
5505 15:30 ~/Workspace/Projects/xs (mailman) ➔ cap production deploy
* executing `production'
triggering start callbacks for `deploy'
* executing `multistage:ensure'
* executing `deploy'
triggering before callbacks for `deploy'
* executing `deploy:ask_for_branch'
Branch name or tag/commit SHA1 to deploy (default: production)
mailman
* executing `deploy:update'
@leanucci
leanucci / gist:1624914
Created January 17, 2012 05:23
netstat -nr
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.200.1 UGSc 16 0 en1
default 10.255.254.0 UGScI 0 0 ppp0
10.255.254.0 192.168.1.122 UH 2 0 ppp0
127 127.0.0.1 UCS 0 0 lo0
127.0.0.1 127.0.0.1 UH 16 18141 lo0
169.254 link#5 UCS 0 0 en1