Skip to content

Instantly share code, notes, and snippets.

View thiagodebastos's full-sized avatar
🎯
Focusing

Thiago Lucio thiagodebastos

🎯
Focusing
View GitHub Profile
@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 / keychron K3.md
Created February 22, 2022 12:05 — forked from aleixmorgadas/keychron K3.md
Keychron K3 Linux
@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
@thiagodebastos
thiagodebastos / submodules.md
Created March 21, 2019 15:01 — forked from manasthakur/submodules.md
Using git submodules to version-control Vim plugins

Using git-submodules to version-control Vim plugins

If you work across many computers (and even otherwise!), it's a good idea to keep a copy of your setup on the cloud, preferably in a git repository, and clone it on another machine when you need. Thus, you should keep the .vim directory along with your .vimrc version-controlled.

But when you have plugins installed inside .vim/bundle (if you use pathogen), or inside .vim/pack (if you use Vim 8's packages), keeping a copy where you want to be able to update the plugins (individual git repositories), as well as your vim-configuration as a whole, requires you to use git submodules.

Creating the repository

Initialize a git repository inside your .vim directory, add everything (including the vimrc), commit and push to a GitHub/BitBucket/GitLab repository:

cd ~/.vim
@thiagodebastos
thiagodebastos / multiple_ssh_setting.md
Created February 14, 2019 08:32 — forked from RichardBronosky/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@thiagodebastos
thiagodebastos / BEM Stylus
Created June 4, 2016 11:19 — forked from paceaux/BEMify
Stylus BEM mixin
e(name)
&__{name}
{block}
m(name)
&--{name}
{block}
.header
color: red
+e(element)