refactor: moved to hugo

This commit is contained in:
Felipe M 2024-06-16 20:39:53 +02:00
parent 4c6912edd0
commit e77e5583c2
Signed by: fmartingr
GPG key ID: CCFBC5637D4000A8
604 changed files with 1675 additions and 2279 deletions

View file

@ -0,0 +1,62 @@
+++
title = "Amazon EC2: No space left on device"
date = 2015-05-04
+++
So a funny thing happened today at out pre-production environment. I was
performing our pre-big-PR deployment when a beautiful error was shown in my
terminal:
``` text
cannot create X: No space left on device
```
What?! How could that be possible. I know that our environment don't have a
lot of bytes for us to play with but having the storage already full with our
database and other services outside this machine just wasn't possible. And I
was right.
``` text
fmartingr@pre-production:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 59G 37G 21G 65% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 2.0G 12K 2.0G 1% /dev
tmpfs 396M 400K 395M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 0 2.0G 0% /run/shm
none 100M 0 100M 0% /run/user
```
What?! Now I sure don't understand a thing. I was laughing hysterically when
my brain just started working as I remembered an old friend: the
[inode](http://www.wikiwand.com/en/Inode).
``` text
fmartingr@pre-production:~$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/xvda1 3932160 3932160 0 100% /
none 505855 2 505853 1% /sys/fs/cgroup
udev 504558 403 504155 1% /dev
tmpfs 505855 332 505523 1% /run
none 505855 1 505854 1% /run/lock
none 505855 1 505854 1% /run/shm
none 505855 4 505851 1% /run/user
```
F**k you. Our deploys are made using "isolated" builds. That is, we reinstall
pip/bower requirements **for every build.** So each build take about ~50k
inodes, and we keep some in case some rollback is needed, but of course,
keeping two months old builds wasn't needed at all, so I made a script that
just deletes builds older than two weeks and our poor thing was happy again.
To search which folder of your server is eating the inode limit, you can run
this command:
``` text
find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -nr
```
This will show the path name and the inode count, keep going inside dirs to
get some detailed input, once found, just delete the files that are causing
havok.

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View file

@ -0,0 +1,16 @@
+++
title = "Manga recommendation: Dice - The cube that changes everything"
date = 2015-05-07
+++
![Dice](cover.jpg)
### Summary
Dongtae is rock bottom in everything: Looks, grades, life, everything. But all
that might change. If you could change your life by playing a game, would you?
**Type: **Manhwa
**Chapters**: 93+ (ongoing)
**Genre**: Action, Drama, Fantasy, Psychological, Romance, School Life, Shounen, Slice Of Life, Supernatural, Webtoons
**Story/Art**: Yun Hyun Suk

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

View file

@ -0,0 +1,18 @@
+++
title = "Manga recommendation: Kamisama no Iutoori Ni"
date = 2015-05-14
+++
![Dice](88875.jpg)
### Summary
Starts at the same time as the prequel but it follows the survival story of
new characters, the ones who didn't go to school at the first day, who face
different challenges than those in the prequel.
**Prequel: **[Kamisama no Iutoori](http://fmartingr.com/blog/2013/01/20/manga-recommendation-kamisama-no-iutoori-fujimura-akeji/)
**Chapters**: 107 (ongoing)
**Genre**: Action, Horror, Shounen, Supernatural
**Story**: Muneyuki Kaneshiro
**Art**: Akeji Fujimura

Binary file not shown.

After

Width:  |  Height:  |  Size: 739 KiB

View file

@ -0,0 +1,86 @@
+++
title = "PiWeek VIII"
date = 2015-07-18
+++
> While writing this post all the content was deleted because of a hardware
problem and sadly this is less that I wrote originally. :(
This week have been awesome. After two years I finally went back to the
Personal Innovation Week for a second time, and as motivated as it were, I'm
planning to repeat at the end of the year. For those who don't know what a
ΠWEEK is, [its site](http://piweek.tumblr.com/) explains it very well:_ ΠWEEK
/paɪ wiːk/ is an original idea by Kaleidos and it consists in allowing
employees from participant technology companies to leave their ongoing work in
standby and dedicate an entire week to personal projects. The plan is to enjoy
a ΠWEEK every six months, particularly in December and July, and allow
employees to play and innovate_.
Putting it simple: you can either present you own project for people to hop in
or you can join anothers team project and create something, play with new
technologies and of course, learn new stuff. This time the teams and projects
were incredible, I meet up with the Kaleidos team again after a long time (too
long!), played some Winjammers (and got beat every single time), but of
course, learn a few new things as you do every time you play around.
## Our team
![](piweek-viii-team.jpg)
From left to right, top to bottom:
* Ramiro Sanchez ([@rsanchezbalo](https://twitter.com/rsanchezbalo)): Project leader
* Juan Francisco Alcantara (no-twitter man): Front-end
* Andres Moya ([@amoyafoss](https://twitter.com/amoyafoss)): Back-end
* _Masles Roy_ ([@maslesroy](https://twitter.com/maslesroy)): Illustration
* Felipe Martin ([@fmartingr](https://twitter.com/fmartingr)): Back-end
* Antonio de la Torre ([@adelatorrefoss](https://twitter.com/adelatorrefoss)): Front-end
## Our project
![](guild-empire_9xA43PS.png)
Our project, designed by Ramiro and some other friends is a really complex
game in which you take control of a guild and it's guild members playing
against other player's guilds.
Each turn, a player send every guild member to do some actions (line wood-
cutting, praying, breaking a leg to another guild member, etc) and that action
is dice-rolled witch success/failure results. Each member have it's own stats
and adquired conditions (buffs/debuffs) and so on. The MVP idea is to adquire
reputation and the guild who have the most reputation in turn 20 wins, but
there's a 30 page document with a lot of non-developed stuff for the game.
It's was really fun to make stuff different than my daily job routine, using
libraries (or just plain python types) than django. There's a world out there
and even if it was little things you end up always learning something new.
## Honorable mentions
Even if my team end up winning this ΠWEEK, there was projects that also show
how much can you achieve in just five days with a smaill team, my personal two
favourites were:
* **Zombie time!!**, a multiplayer turn-based-and-real-time zombie survival game. This was expected since I love zombie games. They managed to get an almost fully playable game in just five days, be sure to check it out because it seemed really fun.
* **UXBox**, an interactive wireflaming tool created because there aren't any real open source options out there.
But of course, there was a lot of projects and people working there, be sure
to check it out in the [official piweek blog](http://piweek.tumblr.com/) or
[in the piweek github group](https://github.com/piweek).
## Conclusion
![](piweek-viii-presentations.jpg)
The ΠWEEK is an awesome event and more companies should start leting their
people use a percentage of the time into personal projects, learning new stuff
and improving their knowledge. Or you can just join the ΠWEEK two weeks a year
so awesome people start making awesome stuff.
Really, if you are a developer and can join this event, do it, and if you are
their boss, **let them do so!**
_Post pictures by
[@bameda](https://twitter.com/bameda/status/621329367780753408),
[@yamila_moreno](https://twitter.com/yamila_moreno) and
[@ilopmar](https://twitter.com/ilopmar/status/622002398341545984)_

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

View file

@ -0,0 +1,23 @@
+++
title = "Manga recommendation: One-punch man"
date = 2015-07-22
+++
![Dice](onepunchman_manga_cover.png)
### Summary
In this new action-comedy, everything about a young man named Saitama screams
"AVERAGE," from his lifeless expression, to his bald head, to his unimpressive
physique. However, this average-looking fellow doesn't have your average
problem... He's actually a superhero that's looking for tough opponents! The
problem is, every time he finds a promising candidate he beats the snot out of
them in one punch. Can Saitama finally find an evil villain strong enough to
challenge him? Follow Saitama through his hilarious romps as he searches for
new bad guys to challenge!
**Chapters**: 46 (ongoing)
**Genre**: Action, Comedy, Parody, Sci-Fi, Super Power, Supernatural, Seinen
**Story**: Yusuke Murata
**Art**: ONE

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

View file

@ -0,0 +1,28 @@
+++
title = "Emacs: Day zero"
date = 2015-07-23
+++
They tricked me.
I was confortably on my Atom editor when I had to open this ugly thing.
![](emacs-original.png)
I'm trying to make the change. Also, to make things easier I switched my
layout to US since all my servers have that keyboard layout but... my muscle
memory is really good, so I still miss a lot.
After a basic configuration yesterday, I thought that the best way to achieve
this was to change completely from one to another and that's what I've done,
work the entire day with this. At first I was slowed down a bit because I had
to configure some keybinding I was used to and install the basic addons I use
the most (and setup them emacs style), but after a short period I was _mostly_
used to the harm of my little finger. It still hurts.
It's a long way to go and this is only day zero but I will keep writing posts
every one or two weeks with my improvements as a newbie guide to emacs.
Also, my UI now looks _more or less_ like this:
![](emacs.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View file

@ -0,0 +1,19 @@
+++
title = "Manga recommendation: Eden no ori"
date = 2015-07-29
+++
![Dice](cage_of_eden_volume_1_cover.jpg)
### Summary
Akira and his classmates are travelling on a plane when it crashes onto an
island inhabited by species thought to have been extinct. The situation
becomes increasingly desperate as some of Akira's classmates are eaten alive,
while some kill others in desperation. Now Akira and a few other survivors are
trying to survive what seems to be a horrible nightmare.
**Chapters**: 185 (finished)
**Genre**: Action, Adventure, Comedy, Drama, Ecchi, Horror, Mystery, Psychological, Romance, Shounen, Tragedy
**Story**: Yamada Yoshinobu
**Art**: Yamada Yoshinobu

View file

@ -0,0 +1,61 @@
+++
title = "Tmux basics"
date = 2015-08-04
+++
![](tmux.png)
Discovered it not a long time ago (and now replaced with the experimental
version of iterm2 [because of goodies](https://iterm2.com/features.html)),
tmux deserves a lot of attention because it have lots of potential.
TMUX stands for Terminal Multiplexer. _It lets you switch easily between
several programs in one terminal, detach them (they keep running in the
background) and reattach them to a different terminal. And do a lot more._
Yeah, they sell themselves well.
For the novices, it lets you have panels (split terminals) and windows just
with some keybinds, detaching from them (so they keep running) and with the
possibility of storing configurations for certain tasks, in which you need to
open a running server and editor and some watcher at the same time, just with
a command.
For example, if you are like in the top screenshot, pressing `CTRL`+`b` `%`
`CTRL`+`b` `"` changes the layout to this:
![](tmux-horver.png)
And those numbers with a tilde at the bottom? The open windows. You can open
more pressing `CTRL`+`b` `c`, like this:
![](tmux-window.png)
This are the two basic things you will use everyday. Of course, there are
[more stuff you can do](http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-
current/man1/tmux.1?query=tmux&sec=1), but for the basics I will list the more
frequent keybinds here to start using it right now.
| Meta key | `CTRL`+`b` |
| ------------------------------------------------------------ | ----------------- |
| Split pane horizontal | `Meta`+`"` |
| Split pane vertical | `Meta`+`%` |
| Swap pane | `Meta`+`o` |
| Kill pane | `Meta`+`x` |
| Toggle focus on current pane | `Meta`+`z` |
| Show pane numbers | `Meta`+`q` |
| Press a the number of the pane you want to focus when shown. |
| Break pane into window | `Meta`+`+` |
| Restore window to pane | `Meta`+`-` |
| Change pane layout | `Meta`+`spacebar` |
| Create new window | `Meta`+`c` |
| Switch to window #x | `Meta`+`<number>` |
| Kill window | `Meta`+`&` |
| Next window | `Meta`+`n` |
| Previous window | `Meta`+`p` |
| List windows | `Meta`+`w` |
| Rename window | `Meta`+`,` |
| Find window | `Meta`+`f` |
- **Homepage: **[tmux](https://tmux.github.io)
- **My tmux.conf:** [Github](https://github.com/fmartingr/dotfiles/blob/master/home/.tmux.conf)
- **Cheatsheet by [MohamedAlaa](https://github.com/MohamedAlaa)**: [Tmux cheatsheet gist](https://gist.github.com/MohamedAlaa/2961058)

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -0,0 +1,20 @@
+++
title = "Manga recommendation: The Gamer"
date = 2015-08-13
+++
![](the-gamer.png)
### Summary
Han Jee-Han, a normal high school student, suddenly develops a special power
where his entire world is shifted into a game-like setting. He can see the
power levels of people, look at the stats of a seemingly normal item, get
abilities, and even level up! Follow Han Jee-Han as he discovers how to use
this power, and maybe even where it came from.
**Type: **Manhwa
**Chapters**: 90+ (ongoing)
**Genre**: Action, Adventure, Comedy, School Life, Shounen, Supernatural
**Story**: Sung San-Young
**Art**: Sang-Ah

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB