Skip to content

Instantly share code, notes, and snippets.

View dnlcorrea's full-sized avatar
🎯
Focusing

Daniel Corrêa dnlcorrea

🎯
Focusing
View GitHub Profile
@mrbar42
mrbar42 / README.md
Last active August 24, 2024 15:03
Install nodenv on Ubuntu

Installing nodenv on ubuntu

nodenv is a great tool, but its installation on Ubuntu is never smooth for me. Here are instructions to install nodenv along with node-build and node-aliases plugins.

ℹ️ note - nodenv recommands updating the PATH though not all programs run in a shell. i prefer adding symlinks to the nodenv binary and shims to make it available everywhere.

The script can be pasted into a terminal as is

# install the base app
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@tommymarshall
tommymarshall / RomanNumeralsConverter.php
Created August 25, 2014 19:17
Converts roman numerals to numbers.
<?php
class RomanNumeralsConverter
{
protected static $mappings = [
'I' => 1,
'V' => 5,
'X' => 10,
'L' => 50,
'C' => 100,
@ldong
ldong / fix_relink_virtualbox_to_vagrant.md
Last active August 3, 2016 02:06
Relink vbox to vagrant