Skip to content

Instantly share code, notes, and snippets.

View fideloper's full-sized avatar
Working from home

Chris Fidao fideloper

Working from home
View GitHub Profile
fideloper / k8s.yaml
Created June 2, 2024 18:24
thats bait dot gif
apiVersion: v1
kind: Namespace
labels: ingress-nginx ingress-nginx
name: ingress-nginx
apiVersion: v1
automountServiceAccountToken: true
fideloper / SlackActionController.php
Created February 6, 2024 15:01
Verify Slack webhooks in Laravel
namespace App\Http\Controllers\Slack;
use App\Slack\Webhook;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
fideloper /
Last active July 15, 2024 17:59
Certbot on Ubuntu, wildcard subdomains via CloudFlare DNS challenge
# Used on Ubuntu 18.04 and 20.04
# Find instructions for other OSes here:
# Install Certbot via Snaps
sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
# Install DNS CloudFlare plugin
sudo snap set certbot trust-plugin-with-root=ok
fideloper /
Last active February 19, 2024 18:09
Microsoft Graph API - oAuth apps with PHP and JWT certification authentication

Microsoft Graph API - oAuth apps with PHP and JWT certification authentication

If you've ever wanted to create an oAuth style application with Microsoft, you might have felt this pain before.

In true Enterprise Microsoft Fashion™, there's a lot going on.

This will be a bit long because of that. I hope I haven't missed anything (but I'm sure I have)!

We'll be using PHP (Laravel in my case).

// File: twitterFollowerCuratorBot.php
// Created: May 2021
// License: MIT
fideloper /
Last active June 28, 2024 11:01
Find, format, and mount an AWS Ephemeral NVMe disk within ec2 in user data
#!/usr/bin/env bash
## This mounts a (single) ephemral NVMe drive in an EC2 server.
## It's meant to be run once, within user-data
## For EBS drives (non-ephemeral storage), see:

Each query in MySQL is running as its own transaction, assuming you didn't change this default configuration, and unless you're starting a transaction manually and running multiple deletes in that one transaction.

Because every query is a transaction, MySQL has to save the data being deleted in case of a rollback. Large deletes means saving a TON of data for that potential case.

Additionally, deletes cause a LOT of writes to the binary log. When the delete completes, the query/results of the delete are committed to the binary log,

fideloper / client.hcl
Created August 5, 2020 16:40
Nomad job spec for jippi/go-metadataproxy
# Nomad 0.12.0+ requires volumes to be enabled
# within the client configuration
plugin "docker" {
config {
volumes {
enabled = true

The pipeline could use a selection of pre-set features.


  1. Give the pipeline more polish by allowing users to "build" their pipeline (preset items they can run)
  2. Make Chipper feel more integrated with services such as AWS, Forge, Envoyer, Vapor
  3. Make it easier to script more complex items such as conditional actions, or creating build artifacts

It might be nice to have a way to have icons for each as well - PHP, NodeJS, Composer, Dusk, Vapor, etc etc etc.