Cmd.gs

my digital notepad

cmd: bashtop

August 07, 2020 — cmcipriano

a cool replacement for top or htop

to install, make sure you have homebrew, if not you got to install it. $: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

then, install python3 $: brew install python3

and some dependencies $: brew install bash coreutils gnu-sed git osx-cpu-temp

some more dependencies $: python3 -m pip install psutil

now, let's install it for real $: git clone https://github.com/aristocratos/bashtop.git
$: cd bashtop
$: sudo make install

to remove, just do $: sudo make uninstall

Tags: terminal-commands, monitoring

cmd: nano

August 02, 2020 — cmcipriano

here is a neat way to implement syntax highlighting and line numbers in nano

first you need to install the latest nano, you can do this via brew $: brew install nano

then export the binary path $: nano ~/.bash_profile

then append this line export PATH="/usr/local/bin:$PATH"

this line should give you access to the installed nano app

run this command to install the syntax highlighter $: curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh

once done, edit your .nanorc $: nano ~/.nanorc

then append this line to the bottom of the file set linenumbers

here are some other setting you might want to implement as well set tabsize 4
set tabstospaces
set autoindent
set smooth
set atblanks
set constantshow
set mouse
set softwrap
set showcursor
set trimblanks
set nonewlines

Tags: terminal-commands, text-editor, code-editor

tools: database manager

July 31, 2020 — cmcipriano

i usually use these 2 database manager:

  • SequelPro
  • DB Browser for SQLite

to install SequelPro $: brew install sequel-pro

to install DB Browser for SQLite $: brew cask install db-browser-for-sqlite

Tags: database

tools: sublime text 3 plugins

July 29, 2020 — cmcipriano

here are some sublime text 3 plugins that are very useful to me

here is how you install on an OSX machine [command] + [shift] + p

then select "Package Control: Install Package"

then install the following:

  • Trimmer, to trim-off excess spaces
  • CursorRuler, i really like reminding myself on where the curson is
  • GitGutter, again, just want to remind myself on the last edits on my code

also here is my settings: {
"color_scheme": "Packages/Color Scheme - Default/Mariana.sublime-color-scheme",
"detect_indentation": false,
"draw_white_space": "all",
"font_face": "Monoid Nerd Font Mono",
"font_size": 8,
"highlight_line": true,
"ignored_packages": ["Vintage"],
"save_on_focus_lost": true,
"tab_size": 4,
"theme": "Default.sublime-theme",
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"word_wrap": false
}

Tags: editor

tools: fira font

July 28, 2020 — cmcipriano

just a simple and cool looking font for coding. $: brew cask install font-fira-code font-fira-sans

Tags: font

cmd: starship

July 28, 2020 — cmcipriano

a simple way to colorize your bash terminal. $: brew install starship

once installed, edit your .bash_profile or .bash_rc $: nano ~/.bash_profile

or $: nano ~/.bash_rc

then add this line eval "$(starship init bash)"

Tags: terminal-commands

cmd: speedtest

July 21, 2020 — cmcipriano

install speedtest, so you can perform speed-test on your commandline interface $: brew tap teamookla/speedtest

then install speedtest app $: brew install speedtest

to run this app, simply call speedtest on your terminal $: speedtest

Tags: terminal-commands

cmd: vagrant

July 20, 2020 — cmcipriano

to install Vagrant, you need to get VirtualBox first on your system $: brew cask install virtualbox

install Vagrant $: brew cask install vagrant

then the Vagrant Manager $: brew cask install vagrant-manager

here are some commands:

initialize: $: vagrant init generic/debian10

start the vm: $: vagrant up

ssh to the vm: $: vagrant ssh

halt/stop the vm: $: vagrant halt

suspend the vm: $: vagrant suspend

destroy the vm: $: vagrant destroy

note: you would need to perform the above commands inside the vm's directory.

Tags: terminal-commands