Skip to content

Instantly share code, notes, and snippets.

View mvxt's full-sized avatar
😀
Building

Michael Thanh mvxt

😀
Building
View GitHub Profile
@mvxt
mvxt / README.md
Last active April 29, 2022 20:00
Example scripts for purging parts of FireHydrant's Service Catalog

Purge FireHydrant Services

This script shows an example of tapping the FireHydrant API to fetch the UUIDs of all services in the catalog and then making additional API calls to delete them.

This was tested on macOS Monterey v12.3.1 on a 2021 14" MacBook Pro with an M1 Pro chip. Since it's UNIX, there may be some incompatibilies with the curl and jq commands on other operating systems like Linux or Windows. Beware!!

@mvxt
mvxt / example.html
Created April 7, 2021 20:24
Custom Fields in Auth0
<!-- Other HTML above -->
<script src="https://cdn.auth0.com/js/lock/11.27/lock.min.js"></script>
<script>
var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
auth: {
redirectUrl: config.callbackURL,
responseType: (config.internalOptions || {}).response_type ||
(config.callbackOnLocationHash ? 'token' : 'code'),
params: config.internalOptions
},
@mvxt
mvxt / inode_increase.sh
Last active December 15, 2020 21:44
Increasing number of inodes on DLC volume for machine executor, CircleCI
# Steps to reformat DLC drive and add more inodes. Should increase number from ~3m to ~52m
# Copy the contents of this file to a bash script and execute the script in a run step
# Alternatively, copy the commands into a multi-line command in the CircleCI config
function reformat() {
# (2) Stop Docker daemon
# If using Docker 18+, then use `sudo systemctl stop docker` instead
sudo service docker stop
# (3) Unmount the device
@mvxt
mvxt / artifacts.py
Last active December 17, 2020 21:27
import base64
from datetime import datetime, timedelta
import http.client
import json
import os
import requests
import sys
###################
# MODIFY AS NEEDED

Keybase proof

I hereby claim:

  • I am mvxt on github.
  • I am mikeyvxt (https://keybase.io/mikeyvxt) on keybase.
  • I have a public key whose fingerprint is F542 16C2 8FF5 1D24 6449 67D6 6ECA 4B8E 5584 B66D

To claim this, I am signing this object:

@mvxt
mvxt / init.vim
Created May 29, 2018 15:52
neovim config file
" Plug (vim-plug) - plugin manager
" https://github.com/junegunn/vim-plug
" Basically: after adding a plug, just remember to run 'PlugInstall'
" This is best with neovim!
" https://neovim.io/
" http://nerditya.com/code/guide-to-neovim/
" Other helpful links:
" http://learnvimscriptthehardway.stevelosh.com/
" http://andrewradev.com/2011/08/06/making-vim-pretty-with-custom-colors/
" =====================================