Skip to content

Instantly share code, notes, and snippets.

:octocat:
☕️ 🍩 📚

Leandro Kersting de Freitas frekele

:octocat:
☕️ 🍩 📚
Block or report user

Report or block frekele

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
@frekele
frekele / ecr-cred-updater.sh
Created Jul 29, 2018 — forked from cablespaghetti/ecr-cred-updater.sh
Automatic Updating Amazon ECR Credentials in Kubernetes
View ecr-cred-updater.sh
#!/bin/bash
# Get directory of script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [[ $# -ne 1 ]]
then
echo "ERROR: This script expects the namespace name to be given as an argument"
echo "e.g. ./ecr-cred-updater.sh my-namespace"
exit 1
@frekele
frekele / bin-cc.md
Created Jan 26, 2018 — forked from erikhenrique/bin-cc.md
Bin de cartões de crédito para validação
View bin-cc.md

Validação para cartão de crédito.

Bin e padrões para validação de cartão de crédito.

Bandeira Começa com Máximo de número Máximo de número cvc
Visa 4 13,16 3
Mastercard 5 16 3
View aws-ec2-spot-attach-ebs-with-docker.sh
#!/bin/bash
### REF: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html
### http://docs.aws.amazon.com/cli/latest/reference/ec2/attach-volume.html
### http://docs.aws.amazon.com/cli/latest/reference/ec2/detach-volume.html
set -e
#Id do volume, adicionar manualmente aqui.
VOLUME_ID=$PERSISTENT_VOLUME_ID
@frekele
frekele / Jenkinsfile
Created Aug 4, 2016
Jenkinsfile pipelineTriggers - TimerTrigger periodic run the aws-update-my-dynamic-ip.sh script.
View Jenkinsfile
#!groovy
MAIL_FROM = 'noreply-jenkins@myhost.io'
MAIL_TO = 'jenkins@myhost.io'
GITHUB_PROTOCOL = 'https'
GITHUB_USER_NAME = 'my-github-user'
GITHUB_USER_EMAIL = 'jenkins@myhost.io'
GITHUB_REPO = 'github.com/my-user/my-repository'
GITHUB_PROJECT_URL = "${GITHUB_PROTOCOL}://${GITHUB_REPO}"
@frekele
frekele / aws-update-my-dynamic-ip.sh
Last active Jul 10, 2018
Script Update Dynamic Ips into AWS EC2 Security Groups. To run need to install aws cli, JQ and dnsutils.
View aws-update-my-dynamic-ip.sh
#!/bin/bash
if [ $# -eq 0 ]
then
echo -e 'Please provide the name of a security group\n\te.g. . aws-update-my-dynamic-ip.sh SECURITYGROUPNAME'
exit 1
fi
GROUP_NAME=$1
@frekele
frekele / Jenkinsfile.groovy
Created Jul 19, 2016 — forked from rlespinasse/Jenkinsfile.groovy
Jenkinsfile to tag the sources used by current build
View Jenkinsfile.groovy
node {
repositoryAccess = 'https://'
repositoryAccessSeparator = '/'
echo "repository host: ${repositoryHost}" // github.com
echo "repository path: ${repositoryPath}" // <user>/<repository>.git
echo "repository jenkins credentials id: ${credentialsId}" // jenkins credentials for the jenkins git account who have commit access
echo "repository branch: ${branch}" // master or another branch
echo "repository commiter username: ${repositoryCommiterUsername}" // Jenkins account email
echo "repository commiter name: ${repositoryCommiterEmail}" // Jenkins
View gist:0f060cafab270bf53242017212e28cad

The process starts by creating the CSR and the private key:

openssl req -nodes -newkey rsa:2048 -nodes -keyout dotmarks.net.key -out dotmarks.net.csr -subj "/C=GB/ST=London/L=London/O=dotmarks/OU=IT/CN=dotmarks.net"

Generates

  • dotmarks.net.key
  • dotmarks.net.csr
You can’t perform that action at this time.