Skip to content

Instantly share code, notes, and snippets.

View rafaelnize's full-sized avatar

Rafael Nize rafaelnize

  • São Paulo, Brazil
View GitHub Profile
@rafaelnize
rafaelnize / gist:3b72c052898d4b95c5b4a5fc8e960dfc
Created September 22, 2021 22:30
set Mac keyboard for ABNT support PT-BR
setxkbmap -model abnt -layout us -variant intl
@rafaelnize
rafaelnize / gist:7bf4f4ec064cf2df9cfd0ca2725f2682
Created August 23, 2021 05:09
Check if wbgserver supports SNI extension for HTTPS
openssl s_client -connect www.linio.com.mx:443 | openssl x509 -noout -text | grep DNS:
If you get DNS: output with different domains, the SNI extension is supported!

Keybase proof

I hereby claim:

  • I am rafaelnize on github.
  • I am rafaelnize (https://keybase.io/rafaelnize) on keybase.
  • I have a public key ASDOogBK5BOunaDu80H0IKeipSkMfEQRqdxQ3bFpWYr-Cwo

To claim this, I am signing this object:

@rafaelnize
rafaelnize / gist:cfdb3290b7dd3e311c0258c021ccd698
Created June 11, 2019 18:09
Delete branches local and remote
To remove a local branch from your machine:
git branch -d {the_local_branch} (use -D instead to force deleting the branch without checking merged status)
To remove a remote branch from the server:
git push origin --delete {the_remote_branch}
FROM ubuntu:16.04
### solve some problems with shell commands ###
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
#### Packages and dependencies ###################
RUN apt-get update -y
RUN apt-get install -y git libffi-dev nano python python-dev python-pip python-software-properties
RUN apt-get install -y libssl-dev \
ssh-agent-filter \
version: "3"
services:
baseimage:
build:
context: ./baseimage
dockerfile: Dockerfile-base
gitserver:
image: gogs/gogs
volumes:
FROM jenkins/jenkins:lts
USER root
RUN apt-get update -y
RUN apt-get install python3 sudo -y
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 0
RUN usermod -G sudo jenkins
RUN echo 'jenkins ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
ARG user=jenkins
ARG group=jenkins
@rafaelnize
rafaelnize / View
Created March 7, 2017 17:36
Ansible Vault
ansible-vault view foo.yml bar.yml baz.yml
@rafaelnize
rafaelnize / vagrantfie
Created March 3, 2017 18:17
vagrantfile docker
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
$bootstrap=<<SCRIPT
apt-get update
apt-get -y install wget
wget --no-check-certificate -qO- https://get.docker.com/ | sh
gpasswd -a vagrant docker
@rafaelnize
rafaelnize / Cloudformation Network Input
Created February 23, 2017 06:24
Cloudformation CIDR
"SubnetCoreUsEast1a": {
"Description": "Subnet CIDR for VPC",
"Type": "String",
"AllowedPattern": "(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})/(\\d{1,2})",
"ConstraintDescription": "must be a valid CIDR range of the form x.x.x.x/x.",
"Default": "10.46.20.0/24"
}