Feeds:
Posts
Comments

Yes, sometimes you just forget it and probably you already read this on the web, but let’s just be sure about that.

Steps:

  1. in grub screen press ‘e’ to edit
  2. in kernel line, at the and append: init=/bin/bash (to see how your cmdline looks like, just type: cat /proc/cmline)
  3. Done that, wait for it.
  4. mount -o remount,rw /
  5. passwd root
  6. touch ./autorelabel  (For fedora, because SELinux)
  7. and enjoy it.

If you are an unhappy user of Chromium-browser or chrome you know exactly what I’m talking about. I stopped to count how many time I had to reboot my whole system because these two guys. Yeah, I’m guilty in part. Since I often have 30 tabs in my browser. But, shouldn’t these guys handle with memory resource in a more clever way? Recently I read that the new way Chrome is deal with it is to kill tabs that reach a limit amount of memory, but it’s not a happy end at all.
In my system, Linux Mint (currently), I just lost my counts the times I had to reboot all the system because The Memory Eater.
For now , seems it hasn’t any solution, but I realized these guys have a chrome://memory-redirect tool [1], that show you how many memory are in using. Take a look at the s-shot.
chromium

While any real solution comes, how about to keep an eye in who is the greedy memory guy and close it🙂.

Resources:

[1] https://www.chromium.org/developers/memory-usage-backgrounder

 

Talvez você se enrole na hora de definir suas permissões. Talvez você nem entenda o que raios são aqueles números que você coloca para ter permissões.

Vamos então dá uma rápida olhada em como elas funcionam:


# Há exatamente três colunas nas quais você pode restringir permissões:
# Owner - Group - All Users
rwx rwx rwx = 111 111 111
rw- rw- rw- = 110 110 110
rwx --- --- = 111 000 000

# cada flag setada corresponde a um bit setado para 1 ou zero caso contrário.
# se lermos cada coluna separada em binário teremos
rwx = 111 in binary = 7
rw- = 110 in binary = 6
r-x = 101 in binary = 5
r-- = 100 in binary = 4

# Assim:
- 777 = 111 111 111 = rwx rwx rwx
- 644 = 110 100 100 = rw- r-- r--
- 755 = 111 101 101 = rwx r-x r-x
# e assim por diante...
# Simples, não é?!
# Você pode ler mais sobre o assunto nas referências [1] :)!

Referências:
[1] http://linuxcommand.org/lts0070.php

TODO list command

I often have to track my tasks in a day, week, month, and so on. The way I was doing this was to type in file what I should to do. But I always want to use a more simple and practical way. Because that I just implemented this ‘td’ command to solve my problems in tracking tasks🙂. Hope it’s also good for you.

Just take a look in my github for get it: https://github.com/kirotawa/td

What is it?

– td is an acronym for TODO that aims to provide a way using just
command line for keep a track of activities/todo things.

Usage:

Usage: td [-h] [-a] [-d DESC] [-S {started,finished,canceled}] [-s START]
[-e END] [-D] [-i ID] [-p {normal,medium,high}] [--debug] [-v]
[--getd] [--up-status] [--up-end] [--up-priority]
[--list | -ls | -le | -lp | -lS]

optional arguments:
-h, --help show this help message and exit
-a, --add adds a todo into list
-d DESC, --desc DESC sets a description
-S {started,finished,canceled}, --status {started,finished,canceled}
sets todo status
-s START, --start START sets a start date
-e END, --end END sets a end date=d/m/Y format
-D, --delete delete a give todo by id
-i ID, --id ID pass a id to other options
-p {normal,medium,high}, --priority {normal,medium,high}
sets a priority
--debug provides debug info
-v, --version provies current version
--getd get full description of todo by id
--up-status update status given a id
--up-end update end date given a id
--up-priority update priority given a id
--list list everything todo by id
-ls, --lstart list by start date
-le, --lend list by end date
-lp, --lprio list by priority
-lS, --lstatus list by status

These days I had a couple of interviews in a company. First the technical one, a problem that I had to solve in three days. After a chatting with persons from the company; another chatting with tech guys; an attempt to do pair programming; and a last one talking with a leader.

As you see, many steps to get an offer. Well, they did offer me anything. It’s OK. But while it’s okay what bother is that feedback from companies today aren’t clear. Seems all the companies have an agreement where they say the same bullshit all the time.

“Sorry, you seems to be great…blah blah blah…but…”

You never get a real feedback and that is annoying. I wonder how someone can improve their skills, the way he/she does interviews, be better, etc. If  no one never says what is/are your negative points.

Let’s just imagine that you go to the doctor and there he says “Well, you have a terrible disease, let’s start some treatment” and these are the only things he says. How the heck you will understand the issues you have? How the heck you can deal with this in a properly way? That’s is the same when these companies says their empty meaning feedback email. They say something that mean nothing.

It would be really cool if companies start to act in a more honest way. “hey, you were good in tech, nice solution, etc…but we just didn’t like how you interact in our pair programming. Maybe you can improve this for next interviews in your career” or just ” hey you were good in tech one, but we just didn’t like how you look like in the webcam, sorry, look for a new hairstylist” – You know, last is a joke, but I really would like to have a honest and REAL feedback sometimes, instead this bot bullshit they send.

EDITED: I was just thinking for a moment, what if human race had not seen its mistakes and try to do better? Well we, for sure, would not have evolved. Said that, Companies, be a Darwinist one giving feedback don’t be a creationist one. I don’t want to wait for a god to say me what I’m doing wrong. import this in Python and take this line for you “Explicit is better than implicit.”. If you want people get better and not only use their six sense to guess what was the issue – of course, when it’s not obvious – please, start to act doing a straight feedback! –  Thank you!

AES is the most important algorithm used today for crypto. You may not see it, but it is everywhere.

For those that need to understand in a quick overview AES this image is for you🙂

aesflow

References:

[1] EXPANDkey image

[2] AES shiftrows

[3] AES Subbytes

[4] AES MixColumns 

GDB, aquela ferramenta mágica dos tempos da graduação. Onde os bugs apareciam exatamente no dia de entregar os trabalhos. Só ele ajudava a salvar nas horas de desespero.

Descreveria o GDB da seguinte forma:

GDB, ferramenta mágica vinda do reino dos Gnus. Usada para debugar além do alcance. Isso mesmo, a espada do Lion foi forjada em GDB. Capaz de te mostrar todos os detalhes do seu programa/executável. O Neo? Ele enxergava tudo em GDB.

Então, você achava que o GDB e o Valgrind eram tudo na vida, até se deperar com o –tui. O tui ou Text User Interface, é, como o nome já diz, uma ferramente que auxília na visualização em texto do seu código em modo debug via gdb. Com ele você pode acompanhar no seu código step by step e até mesmo visualizar multiplas janelas, uma com o código em C e outra em ASM com direito a endereçamento de memória, opcode e tudo que você tem direito.

Como usar? Simples: gdb -tui

gdbtuiCom o comando acima, apenas duas janelas irão aparecer. A do código em C e o shell do gdb. Para abrir a janela que mostra o código em asm: <C-R>+x+2. Para navegar entre janelas <C-R>+x+o (onde <C-R> lê-se Control).

Quer saber mais sobre gdb.