Skip to content

Instantly share code, notes, and snippets.

View squeedee's full-sized avatar
💃
Choreographer to the stars!

Rasheed Abdul-Aziz squeedee

💃
Choreographer to the stars!
View GitHub Profile
@squeedee
squeedee / 1.Readme.MD
Last active May 12, 2023 19:46
Adding your ssh key to lastpass

Setup

  1. Install lpass, the last pass command line tool
brew install lastpass-cli --with-pinentry
  1. Create a passphrase encrypted key and make sure you put the public key where you need it, eg: github
@squeedee
squeedee / blueprints.yaml
Last active June 27, 2022 15:31 — forked from sclevine/blueprints.yaml
blueprints
apiVersion: carto.run/v1alpha1
kind: ClusterBlueprint
metadata:
name: web-supplychain
spec:
outputTypeRef:
name: image
outputs:
- name: digest
@squeedee
squeedee / 00-gitops-sc.yml
Created February 22, 2022 17:17 — forked from jwntrs/00-gitops-sc.yml
Typed supply chains (ClusterSourceSupplyChain, ClusterImageSupplyChain, ClusterConfigSupplyChain)
apiVersion: carto.run/v1alpha1
kind: ClusterSupplyChain
metadata:
name: gitops-supply-chain
spec:
selector:
matchLabels:
workload-type: web
matchFields:
- {key: ".spec.target", operation: In, value: ["gitops"]}
@squeedee
squeedee / can_debug.bash
Created September 24, 2021 18:54
Code as a script but with re-entrant/debug access to functions
#!/usr/bin/env bash
# usages:
# As a script:
# $ ./can_debug.bash
# > you are Rasheed Abdul-Aziz
# As a library of functions:
# $ source can_debug.bash
# $ say_my_name
# > usage: say_my_name <your-name-here>
{
"release": {
"version": "0.3.52",
"release_type": "Developer Release",
"release_date": "2019-2-13",
"eula_slug": "pivotal_beta_eula",
"description": "The ISV CI team uses these files to test behaviour,\nboth manually and in our enemy tests\n",
"availability": "Admins Only",
"release_notes_url": "https://github.com/cf-platform-eng/test-pas-tiles/app-only"
},
@squeedee
squeedee / gist:da68695120c9a139a240fa85c358d2ab
Created May 22, 2020 21:53
render webpack application.erb
class LayoutRenderer
include ActionView::Helpers
include Webpacker::Helper
def csp_meta_tag;
end
end
namespace :webpacker do
@squeedee
squeedee / Rakefile
Created March 8, 2020 05:20
Webpack dev server
namespace :server do
desc "Start the webpack dev server"
task :webpack do
system "./bin/webpack-dev-server"
end
desc "Start the rails dev server"
task :rails do
system "rails server"
end
@squeedee
squeedee / Capybara.md
Last active March 5, 2020 03:03 — forked from tomas-stefano/Capybara.md
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
@squeedee
squeedee / print-target-inputs.sh
Created August 8, 2019 21:01
Tool to print the evaluated inputs to a Makefile target - great for testing your makefile `$(shell find ....)` commands
target="${1:-you forgot a target}"
echo "Target is ${target}"
make -np ${target} | grep -e "^${target}:"
@squeedee
squeedee / add-github-ssh-key.sh
Last active March 6, 2019 15:11
Script to add your github ssh key to any github requests. Great for concourse tasks with private golang modules.
#!/usr/bin/env bash
if [[ -z "${GITHUB_KEY}" ]] ; then
echo "GITHUB_KEY not defined"
exit 1
fi
mkdir -p $HOME/.ssh
chmod 700 $HOME/.ssh
echo "${GITHUB_KEY}" > $HOME/.ssh/id_github