Skip to content

Instantly share code, notes, and snippets.

View ptagr's full-sized avatar

Punit Agrawal ptagr

View GitHub Profile
@ptagr
ptagr / Dockerfile
Created September 28, 2017 01:39
Drone Dockerfile
FROM drone/drone:0.7.3
ADD rootfs.tar.xz /
# install Docker on Debian 9
# https://docs.docker.com/engine/installation/linux/docker-ce/debian/
RUN apt-get update
RUN apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
public class Item {
public Item(String name, int daysLeft, int quality) {
this.name = name;
this.daysLeft = daysLeft;
this.quality = quality;
}
public String name;
public int daysLeft;
@ptagr
ptagr / kubernetes_add_service_account_kubeconfig.sh
Last active October 3, 2019 18:20 — forked from innovia/kubernetes_add_service_account_kubeconfig.sh
Create a service account and generate a kubeconfig file for it - this will also set the default namespace for the user
#!/bin/bash
set -e
set -o pipefail
# Add user to k8s using service account, no RBAC (must create RBAC after this script)
if [[ -z "$1" ]] || [[ -z "$2" ]]; then
echo "usage: $0 <service_account_name> <namespace>"
exit 1
fi
@ptagr
ptagr / RH.md
Last active April 23, 2021 19:01
# Date Sold Quantity Proceeds Date Acquired Cost Basis Gain or Loss Wash Sale Loss Disallowed
1 10/21/20 23.872 9322.05 10/06/20 10277.85 -955.80
2 10/21/20 2 781.00 10/06/20 861.07 -80.07
3 10/21/20 1 390.50 10/06/20 470.57 -80.07
4 10/21/20 1 390.51 10/06/20 430.54 0 40.03