Skip to content

Instantly share code, notes, and snippets.

View thiagodebastos's full-sized avatar
:electron:
Contracting, Consulting, Learning

Thiago de Bastos thiagodebastos

:electron:
Contracting, Consulting, Learning
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) {