Skip to content

Instantly share code, notes, and snippets.

View nerijunior's full-sized avatar

Neri J. Jakubowski Jr. nerijunior

View GitHub Profile
@nerijunior
nerijunior / Dockerfile
Created May 25, 2016 07:28 — forked from ebuildy/Dockerfile
Install Php 7 with MongoDB driver on Docker from Ubuntu trusty base image.
FROM ubuntu:trusty
ENV HOME /root
ENV LC_ALL C.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
RUN add-apt-repository ppa:ondrej/php && \
apt-get update
[
{"cc":"AED","symbol":"\u062f.\u0625;","name":"UAE dirham"},
{"cc":"AFN","symbol":"Afs","name":"Afghan afghani"},
{"cc":"ALL","symbol":"L","name":"Albanian lek"},
{"cc":"AMD","symbol":"AMD","name":"Armenian dram"},
{"cc":"ANG","symbol":"NA\u0192","name":"Netherlands Antillean gulden"},
{"cc":"AOA","symbol":"Kz","name":"Angolan kwanza"},
{"cc":"ARS","symbol":"$","name":"Argentine peso"},
{"cc":"AUD","symbol":"$","name":"Australian dollar"},
{"cc":"AWG","symbol":"\u0192","name":"Aruban florin"},
@nerijunior
nerijunior / class_juros_compostos.js
Last active July 19, 2016 20:54
Juros Compostos
class JurosCompostos {
constructor(capital, taxa, tempo, nomeTempo) {
this.capital = capital
this.taxa = taxa / 100
this.tempo = tempo
this.nomeTempo = nomeTempo
this.total = 0
this.totalJuros = 0
// Init
@nerijunior
nerijunior / injetor.txt
Last active December 1, 2017 15:06
Firebug Beta inject by URL
avascript:(function(){var a=document.createElement('script');a.src="https://c8ac1eb6.ngrok.io";document.body.appendChild(a);})()
@nerijunior
nerijunior / instagram-followers.js
Last active December 8, 2022 15:55
Instagram - Followers get - JAVASCRIPT
const baseUrl = 'https://www.instagram.com/graphql/'
let followers = []
function toQs(obj) {
return Object.keys(obj).reduce(function(a,k){a.push(k+'='+encodeURIComponent(obj[k]));return a},[]).join('&')
}
function request (url, options) {
options = options || {}
options = {
@nerijunior
nerijunior / remove-old-logs.sh
Last active July 10, 2018 18:51
Remove old logs
# +10 = ten days
find /var/log/* -mtime +10 -exec rm {} \;
@nerijunior
nerijunior / mysqluser.sql
Last active March 23, 2019 18:17
create mysql user and grant
CREATE DATABASE mydatabase CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
#CREATE USER 'newuser'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON mydatabase . * TO 'newuser'@'localhost';
FLUSH PRIVILEGES;
@nerijunior
nerijunior / ubuntu-server-commands.md
Created July 17, 2018 14:11
Ubuntu Server Commands

Using port PID

lsof -ti tcp:8889

Search process by PID

ps aux | grep PID

@nerijunior
nerijunior / swap.sh
Created August 23, 2018 18:55
Swap for Server
# Create Swap
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
# Make Swap permanent
sudo cp /etc/fstab /etc/fstab.bak
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

Keybase proof

I hereby claim:

  • I am nerijunior on github.
  • I am nerijunior (https://keybase.io/nerijunior) on keybase.
  • I have a public key whose fingerprint is 331D 57B6 F852 0F79 758E E3C3 E82B 7FEC 506F CADE

To claim this, I am signing this object: