Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Mauricio mauricionr

🎯
Focusing
Block or report user

Report or block mauricionr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mauricionr
mauricionr / git_remember_password.md
Created May 29, 2019 — forked from ankurk91/git_remember_password.md
Git credential cache, why type password again and again
View git_remember_password.md

Git tip: Tired of entering password again and again ?

Run this command to remember your password:

git config --global credential.helper 'cache --timeout 28800'

Above command will tell git to cache your password for 8 hours.

View items.json
{
"items":[{"name":"Banner", "img": "https://www.petlove.com.br/static/uploads/banner_image/image/5349/color_topo-faixa_0607-brinde-portaracao.png"}]
}
View kubepodmetric.py
#!/usr/bin/env python
# python ./kubepodmetric.py -w -s {{POD_PREFIX}}
import sys
import os
import re
import time
import json
import argparse
View gitup
function gitup(){
local branch=$(git rev-parse --abbrev-ref HEAD)
if [ $branch == "master" ]; then
echo "On master do nothing"
else
echo "Current branch $branch"
git add .
git commit -m "$1"
git push origin $branch
fi
View springboot
https://github.com/Azure/azure-docs-sdk-java/blob/master/docs-ref-conceptual/spring-framework/deploy-spring-boot-java-web-app-on-azure.md
@mauricionr
mauricionr / install.sh
Created Jan 11, 2018 — forked from ziadoz/install.sh
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
View install.sh
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
@mauricionr
mauricionr / clone_redis.py
Created Sep 14, 2017 — forked from jimmyislive/clone_redis.py
Redis Elasticache Export
View clone_redis.py
from optparse import OptionParser
import sys
import redis
__author__ = 'Jimmy John'
__doc__ = '''
This is a script to make a copy of a redis db. Mainly to be used for cloning AWS Elasticache
instancces. Elasticache seems to disable the SAVE/BGSAVE commands and you do not have access to
the physical redis instances. The UI allows you to create 'Snapshots', but no way to download
View gist:2825704830c7a3d6ccd0bedc934470b9
/**
* Generates a client ID in the format historically used by the Google Analytics
* JavaScript libraries. Note that any alphanumeric value may be used, but
* ideally each should be unique to a given client.
*
* More information on Client IDs:
* https://developers.google.com/analytics/devguides/collection/protocol/v1/email#client-id-cid
*/
function generateGaClientId() {
View gist:d9d1cd4725ce72bd1f681f1e3bd82a43
Adyen Test Card Numbers
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform.
For all cards use the following expiration and CVV2/CVC2/or CID for Amex.
For all cards:
Expiration Dates CVV2 / CVC3 CID (American Express)
08/2018 OR 10/2020 737 7373
View nginx.conf.default
#user nobody;
#Defines which Linux system user will own and run the Nginx server
worker_processes 1;
#Referes to single threaded process. Generally set to be equal to the number of CPUs or cores.
#error_log logs/error.log; #error_log logs/error.log notice;
#Specifies the file where server logs.
You can’t perform that action at this time.