Skip to content

Instantly share code, notes, and snippets.

@nnzo
nnzo / nvminit.txt
Created June 20, 2020 12:51
nvminit
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
@nnzo
nnzo / .htaccess
Created June 20, 2020 06:31 — forked from alexsasharegan/.htaccess
Apache Config for React Router
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
@nnzo
nnzo / installlibdb4.8.txt
Last active June 19, 2020 10:35
Install libdb4.8
# Make sure unzip, make etc are installed
wget http://download.oracle.com/berkeley-db/db-4.8.30.zip
unzip db-4.8.30.zip
cd db-4.8.30
cd build_unix/
../dist/configure --prefix=/usr/local --enable-cxx
make
make install
@nnzo
nnzo / class.rb
Created June 12, 2020 08:12
Convert a ruby hash to and from a string/key
class ::Hash
# via https://stackoverflow.com/a/25835016/2257038
def stringify_keys
h = self.map do |k,v|
v_str = if v.instance_of? Hash
v.stringify_keys
else
v
end
@nnzo
nnzo / gethcall.txt
Created June 4, 2020 05:31
gethcall
curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' http://123.123.123.123:8545
@nnzo
nnzo / 📊 Weekly development breakdown
Last active September 27, 2020 11:30
Code Breakdown
Other 11 hrs 37 mins ██████████▎░░░░░░░░░░ 49.3%
Swift 11 hrs 3 mins █████████▊░░░░░░░░░░░ 46.9%
Ruby 32 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.3%
CSS 14 mins ▏░░░░░░░░░░░░░░░░░░░░ 1.0%
Git Config 2 mins ░░░░░░░░░░░░░░░░░░░░░ 0.2%
@nnzo
nnzo / gist:20d9ea0342b543a1460fd13be64a7c60
Created June 1, 2020 12:52
🎧 My music activity over the last 6 months
d
Yxngxr1 |███ | 14.76% Let's Shake
Sueco the Child |██▊ | 13.97% no sleep in my body
Lil Peep |██▌ | 12.53% Falling Down - Bonus Track
Young Spool |██▏ | 10.38% Weekend
$NOT |█▍ | 6.77% Moon & Stars (feat. Maggie Lindemann)
The Kid LAROI |█▎ | 6.38% Let Her Go
fun. |█▏ | 5.41% We Are Young (feat. Janelle Monáe)
XXXTENTACION |█ | 5.29% Falling Down - Bonus Track
Maggie Lindemann |▊ | 3.55% Moon & Stars (feat. Maggie Lindemann)
AzChike |▊ | 3.53% No Fucks (feat. Sueco The Child and AzChike)
@nnzo
nnzo / install.md
Created May 28, 2020 22:07
Installation

Install MicroKube in Ubuntu 18.04

Step 1: Install Docker

To install Docker you will need to do those steps with sudo or login as root user with sudo -i

Create a Unix user for holding your application

groupadd app
useradd -d /home/app -s `which bash` -g app -m app