Skip to content

Instantly share code, notes, and snippets.

@pnasrat
pnasrat / minikube-logs.diff
Created December 6, 2023 20:07
Diff of minikube logs with my PR
--- logs-old.txt 2023-12-06 15:03:50
+++ logs.txt 2023-12-06 15:04:03
@@ -1,14 +1,14 @@
-*
-* ==> Audit <==
-* |---------|------|----------|---------|---------|---------------------|---------------------|
+
+==> Audit <==
+|---------|------|----------|---------|---------|---------------------|---------------------|
| Command | Args | Profile | User | Version | Start Time | End Time |
@pnasrat
pnasrat / VICTOR-notebook-run-5522214201.log
Last active July 11, 2023 18:20
VICTOR-notebook failed run 2023-07-11
This file has been truncated, but you can view the full file.
build-and-push Build and push the image to quay.io 2023-07-11T16:01:36.4150201Z ##[group]Run jupyterhub/repo2docker-action@master
build-and-push Build and push the image to quay.io 2023-07-11T16:01:36.4150548Z with:
build-and-push Build and push the image to quay.io 2023-07-11T16:01:36.4151044Z DOCKER_USERNAME: ***
build-and-push Build and push the image to quay.io 2023-07-11T16:01:36.4151507Z DOCKER_PASSWORD: ***
build-and-push Build and push the image to quay.io 2023-07-11T16:01:36.4151784Z DOCKER_REGISTRY: quay.io
build-and-push Build and push the image to quay.io 2023-07-11T16:01:36.4152412Z LATEST_TAG_OFF: true
build-and-push Build and push the image to quay.io 2023-07-11T16:01:36.4152680Z REPO_DIR: /srv/repo
build-and-push Build and push the image to quay.io 2023-07-11T16:01:36.4152977Z IMAGE_NAME: volcanocyber/victor-notebook
build-and-push Build and push the image to quay.io 2023-07-11T16:01:36.4153419Z REPO2DOCKER_EXTRA_ARGS: --Repo2Docker.base_image=docker.io/library/buildpack-deps:jam
@pnasrat
pnasrat / gist:8527882
Created January 20, 2014 19:59
cgroups stuff
11:hugetlb:/lxc/384d8595536905a12d3c4f1173e81ff0a0bb3ce3a8e4298510663d91a2420384
10:perf_event:/lxc/384d8595536905a12d3c4f1173e81ff0a0bb3ce3a8e4298510663d91a2420384
9:blkio:/lxc/384d8595536905a12d3c4f1173e81ff0a0bb3ce3a8e4298510663d91a2420384
8:net_cls:/lxc/384d8595536905a12d3c4f1173e81ff0a0bb3ce3a8e4298510663d91a2420384
7:freezer:/lxc/384d8595536905a12d3c4f1173e81ff0a0bb3ce3a8e4298510663d91a2420384
6:devices:/lxc/384d8595536905a12d3c4f1173e81ff0a0bb3ce3a8e4298510663d91a2420384
5:memory:/lxc/384d8595536905a12d3c4f1173e81ff0a0bb3ce3a8e4298510663d91a2420384
4:cpuacct,cpu:/lxc/384d8595536905a12d3c4f1173e81ff0a0bb3ce3a8e4298510663d91a2420384
3:cpuset:/lxc/384d8595536905a12d3c4f1173e81ff0a0bb3ce3a8e4298510663d91a2420384
@pnasrat
pnasrat / xhyve-freebsd-tutorial-1.md
Created June 23, 2016 16:06 — forked from tanb/xhyve-freebsd-tutorial-1.md
FreeBSD running on xhyve tutorial. (Appendix: Resize image with qemu. Create FreeBSD VM with qemu).

TL;DR

  • Create 5GB FreeBSD image.
  • Install FreeBSD on xhyve.
  • Mount host directory.

Requisites

@pnasrat
pnasrat / blk_completion_2011-2017.Rmd
Created June 13, 2020 20:22
Modified IPEDS completion data script for Anthropology PhDs
---
title: "IPEDS Completion Data - Black Students in Anthropology - 2011-2017"
author: "Pris Nasrat - based off work by Clara Bicalho"
date: "6/13/2020"
output: pdf_document
---
Source: [IPEDS](https://nces.ed.gov/ipeds/).
More details on data base [here](https://surveys.nces.ed.gov/ipeds/VisInstructions.aspx?survey=10&id=30080&show=all).
Original analysis by Clara Bicalho [here](https://github.com/clarabicalho/Diversity_PS).
#!/usr/bin/env python
# coding: utf-8
from bs4 import BeautifulSoup
import csv
import glob
import re
import json
def parseFile(fn):
@pnasrat
pnasrat / hashtags.md
Last active May 19, 2020 13:29
ICA Conference hashtags
@pnasrat
pnasrat / minishift-containers.md
Last active October 20, 2019 15:22
Exploring minishift
$ docker ps --no-trunc --format "table {{.Names}}: {{.Command}}"
NAMES               COMMAND
k8s_webconsole_webconsole-8c4457989-9s7pf_openshift-web-console_cfb56ba5-f29b-11e9-a07d-525400e30ba7_0: "/usr/bin/origin-web-console --audit-log-path=- --config=/var/webconsole-config/webconsole-config.yaml -v=0"
k8s_POD_webconsole-8c4457989-9s7pf_openshift-web-console_cfb56ba5-f29b-11e9-a07d-525400e30ba7_0: "/usr/bin/pod"
k8s_operator_openshift-web-console-operator-57986c9c4f-cz4sp_openshift-core-operators_bcb06889-f29b-11e9-a07d-525400e30ba7_0: "hypershift experimental openshift-webconsole-operator --config=/var/run/configmaps/config/operator-config.yaml -v=0"
k8s_POD_openshift-web-console-operator-57986c9c4f-cz4sp_openshift-core-operators_bcb06889-f29b-11e9-a07d-525400e30ba7_0: "/usr/bin/pod"
k8s_c_openshift-controller-manager-rr4gv_openshift-controller-manager_add73325-f29b-11e9-a07d-525400e30ba7_0: "hypershift openshift-controller-manager --config=/etc/origin/master/master-config.yaml --v=0"
k8s_POD_openshift
@pnasrat
pnasrat / wellesley-anthro-job.md
Created January 27, 2019 18:58
Wellesley Anthropology Lecturer 2019

The Department of Anthropology at Wellesley College invites applications for a two-year visiting lecturer position (potentially renewable), beginning in August, 2019. The candidate will be responsible for five courses split across two semesters, including an introductory course in socio-cultural anthropology, and an advanced undergraduate course on the theoretical development of the field. Additional teaching assignments are open, but will ideally work with and complement existing departmental offerings (https://www.wellesley.edu/anthropology). Regional/topical focus is open. The position is eligible for full Wellesley College employee benefits. Applicants should plan on having a completed Ph.D. prior to the start of their appointment.

Wellesley College is an Affirmative Action/Equal Opportunity Employer, and we are committed to increasing the diversity of the college community and the curriculum. As a women's liberal arts college, Wellesley strives to fully engage our undergraduate students in the joy, possibi