Will require a credit card, make sure to create only AWS resources belonging to the free tier not to inccur in any charges.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Encrypt files, not caching password | |
gpg -c --no-symkey-cache file.txt | |
# decrypt files, not caching password | |
gpg --no-symkey-cache file.txt.gpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am ferrao on github. | |
* I am ruiferrao (https://keybase.io/ruiferrao) on keybase. | |
* I have a public key whose fingerprint is 6AB8 59DC 20D4 1D18 FCF8 C6DE 42E7 636B CF77 1773 | |
To claim this, I am signing this object: |
- Create
UNLOGGED
table. This reduces the amount of data written to persistent storage by up to 2x. - Set
WITH (autovacuum_enabled=false)
on the table. This saves CPU time and IO bandwidth on useless vacuuming of the table (since we neverDELETE
orUPDATE
the table). - Insert rows with
COPY FROM STDIN
. This is the fastest possible approach to insert rows into table. - Minimize the number of indexes in the table, since they slow down inserts. Usually an index
on
time timestamp with time zone
is enough. - Add
synchronous_commit = off
topostgresql.conf
. - Use table inheritance for fast removal of old data:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#verify-key-pair-fingerprints | |
openssl rsa -in ~/.ssh/privatekey -pubout -outform DER | openssl md5 -c | |
openssl pkcs8 -in path_to_private_key -inform PEM -outform DER -topk8 -nocrypt | openssl sha1 -c |
Documenting all my install steps
- https://www.reddit.com/r/linux/comments/37uoya/easiest_way_to_move_complete_linux_install_from/
- https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X230
- http://www.thinkwiki.org/wiki/Category:X230
- https://bbs.archlinux.org/viewtopic.php?pid=1393759#p1393759
- https://www.digitalocean.com/community/tutorials/understanding-systemd-units-and-unit-files
- https://raw.githubusercontent.com/windelicato/dotfiles/master/why_bspwm.gif
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title_page: | |
logo_image: image:logo.png[] | |
page: | |
layout: portrait | |
margin: [3.2cm, 2cm, 2.2cm, 2cm] | |
size: A4 | |
base: | |
font_color: #333333 | |
font_family: Helvetica | |
font_size: 12 |
NewerOlder