Skip to content

Instantly share code, notes, and snippets.

View fmquaglia's full-sized avatar
🎯
Focusing

Fabricio Quagliariello fmquaglia

🎯
Focusing
  • Ciudad Autónoma de Buenos Aires, Argentina
View GitHub Profile
Lab 1, step 8
argocd app create roar-deploy-k8s --repo https://github.com/brentlaster/roar-deploy-k8s --path . --dest-server $CLUSTER_IP --dest-namespace roar
Lab 3, step 3
argocd repo add [email protected]:/git/repos/roar-k8s-helm.git --ssh-private-key-path ~/.ssh/id_rsa
Lab 4, step 9
argocd proj create jenkins-proj -d https://10.0.2.15:8443,* -s [email protected]:/git/repos/roar-min-deploy.git
Lab 4, step 11
@johnleung8888
johnleung8888 / c2w2_assignment.ipynb
Last active October 24, 2023 17:13
C2W2_Assignment.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@TheZoc
TheZoc / Setting up guide for ArchLinux on Raspberry Pi.md
Last active July 30, 2025 11:27
This is a guide to setup Arch Linux in Raspberry Pi 4, using macOS as the auxiliary system.

Raspberry Pi Setup Guide

This guide will use either a macOS or an ArchLinux base system, to prepare a microSD card with Arch Linux for Raspberry Pi.

If someone managed to do the initial setup using Windows, please let me know, so I can add to this guide.

This guide will be verbose at times for some simple tasks. This is intended to help people just starting out, so it's not confusing. If something confuses you, let me know and I'll try my best to answer it.

@romixch
romixch / auth0-spa-js.tsx
Created February 5, 2020 21:33
Auth0: auth0-spa-js.js translated to Typescript
import React, { useState, useEffect, useContext, FC } from "react";
import createAuth0Client from "@auth0/auth0-spa-js";
interface Auth0ProviderProps {
children: JSX.Element;
auth0Options: Auth0ClientOptions;
onRedirectCallback: Function;
}
export interface Auth0ContextType {
@mayneyao
mayneyao / notion2blog.js
Last active June 19, 2025 19:02
Notion.so > Personal Blog | custom domain + disqus comment
const MY_DOMAIN = "agodrich.com"
const START_PAGE = "https://www.notion.so/gatsby-starter-notion-2c5e3d685aa341088d4cd8daca52fcc2"
const DISQUS_SHORTNAME = "agodrich"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
import {ValidationArguments, ValidatorConstraint, ValidatorConstraintInterface } from 'class-validator';
const REGEX = /^[A-Z]/;
const MESSAGE = 'Text ($value) is does not start with capital letter!';
@ValidatorConstraint({ name: 'capitalLetter', async: false })
export default class CapitalLetterValidator implements ValidatorConstraintInterface {
public validate(text: string) {
return REGEX.test(text);
}
@mrmartineau
mrmartineau / stimulus.md
Last active May 16, 2025 13:02
Stimulus cheatsheet
@eugenehp
eugenehp / arch_vbox.md
Last active August 3, 2025 02:26 — forked from dannycastonguay/arch_vbox.md
Installing Arch Linux on VirtualBox for beginners

Installing Arch Linux on VirtualBox

I recently upgraded to a new system, and instead of running Arch Linux natively I've decided to run it inside VirtualBox on Windows 10. Below I note down the steps I took, which closely follow the excellent wiki pages of archlinux. But along the way, I also noted a few other steps steps I took to make this system very comfortable, which you'll have to figure out for yourself if you like them or not!

Mount Arch Linux on VirtualBox

I couldn't find a section on the Arch wiki where these steps are listed, perhaps they are obvious, but since I think I know what I'm doing I'm just going off script here (what a great start!).

  1. Start VirtualBox and click New
  2. Name your machine, preferably with a descriptive but memorable name (e.g., exultant carpenter), select type Linux, and version Arch Linux (64 bit) (unless you downloaded the 32 bit version. A note on this, I recall in the past that for some machi
@mcnamee
mcnamee / bitbucket-pipelines.yml
Last active December 14, 2023 03:57
Bitbucket Pipelines - Deploy via FTP to shared hosting
# Installation ---
# 1. In Bitbucket, add FTP_USERNAME, FTP_PASSWORD and FTP_HOST as environment variables.
# 2. Commit this file (bitbucket-pipelines.yml) to your repo (in the repo root dir)
# 3. From Bitbucket Cloud > Commits > Commit Number > Run Pipeline > Custom:Init (this will
# push everything and initialize GitFTP)
#
# Usage ---
# - On each commit to master branch, it'll push all files to the $FTP_HOST
# - You also have the option to 'init' (see 'Installation' above) - pushes everything and initialises
# - Finally you can also 'deploy-all' (from Bitbucket Cloud > Commits > Commit Number > Run Pipeline > Custom:deploy-all)
@lots0logs
lots0logs / epanel-integration-body.html
Created March 15, 2016 20:52
WordPress :: Divi Builder :: Background Videos :: Mute a video's audio.
<script>
(function($) {
$(document).ready(function() {
var $videos = $('.et_pb_section_video_bg video');
$videos.each(function() {
var $video = $(this)[0];
$video.setMuted();
});