Skip to content

Instantly share code, notes, and snippets.

@sshastri
sshastri / portugal.md
Created September 2, 2023 12:26
Portugal Recs from Mindy

Okay, here are some things. Let me know if there's anything more specific you're looking for recommendations for!

  1. Pasteis de Belem. The most delicious pastries in the world. If you google anything about Lisbon, this will be the first on the list. What you need to know though is that when you get there, it looks small and has a long line coming out of it. That’s usually the line to order things to go. Look for a separate sign/door that will take you to the line inside to get a table. It’s actually very big inside and you’ll enjoy taking your time sitting down and eating the pastries. The signature pastel de belem or pastel de nata is hands down the best. I eat at least 3 every time I go
  2. Walking by the river is really nice. I would start either at the Torre de Belem or this monument and walk towards the bridge. If you walk long enough you’ll get to the the [plaza downtown](https://g
<style>
/*
Lightbox credit: Alex Rosenkranz
https://gist.github.com/arosenkranz/3359c65fbfda36f17f622ff624b74aea
*/
.lightbox {
display: none;
position: fixed;
justify-content: center;
@sshastri
sshastri / import.md
Created May 11, 2021 19:52
terraform import example
  1. Setup a .tf file

# main.tf

provider "aws" {
    region = "us-east-1"
}
# from HashiCorp website
# Manage auth methods broadly across Vaults
path "auth/*"
{
capabilities = ["create", "read", "update", "delete", "list", "sudo"]
}
# Create, update, and delete auth methods
path "sys/auth/*"
{
@sshastri
sshastri / NOLA.md
Created January 5, 2020 18:27
New Orleans

Don't know where you and your team will be staying but one thing to keep in mind is that New Orleans is more than just the French Quarter. By all means go explore and enjoy the FQ; it's beautiful and there's so much life and character. But it's worthwhile to explore outside of it too! So my recs are all over the place. There are a million "what to do in New Orleans" lists out there that are probably worth checking out (especially from Eater), but here's some stuff I like to do:

Food There are many excellent happy hours and great deals throughout the city, so bear that in mind!

  • Coop's Place: FQ Honestly the only place in the quarter I actively go to eat at. Quarter restaurants come off as real touristy with tourist prices, but this one is legit (despite the line of people, mostly tourists, often found going out the door, haha). Grungy, cash only, very tight space, almost guaranteed to have to wait in line (especially if in a bigger group), and the waitstaff has no patience for anyone's shit. But they

Keybase proof

I hereby claim:

  • I am sshastri on github.
  • I am sshastri (https://keybase.io/sshastri) on keybase.
  • I have a public key whose fingerprint is F8C2 757B 7199 47C3 729D 06AB 3A1A A8BD B825 9CDC

To claim this, I am signing this object:

require 'date'
Facter.add(:cert_expire) do
confine :kernel => 'Linux'
setcode do
hostname = Facter.value(:hostname)
info = Facter::Core::Execution.execute("echo | openssl s_client -showcerts -connect #{hostname}:443 2>/dev/null | openssl x509 -noout -dates")
expire_info = {}
dates = info.split("\n")
# - Warning if pp_role not defined
# - Check to see if the role exists
# - Fall back to using the base profile
node default {
# Save the role fact into a local variable
$role = $facts['role']
case $role {
default: {
@sshastri
sshastri / get_environment.sh
Created August 10, 2018 17:12
environment.conf script
#! /bin/sh
if (( $# != 1 )); then
echo "Call this script with the name of the environment"
echo "Example: ${0} production"
exit 1
fi
CODEDIR='/etc/puppetlabs/code/environments'
CODESTAGE='/etc/puppetlabs/code-staging/environments'
@sshastri
sshastri / docker-compose.yml
Created June 12, 2018 22:13
docker-compose.yml
version: '2.1'
services:
cd4pe:
container_name: cd4pe
ports:
- "8080:8080"
- "7000:7000"
- "8000:8000"
image: pcr-internal.puppet.net/pipelines/pfi:latest
networks: