Skip to content

Instantly share code, notes, and snippets.

View claudiosikeda's full-sized avatar
🏠
Working from home

Claudio Ikeda claudiosikeda

🏠
Working from home
View GitHub Profile
# Ruby 3.1+
users = [
{ name: "Yukihiro Matsumoto", age: 57 },
{ name: "Kabosu the Shiba Inu", age: 16 },
{ name: "Thiago Massa", age: 33 }
]
def fetch_age_from_person(person, hash)
hash => [*, {name: ^person, age: age}, *]
@181192
181192 / increase_root_fedora.md
Last active May 6, 2024 07:07
How to increase the root partition size on Fedora

How to increase the root partition size on Fedora

Boot up with an Fedora Live USB stick.

  1. Run vgs to check if there's any space:
$ sudo vgs
  VG     #PV #LV #SN Attr   VSize    VFree
  fedora   1   3   0 wz--n- <237.28g    0 
@santthosh
santthosh / apache rewrite rule
Created November 14, 2014 08:38
Apache config for SPA's
# To be inside the /Directory
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: