Skip to content

Instantly share code, notes, and snippets.

@rcuza
rcuza / goals.py
Last active November 26, 2020 21:03
Jupyter Plugin for Pants v2.0.0
# Copyright 2020 Chartbeat.
# Licensed under the Apache License, Version 2.0.
import logging
from pathlib import PurePath
from textwrap import dedent
from pants.backend.python.util_rules.pex import (
Pex,
@rcuza
rcuza / pants-plugin-v1-jupyter.md
Last active October 13, 2020 01:57
Pants Plugin for Jupyter Repl for v1 Engine. Works with v1.26.

This code is shared under the Apache License, copyright Chartbeat.

Jupyter Pants Plugin

The organization of the plugin directory is as follows:

jupyter
├── BUILD
├── __init__.py

Keybase proof

I hereby claim:

  • I am rcuza on github.
  • I am rcuza (https://keybase.io/rcuza) on keybase.
  • I have a public key ASC_YmbeGRLJWCnLkU1yGaUKDCT07g5fEm3BSS644I8Qngo

To claim this, I am signing this object:

@rcuza
rcuza / Looking for environment
Created September 18, 2018 20:29
What system files use /etc/environment?
vagrant@ubuntu-bionic:~$ sudo grep -lR "/etc/environment" /etc/*
/etc/init.d/cron
/etc/init.d/lxd
/etc/pam.d/cron
/etc/pam.d/login
/etc/pam.d/su
/etc/pam.d/sshd
/etc/rc0.d/K01lxd
/etc/rc1.d/K01lxd
/etc/rc2.d/S01lxd
@rcuza
rcuza / check-aws-account.yml
Last active May 31, 2017 02:16
Ansible Playbook for Verifying You Are Using the Expected AWS Account
# Problem: Using the AWS crenditals for one environment with the wrong
# inventory and variables
# Solution: Check that your credentials access the expected AWS account
#
# In your `group_vars` set `aws_account_number` to the AWS account number
# for your inventory/environment. Add these `pre_tasks` to your playbook.
# If you forget to switch credentials before running Ansible, you have a
# safety check
---
- name: check aws account numner