Skip to content

Instantly share code, notes, and snippets.

View githubnando's full-sized avatar
💤
I may be slow to respond.

Ernando José githubnando

💤
I may be slow to respond.
View GitHub Profile
@githubnando
githubnando / docker-compose-environment.sh
Last active May 3, 2018 16:23
Docker compose scaffold with MariaDB + PHP 7 + Composer + Yarn
# Docker compose environment scaffold using MariaDB and PHP 7, with Data Container for
# the database and without permission issues with mounted volumes (docker -v)
########################
###### Dockerfile ######
########################
```
FROM php:7.0.18-apache
# Basic tools and dependencies
@githubnando
githubnando / ubuntu17.10-afterinstall
Last active December 27, 2017 00:44
Ubuntu 17.10 afterinstall
#!/bin/bash
NC='\033[0m'
CO='\033[0;31m'
USER='ernjs'
function display {
echo -e "$CO $1 $NC"
}
@githubnando
githubnando / mojave-rubygem-install.md
Last active October 2, 2018 14:17
Usage of gem package installation without sudo on MacOS Mojave
$ brew install rbenv ruby-build
$ echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.zshrc
$ source ~/.zshrc

Install Ruby

$ rbenv install 2.5.0
$ rbenv global 2.5.0
$ ruby -v
@githubnando
githubnando / black-panther.md
Last active September 8, 2020 18:01
All Black Panther Comic Books for Free

To get all 256 issues in a few minutes:

  1. Go here: US or EU
  2. Right click (anywhere) > Inspect Element > Console
  3. Paste (sometimes you need to refresh the page and paste again, but will be quicker the second time):
    var buttons = document.getElementsByClassName('action-button buy-action primary-action');
    
 function sleep(delay) {