Skip to content

Instantly share code, notes, and snippets.

View santostiago's full-sized avatar

Tiago Santos santostiago

View GitHub Profile
@santostiago
santostiago / remove_long_folders.sh
Last active December 14, 2020 16:22
Find folders that have less than 5 characters in their name
#!/bin/bash
find . -type d -regextype posix-extended -regex '^\.\/.{0,6}$'
@santostiago
santostiago / benchmark.rb
Created December 8, 2020 10:08
Comparison of Ruby performance of dynamic method definitions
require 'benchmark'
# Class declared: 1x
# Dynamic method definition: NO
#
# Result: 0.19 seconds
puts Benchmark.measure{
class Test
attr_accessor *%i(a b c d e f g)

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: