Skip to content

Instantly share code, notes, and snippets.

View alanmatiasdev's full-sized avatar

Alan Matias alanmatiasdev

View GitHub Profile
@alanmatiasdev
alanmatiasdev / converter.sh
Created July 15, 2024 11:11
Convert Woff2 to TTF
#!/bin/bash
if ! command -v woff2_decompress &> /dev/null
then
echo "woff2_decompress could not be found"
exit
fi
for file in *.woff2; do
@alanmatiasdev
alanmatiasdev / job.sh
Created November 3, 2023 14:57
argocd-ecr-rotating-key
#!/bin/sh
namespaces="${NAMESPACES}"
if [ -z "$NAMESPACES" ]; then
namespaces="default"
fi
if [ -z "$SECRET_NAME" ]; then
SECRET_NAME=regcred
fi
@alanmatiasdev
alanmatiasdev / private_fork.md
Created September 12, 2023 08:33 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@alanmatiasdev
alanmatiasdev / get_composer_deps.py
Created September 5, 2023 22:49 — forked from yebt/get_composer_deps.py
This script was created as an helps to recover the require dependencies inside vendor directory of project, if you lost the main composer.json
#!/bin/python
# -*- coding: utf-8 -*-
import json
import sys
# Constant vars
if len(sys.argv) != 2:
print('Error!! -- No file specified ')
print('\t get_composer_deps.py <path/to/vendor/composer/installed.json>')
@alanmatiasdev
alanmatiasdev / noip2.service
Created September 8, 2021 22:59 — forked from NathanGiesbrecht/noip2.service
Systemd Service file for no-ip.com dynamic ip updater
# Simple No-ip.com Dynamic DNS Updater
#
# By Nathan Giesbrecht (http://nathangiesbrecht.com)
#
# 1) Install binary as described in no-ip.com's source file (assuming results in /usr/local/bin)
# 2) Run sudo /usr/local/bin/noip2 -C to generate configuration file
# 3) Copy this file noip2.service to /etc/systemd/system/
# 4) Execute `sudo systemctl daemon-reload`
# 5) Execute `sudo systemctl enable noip2`
# 6) Execute `sudo systemctl start noip2`