Skip to content

Instantly share code, notes, and snippets.

View cleybertandre's full-sized avatar

Cleybert Andre cleybertandre

View GitHub Profile
# @author Cleybert Andre
#
# cron.d/dns-fix -- Search for the fastest DNS resolver every 5 minutes.
# Available environment variables are documented on the script.
#
# ┌──────── minute (0 - 59 or "*/X" for every X minutes)
# │ ┌─────── hour (0 - 23)
# │ │ ┌────── day of month (1 - 31)
# │ │ │ ┌────── month (1 - 12)
# │ │ │ │ ┌───── day of week (0 - 6 => Sunday - Saturday, or 1 - 7 => Monday - Sunday)
@cleybertandre
cleybertandre / gist:1f31a43aec19b66d35d65fbbb257ee60
Created November 5, 2019 18:44 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.


Updated Apr 5 2019:

because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.

some other notes:

@cleybertandre
cleybertandre / nginx.conf
Created October 3, 2019 14:19 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@cleybertandre
cleybertandre / git.migrate
Created July 24, 2019 14:16 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.
@cleybertandre
cleybertandre / .screenrc
Created December 11, 2018 19:12
Linux screen configuration file
# disable startup message
startup_message off
# if we accidentally hangup, don't be all attached when we come back.
autodetach on
# more scrollbacks!
defscrollback 30000
defc1 off