Skip to content

Instantly share code, notes, and snippets.

View h3ct0rjs's full-sized avatar
:shipit:

Héctor F. Jiménez. S h3ct0rjs

:shipit:
View GitHub Profile
@h3ct0rjs
h3ct0rjs / localhost-ssl-certificate.md
Created September 27, 2023 01:38 — forked from ethicka/localhost-ssl-certificate.md
Localhost SSL Certificate on Mac OS

🚨 2020 Update: I recommend using mkcert to generate local certificates. You can do everything below by just running the commands brew install mkcert and mkcert -install. Keep it simple!


This gives you that beautiful green lock in Chrome. I'm assuming you're putting your SSL documents in /etc/ssl, but you can put them anywhere and replace the references in the following commands. Tested successfully on Mac OS Sierra and High Sierra.

Set up localhost.conf

sudo nano /etc/ssl/localhost/localhost.conf

@h3ct0rjs
h3ct0rjs / config
Created November 18, 2021 04:00 — forked from pksunkara/config
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
[sendemail]
smtpencryption = tls
@h3ct0rjs
h3ct0rjs / ABC.md
Created January 18, 2021 11:01 — forked from jdnichollsc/ABC.md
The Job Interview Guide

The Job Interview Guide 💼

And English is a Work in Progress ⌛

@h3ct0rjs
h3ct0rjs / BackupVMScript.ps1
Created July 14, 2020 14:46 — forked from brimston3/BackupVMScript.ps1
Backup Hyper-V VM with powershell
#requires -version 3.0
#requires -module Hyper-V
<#
.SYNOPSIS
Export virtual machines
.DESCRIPTION
This utility will export virtual machines to a target destination. By default
it will create a folder using the format:
@h3ct0rjs
h3ct0rjs / grafana custom.ini
Last active April 14, 2020 23:23 — forked from rrichards/grafana custom.ini
nginx config for using grafana, Influxdb via reverse proxy with authentication
# The full public facing url
#root_url = %(protocol)s://%(domain)s:%(http_port)s/
root_url = http://localhost:80/grafana/
@h3ct0rjs
h3ct0rjs / networkCommand.md
Created December 3, 2019 20:11 — forked from raulmoyareyes/networkCommand.md
Linux command to check Internet connection speed.

# View public IP

  • curl -s checkip.dyndns.org | sed 's#.Address: (.)</b.*#\1#'
  • wget -qO - icanhazip.com
  • curl ifconfig.me
  • curl ident.me
  • dig +short myip.opendns.com @resolver1.opendns.com
  • lynx -dump ifconfig.me | grep 'IP Address'
  • curl ipecho.net/plain
  • curl bot.whatismyipaddress.com
  • curl ipinfo.io
@h3ct0rjs
h3ct0rjs / Backup-Postgres.ps1
Created November 6, 2019 15:41 — forked from stefanprodan/Backup-Postgres.ps1
PostgreSQL cluster base backup automation made easy with PowerShell and Windows Task Scheduler or PgAgent. This script does the following: checks if there is enough free space to make a new backup (based on the last backup size), purges expired backups, creates a new folder for each backup, calls pb_basebackup to begin a tar gzip backup of every…
#############################################
##
## PostgreSQL base backup automation
## Author: Stefan Prodan
## Date : 20 Oct 2014
## Company: VeriTech.io
#############################################
# path settings
$BackupRoot = 'C:\Database\Backup';
@h3ct0rjs
h3ct0rjs / Backup-Postgres.ps1
Created November 6, 2019 15:41 — forked from stefanprodan/Backup-Postgres.ps1
PostgreSQL cluster base backup automation made easy with PowerShell and Windows Task Scheduler or PgAgent. This script does the following: checks if there is enough free space to make a new backup (based on the last backup size), purges expired backups, creates a new folder for each backup, calls pb_basebackup to begin a tar gzip backup of every…
#############################################
##
## PostgreSQL base backup automation
## Author: Stefan Prodan
## Date : 20 Oct 2014
## Company: VeriTech.io
#############################################
# path settings
$BackupRoot = 'C:\Database\Backup';
@h3ct0rjs
h3ct0rjs / Backup-Postgres.ps1
Created November 6, 2019 15:41 — forked from stefanprodan/Backup-Postgres.ps1
PostgreSQL cluster base backup automation made easy with PowerShell and Windows Task Scheduler or PgAgent. This script does the following: checks if there is enough free space to make a new backup (based on the last backup size), purges expired backups, creates a new folder for each backup, calls pb_basebackup to begin a tar gzip backup of every…
#############################################
##
## PostgreSQL base backup automation
## Author: Stefan Prodan
## Date : 20 Oct 2014
## Company: VeriTech.io
#############################################
# path settings
$BackupRoot = 'C:\Database\Backup';
@h3ct0rjs
h3ct0rjs / README.rst
Created August 22, 2019 20:18 — forked from offlinehacker/README.rst
Script that learns openvpn hostnames from cert CN filed

ovpn-learnaddress

openvpn learn-address script to manage a hosts-like file

  • intended to allow dnsmasq to resolve openvpn clients
  • written for openwrt (busybox), but should work most anywhere

How it works?