Skip to content

Instantly share code, notes, and snippets.

View needcaffeine's full-sized avatar

Vic Vijayakumar needcaffeine

View GitHub Profile
#########################
# Base image
#########################
FROM node:bookworm-slim AS base
WORKDIR /site
# Install latest security upgrades, and crucial runtimes.
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
# given a bunch of folders which are years, and contents which are files of the form YYYY-mm-dd - name - $1234.56,
# this script returns a sum of totals by year
import os
totals = {}
for year in os.listdir('.'):
if os.path.isdir(year) and not year.startswith('.'):
total = 0
@needcaffeine
needcaffeine / Python3 Virtualenv Setup.md
Created January 2, 2018 06:41 — forked from pandafulmanda/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: