Skip to content

Instantly share code, notes, and snippets.

View renatoagomes's full-sized avatar

Renato Gomes renatoagomes

View GitHub Profile
@CMNatic
CMNatic / cloudSettings
Last active October 5, 2023 19:22
TryHackMe OWASP-10-A8: Insecure Deserialization RCE PoC
{"lastUpload":"2021-08-31T08:20:42.057Z","extensionVersion":"v3.4.3"}
@thiagobraga
thiagobraga / _deploy-com-post-receive.md
Last active November 6, 2018 17:02
Deploy com post-receive

Deploy com post-receive

No artigo a seguir, vou adotar a seguinte estrutura de pastas:

  • TODO: Utilizar tree para gerar estrutura de pastas.

Criando repositório bare

  • Executar o script git-init-bare.sh
  • Copiar o conteúdo de post-receive.sh para /var/www/html/project/.git/hooks/post-receive
@miguelsaddress
miguelsaddress / how-to-gource.sh
Created October 9, 2015 08:35
Install Gource in Ubuntu (gource.io)
#Install Gource in Ubuntu
========================
#Go to the folder.... and
#see http://tylerfrankenstein.com/code/install-gource-ubuntu-1010-visualize-git-repo
sudo apt-get update
sudo apt-get install libsdl2-dev libsdl2-image-dev libpcre3-dev libfreetype6-dev libglew-dev libglm-dev libboost-filesystem-dev libpng12-dev libsdl1.2-dev libsdl-image1.2-dev libtinyxml-dev
./configure
make
sudo make install
@gilbitron
gilbitron / .env.travis
Last active August 12, 2023 08:06
Laravel 5 Travis CI config
APP_ENV=testing
APP_KEY=SomeRandomString
DB_CONNECTION=testing
DB_TEST_USERNAME=root
DB_TEST_PASSWORD=
CACHE_DRIVER=array
SESSION_DRIVER=array
QUEUE_DRIVER=sync
@PurpleBooth
PurpleBooth / README-Template.md
Last active July 17, 2024 03:47
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

""" Simple mod from the original gist submitted by @zoufou
https://gist.github.com/zoufou/5701d71bf6e404d17cb4
Mod by: @pguillem
Purpose:
- Integrates PySQLPool lib to handle MySQL
- Visit https://pythonhosted.org/PySQLPool/tutorial.html
Requirements:
@ipedrazas
ipedrazas / gist:2c93f6e74737d1f8a791
Created September 18, 2014 22:13
List Docker Container Names and IPs
function drips(){
docker ps -q | xargs -n 1 docker inspect --format '{{ .NetworkSettings.IPAddress }} {{ .Name }}' | sed 's/ \// /'
}
@cecilemuller
cecilemuller / gist:4049939
Created November 10, 2012 04:42
jQuery: replace HTML contents with a smooth height animation
(function($){
$.fn.replace_html = function(html){
return this.each(function(){
var el = $(this);
el.stop(true, true, false);
var finish = {width: this.style.width, height: this.style.height};
var cur = {width: el.width() + "px", height: el.height() + "px"};
el.html(html);
var next = {width: el.width() + "px", height: el.height() + "px"};
el.css(cur).animate(next, 300, function(){el.css(finish);});