Skip to content

Instantly share code, notes, and snippets.

@pnasrat
pnasrat / blk_completion_2011-2017.Rmd
Created Jun 13, 2020
Modified IPEDS completion data script for Anthropology PhDs
View blk_completion_2011-2017.Rmd
---
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).
View parseCourseCatalogs.py
#!/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
ICA Conference hashtags
View hashtags.md
@pnasrat
pnasrat / minishift-containers.md
Last active Oct 20, 2019
Exploring minishift
View minishift-containers.md
$ 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 Jan 27, 2019
Wellesley Anthropology Lecturer 2019
View wellesley-anthro-job.md

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

View fbt-provider.txt
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
View obenbsd-hyperkit.md
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]
View build-xnu.md

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:
@pnasrat
pnasrat / xhyve-freebsd-tutorial-1.md
Created Jun 23, 2016 — forked from tanb/xhyve-freebsd-tutorial-1.md
FreeBSD running on xhyve tutorial. (Appendix: Resize image with qemu. Create FreeBSD VM with qemu).
View xhyve-freebsd-tutorial-1.md

TL;DR

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

Requisites

@pnasrat
pnasrat / debugging-tools.md
Created Jun 20, 2016
RC Linux/UNIX debugging tool notes
View debugging-tools.md
  • ls
  • ps
  • pgrep
  • strace - used to trace system (kernel) calls
  • ltrace - used to trace library (C)
  • /proc filesystem - lots of information
  • /proc/
  • /proc//fd
  • lsof - list of open files including network
  • gdb - briefly