Skip to content

Instantly share code, notes, and snippets.

View drconopoima's full-sized avatar

Luis Jesús Díaz drconopoima

View GitHub Profile
@drconopoima
drconopoima / .bashrc_manjaro
Last active August 30, 2019 06:01 — forked from arindam89/.bashrc
.bashrc example for a Ubuntu/OpenSUSE host with customized Prompt to visualize git branch and depth level, aliases for Backend tools for network (tcpdump, ngrep, ss), Python (Pyenv) and Node.js (NVM)
#
# ~/.bashrc
#
[[ $- != *i* ]] && return
colors() {
local fgc bgc vals seq0
printf "Color escapes are %s\n" '\e[${value};...;${value}m'
@drconopoima
drconopoima / LICENSE-APACHE
Last active May 31, 2025 10:45
This license applies to all my public gists at https://gist.github.com/drconopoima
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
@drconopoima
drconopoima / 99-network-tuning.conf
Created April 29, 2021 08:32 — forked from hrchu/99-network-tuning.conf
Linux Web Server Kernel Tuning
# Configuration file for runtime kernel parameters.
# See sysctl.conf(5) for more information.
# See also http://www.nateware.com/linux-network-tuning-for-2013.html for
# an explanation about some of these parameters, and instructions for
# a few other tweaks outside this file.
# See evil packets in your logs.
net.ipv4.conf.all.log_martians = 1
@drconopoima
drconopoima / SSL-certs-OSX.md
Created March 1, 2022 10:16 — forked from croxton/SSL-certs-OSX.md
Generate ssl certificates with Subject Alt Names

Generate ssl certificates with Subject Alt Names on OSX

Open ssl.conf in a text editor.

Edit the domain(s) listed under the [alt_names] section so that they match the local domain name you want to use for your project, e.g.

DNS.1   = my-project.dev

Additional FQDNs can be added if required:

@drconopoima
drconopoima / 01-root-openssl.conf
Created March 14, 2022 19:45 — forked from AfroThundr3007730/01-root-openssl.conf
OpenSSL root and intermediate CA configurations
# OpenSSL root CA configuration file.
[ ca ]
default_ca = ca_default
[ ca_default ]
dir = /etc/pki/CA/root-ca
certs = $dir/certs
crl_dir = $dir/crl
new_certs_dir = $dir/newcerts
@drconopoima
drconopoima / generate-internal-ca.md
Created March 14, 2022 20:52 — forked from brightzheng100/generate-internal-ca.md
How-to: Generate Internal CA

Create your CA database to keep track of signed certificates

$ mkdir private certs cnf csr crl
$ touch index.txt
$ echo 1000 > serial

Create Your OpenSSL Config File

# OpenSSL Root CA configuration file
# Copy to /root/ca/openssl_root.cnf
[ ca ]
default_ca = CA_default
[ CA_default ]
# Directory and file locations.
dir = /root/ca
certs = $dir/certs
#!/bin/bash
mkdir ~/SSLCA/root/
cd ~/SSLCA/root/
openssl genrsa -aes256 -out rootca.key 2048
openssl req -sha256 -new -x509 -days 1826 -key rootca.key -out rootca.crt
touch certindex
echo 1000 > certserial
echo 1000 > crlnumber
echo '
[ ca ]
@drconopoima
drconopoima / .gitlab-ci.yml
Created March 15, 2022 11:31 — forked from LukeMathWalker/.gitlab-ci.yml
GitLab CI - Rust setup
image: "rust:latest"
default:
before_script:
- rustc --version
- cargo --version
stages:
- test
@drconopoima
drconopoima / audit-on-push.yml
Created March 15, 2022 11:55 — forked from LukeMathWalker/audit.yml
GitHub Actions - Rust setup
name: Security audit
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit:
runs-on: ubuntu-latest
steps: