Skip to content

Instantly share code, notes, and snippets.

View thiagodebastos's full-sized avatar
🎯
Focusing

Thiago Lucio thiagodebastos

🎯
Focusing
  • lilacstudio
  • Sydney, Australia
  • 13:51 (UTC +10:00)
View GitHub Profile
@thiagodebastos
thiagodebastos / job_control_zsh_bash.md
Created September 22, 2020 01:39 — forked from CMCDragonkai/job_control_zsh_bash.md
CLI: Job Control in ZSH and Bash

Job Control in ZSH and Bash

All processes in ZSH/Bash under job control are in 3 states: foregrounded, backgrounded and suspended.

# run command in the foreground
command
# run commend in the background

Keybase proof

I hereby claim:

  • I am thiagodebastos on github.
  • I am soulhop (https://keybase.io/soulhop) on keybase.
  • I have a public key ASBgeSFYL7Al2U_jm7f9ra6ByjGe0tjx9RU3dfN0ATG98Qo

To claim this, I am signing this object:

@thiagodebastos
thiagodebastos / arrays.js
Last active September 3, 2021 03:43
Code session with Fhelipe
var daysOfWeek = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];
var inputCalories = [3500, 1500, 1800, 2300, 2400, 1500, 1500];
// const caloriesByDay = daysOfWeek.map(function(day, index) {
// return {
// [day]:inputCalories[index]
// }
// })
@thiagodebastos
thiagodebastos / keychron K3.md
Created February 22, 2022 12:05 — forked from aleixmorgadas/keychron K3.md
Keychron K3 Linux
@thiagodebastos
thiagodebastos / childprocess-git-test.js
Created June 20, 2022 04:30 — forked from mklabs/childprocess-git-test.js
use spawn childprocess to perform a git commit
var spawn = require('child_process').spawn,
un = spawn('git', ['config', 'user.name', 'Batman']),
ue = spawn('git', ['config', 'user.email', 'batman@gotham.com']),
g = spawn('git', ['commit', '-am', "Jooooooker"]);
un.stdout.on('data', function (data) {
console.log('un stdout: ' + data);
});
ue.stdout.on('data', function (data) {
@thiagodebastos
thiagodebastos / GPG Security Best Practice.md
Created September 18, 2025 18:01 — forked from Integralist/GPG Security Best Practice.md
[GPG Security Best Practice] #gpg #security #encryption

Concept

https://alexcabal.com/creating-the-perfect-gpg-keypair/

  1. Create a regular GPG keypair. By default GPG creates one signing subkey (your identity) and one encryption subkey (how you receive messages intended for you).

  2. Use GPG to add an additional signing subkey to your keypair. This new subkey is linked to the first signing key. Now we have three subkeys.

  3. This keypair is your master keypair. Store it in a protected place like your house or a safe-deposit box. Your master keypair is the one whose loss would be truly catastrophic.