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 / 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

This file has been truncated, but you can view the full file.
$ sudo dtrace -lP fbt
ID PROVIDER MODULE FUNCTION NAME
181138 fbt com.apple.iokit.IOSCSIBlockCommandsDevice _ZN22IOBlockStorageServices9MetaClassC1Ev [IOBlockStorageServices::MetaClass::MetaClass()] entry
181139 fbt com.apple.iokit.IOSCSIBlockCommandsDevice _ZN22IOBlockStorageServices9MetaClassC1Ev [IOBlockStorageServices::MetaClass::MetaClass()] return
181140 fbt com.apple.iokit.IOSCSIBlockCommandsDevice _ZN22IOBlockStorageServicesC2EPK11OSMetaClass [IOBlockStorageServices::IOBlockStorageServices(OSMetaClass const*)] entry
181141 fbt com.apple.iokit.IOSCSIBlockCommandsDevice _ZN22IOBlockStorageServicesC2EPK11OSMetaClass [IOBlockStorageServices::IOBlockStorageServices(OSMetaClass const*)] return
181142 fbt com.apple.iokit.IOSCSIBlockCommandsDevice _ZN22IOBlockStorageServicesC1EPK11OSMetaClass [IOBlockStorageServices::IOBlockStorageServices(OSMetaClass const*)] entry
181143 fbt com.apple.iokit.IOSCSIBlockCommandsDevice _ZN22IOBl
Bhyve-HandleProtocol: Copying DevPath: PciRoot(0x0)/Pci(0x4,0x0)/HD(1,MBR,0x00000000,0x40,0x3C0) [64]
probing: pc0 mem[640K 999M 16M 6M 64K]
disk:Bhyve-HandleProtocol: Copying DevPath: PciRoot(0x0)/Pci(0x4,0x0) [22]
 hd0
>> OpenBSD/amd64 BOOTX64 3.30
boot>
cannot open hd0a:/etc/random.seed: No such file or directory
booting hd0a:/bsd: 3343316+1410944+2413568+0+598016=0x76a238
entry point at 0xf001000 [7205c766, 34000004, 24448b12, 94b0a304]

XNU build blog

  • Build dtrace
    • mkdir -p obj sym dst
    • $ xcodebuild install -target ctfconvert -target ctfdump -target ctfmerge ARCHS="x86_64" SRCROOT=$PWD OBJROOT=$PWD/obj SYMROOT=$PWD/sym DSTROOT=$PWD/dst
  • sudo xcodebuild -license

7.3.1

  • hfs: