Skip to content

Instantly share code, notes, and snippets.

View Callisto13's full-sized avatar
🌊

Claudia Callisto13

🌊
View GitHub Profile
@Callisto13
Callisto13 / instructions.md
Last active July 27, 2023 10:41
Pure1 API test

Using this with the Pure1 API

These are linux instructions, bluescreens you are on your own.

  1. Create a private key openssl genrsa -out private.pem
  2. Create a public key openssl rsa -in private.pem -outform PEM -pubout -out public.pem
  3. Log into PureOne, go to Administration, API Registration and fill in the details: paste in your public key and select Viewer role
  4. Copy the generated Application ID
  5. Execute the binary: ./pure1 --app-id APP_ID --private-key PATH_TO_KEY --resource RESOURCE_NAME
@Callisto13
Callisto13 / main.tf
Last active July 14, 2023 12:40
tunnel-demo
terraform {
required_providers {
equinix = {
version = "~> 1.11.1"
source = "equinix/equinix"
}
}
}
provider "equinix" {
# Title above here
# Use 50 characters maximum.
# Do not use a sentence-ending period.
#
# Prefixes:
#
# bump = bump version
# chore(subtype) = chore
# docs = documentation
# feat = new feature
@Callisto13
Callisto13 / README.md
Last active November 16, 2022 14:32
Set up a new repo with preferred labels

Script using https://github.com/clok/ghlabels to apply preferred labels to new repos, or update existing ones.

Usage:

./labels.sh -c labelcfg.yaml \
  -r <org>/<name> \
  -r <user/name>
@Callisto13
Callisto13 / installables.sh
Last active May 29, 2023 13:33
Script to install things (kind, docker, clusterctl, kubectl) ready to run CAPI in kinD
#!/bin/bash -ex
mkdir -p $HOME/installables
pushd $HOME/installables
wget https://github.com/kubernetes-sigs/kind/releases/download/v0.13.0/kind-linux-amd64
chmod +x ./kind-linux-amd64
mv ./kind-linux-amd64 /usr/local/bin/kind
kind --version

Install instructions for masters-of-cats/a-new-hope NeoVim config.

Install required packages

Mac

brew install python3 python@2 neovim
pip install neovim
" to use this file, add the following line
" within the 'plug' section of ~/.config/nvim/init.vim
"
" silent source ~/.vimrc.local.plugins
Plug 'arzg/vim-corvine'
Plug 'scwood/vim-hybrid'
" to use this .vimrc add the following line at
" the bottom of ~/.config/nvim/init.vim
"
" silent source ~/.vimrc
set nowrap
set noswapfile
set background=dark
set colorcolumn=80
# Little bits
set -g mouse on
set -g prefix C-Space
bind r source-file ~/.tmux.conf
bind-key C-Space last-window
set -g base-index 0
# linux only
# set-option -ga terminal-overrides ",xterm-256color:Tc"
@Callisto13
Callisto13 / inotify_test.c
Created October 13, 2019 14:14
Based on the demo_inotify.c program by Michael Kerrisk
#include <sys/inotify.h>
#include <limits.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int
main(int argc, char *argv[])
{
int inotifyFd, wd, rv, j;