Skip to content

Instantly share code, notes, and snippets.

View LuisdelaVega's full-sized avatar

Luis de la Vega Lopez LuisdelaVega

View GitHub Profile
@LuisdelaVega
LuisdelaVega / vscode-settings.json
Last active July 11, 2022 15:51
My settings for vscode
{
// Editor look and feel
"editor.tabSize": 2,
"editor.wordWrap": "on",
"workbench.colorTheme": "One Dark Pro",
"workbench.startupEditor": "newUntitledFile",
"editor.cursorBlinking": "phase",
"editor.cursorSmoothCaretAnimation": true,
// Formatting on save
"editor.codeActionsOnSave": {
#!/bin/bash
# Requires:
# brew install fortune lolcat cowsay
#place in /usr/local/bin/ and make executable
foo=$(fortune)
echo $foo | cowsay | lolcat
#!/bin/bash
# Requires:
# sudo apt-get install -y fortune lolcat spd-say cowsay
#place in /usr/bin/ and make executable
fortune | spd-say -e | cowsay | lolcat
@LuisdelaVega
LuisdelaVega / node_build_from_source.sh
Last active April 13, 2016 00:51
Build node on your favorite flavor of linux from source. This way you wont be faced with having to sudo npm install stuff. Just change the value of version to the desired one and execute it. Don't forget to do the visudo part (in the comments)
VERSION="v5.7.0"
USERNAME="$(whoami)"
sudo yum install -y gcc-c++ make
# or: yum groupinstall 'Development Tools'
curl -O http://nodejs.org/dist/latest/node-${VERSION}.tar.gz
tar -xvzf node-${VERSION}.tar.gz
cd node-${VERSION}
./configure --prefix=/opt/node