Skip to content

Instantly share code, notes, and snippets.

View alexgurrola's full-sized avatar
🔮
Building the Future of Technology

Alex Gurrola alexgurrola

🔮
Building the Future of Technology
View GitHub Profile
@alexgurrola
alexgurrola / install-nginx-1.25.2.sh
Last active February 7, 2025 15:47
ubuntu: compile and install nginx 1.25.2
#!/bin/bash
# NOTE: This requires openssl to be installed via https://gist.github.com/alexgurrola/db0736378d565bab3b2e35a66e7d9e50 to provide the necessary sources to install nginx with the latest openssl
# usage: wget https://gist.githubusercontent.com/alexgurrola/4f7fc9a317a68a3895858e24c83ea437/raw/install-nginx-1.25.2.sh && chmod +x install-nginx-1.25.2.sh && ./install-nginx-1.25.2.sh
# display current version
nginx -V
# install prerequisites
sudo apt update
@alexgurrola
alexgurrola / install-openssl-3.1.3.sh
Last active October 6, 2023 00:29
ubuntu: compile and install openssl 3.1.3
#!/bin/bash
# usage: wget https://gist.githubusercontent.com/alexgurrola/db0736378d565bab3b2e35a66e7d9e50/raw/install-openssl-3.1.3.sh && chmod +x install-openssl-3.1.3.sh && ./install-openssl-3.1.3.sh
# display current version
openssl version
# install prerequisites
sudo apt update
sudo apt install build-essential checkinstall zlib1g-dev -y
@alexgurrola
alexgurrola / frr.sh
Created April 11, 2023 20:23
FRR install script for Ubuntu/Debian
#!/bin/bash
# declare version
FRRVER="frr-stable"
# install prerequisites
sudo apt update && sudo apt install apt-transport-https gnupg
# add gpg key
curl -s https://deb.frrouting.org/frr/keys.asc | sudo apt-key add -
@alexgurrola
alexgurrola / lelastic.sh
Created April 5, 2023 22:28
configure shared ip and install lelastic
#!/bin/bash
# add ip to system
host=$(sudo hostname | cut -d'.' -f1)
sudo vim /etc/network/interfaces.d/$host
sudo ifdown lo && sudo ip addr flush lo && sudo ifup lo
# install lelastic
version=v0.0.6
curl -LO https://github.com/linode/lelastic/releases/download/$version/lelastic.gz
@alexgurrola
alexgurrola / cookie.js
Created November 3, 2022 21:02
Cookie Editor Script for Tamper Monkey
from __future__ import with_statement
import random
def create_chain(file_paths):
word_counter = {}
previous_word = ""
for path in file_paths:
with open(path) as file:
for line in file:
words = line.split(" ")
@alexgurrola
alexgurrola / Private-pypi-howto
Created February 18, 2019 21:30 — forked from Jaza/Private-pypi-howto
Guide for how to create a (minimal) private PyPI repo, just using Apache with directory autoindex, and pip with an extra index URL.
*
@alexgurrola
alexgurrola / git_branch_naming.md
Created February 18, 2019 21:29 — forked from revett/git_branch_naming.md
Git Branch Naming Conventions

<type>/<name>

<type>

bug    - Code changes linked to a known issue.
feat   - New feature.
hotfix - Quick fixes to the codebase.
junk   - Experiments (will never be merged).

Keybase proof

I hereby claim:

  • I am alexgurrola on github.
  • I am alexgurrola (https://keybase.io/alexgurrola) on keybase.
  • I have a public key ASD64RxJLBq6L3npUfV7nmdMMPs2i-dF15UfMsCglg4FuQo

To claim this, I am signing this object: