Paulo Amaral

1.1K posts

Paulo Amaral banner
Paulo Amaral

Paulo Amaral

@paulo_dev

Using twitter to store/share tech bookmarks and notes.

Katılım Ekim 2009
392 Takip Edilen216 Takipçiler
Paulo Amaral
Paulo Amaral@paulo_dev·
I just donated to the Internet Archive, the world's largest digital library and home of the Wayback Machine. Join me and chip in what you can! archive.org/donate?iax=ctx…
English
0
0
0
27
Paulo Amaral
Paulo Amaral@paulo_dev·
# trim eventual trailing slash "/" in bash FOLDER=${FOLDER%/}
English
0
0
2
44
Paulo Amaral
Paulo Amaral@paulo_dev·
Monitor changed files into a log file, with day rotation, using fswatch (MacOS): fswatch --exclude=.git/* --exclude=.settings --event-flags --event-flag-separator=\; -t -f '%Y-%m-%d %H:%M:%S' . >> ./.file_changes_$(date +"%Y-%m-%d" | sed s/-//g).log commandlinefu.com/commands/view/…
English
0
0
1
35
Paulo Amaral
Paulo Amaral@paulo_dev·
=~ ---> operador "igual-que-nem" para compara regex usando bash. Exemplo: if [[ "$date" =~ ^[0-9]{8}$ ]]; then ...
Español
0
0
0
57
Paulo Amaral
Paulo Amaral@paulo_dev·
stayinalive.vbs Set wShell = CreateObject("WScript.Shell") Do While 1 = 1 wShell.SendKeys "{SCROLLLOCK}" WScript.Sleep(1) wShell.SendKeys "{SCROLLLOCK}" WScript.Sleep(10 * 1000) Loop
English
0
0
0
0
Paulo Amaral
Paulo Amaral@paulo_dev·
Just converted a 56.5MB mp4 video down to 1.53MB (97% compression): ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4
English
0
0
1
0
Paulo Amaral
Paulo Amaral@paulo_dev·
I'll just leave this here FILE_PATH=$(readlink -m "$1") FOLDER=$(dirname -- "$FILE_PATH") FILE=$(basename -- "$FILE_PATH") FILENAME="${FILE%.*}" EXTENSION="" [[ $FILE =~ \. ]] && EXTENSION=".${FILE##*.}" TODAY=$(date +"%Y-%m-%d" | sed s/-//g) NOW=$(date +"%T" | sed s/://g)
English
0
0
0
0
Paulo Amaral
Paulo Amaral@paulo_dev·
Just learned about @PrintFriendly, a tool to convert pages into PDF while allowing to remove all the internet clutter like ads, icons, banners, etc. So handy printfriendly.com
English
0
0
0
0
Paulo Amaral
Paulo Amaral@paulo_dev·
@jeffrey_way All in the calendar. The first entry every day is "plan the day". Then I fill up the space in between meetings with tasks and, if needed, update as I go (it's a kind of living thing). In the end serves me as time log too.
English
0
0
0
0
Paulo Amaral
Paulo Amaral@paulo_dev·
Alguém empresta uma conta em um servidor SSH no Brasil? Preciso fazer um tunel de Socks5 pra assistir novela.
Português
0
0
0
0