Skip to content

Instantly share code, notes, and snippets.

View curiositycasualty's full-sized avatar
🗺️
Internet Explorer

Isa Farnik curiositycasualty

🗺️
Internet Explorer
View GitHub Profile
@curiositycasualty
curiositycasualty / keybase.md
Created September 24, 2021 21:53
keybase.md

Keybase proof

I hereby claim:

  • I am curiositycasualty on github.
  • I am if_then (https://keybase.io/if_then) on keybase.
  • I have a public key ASBYZU1YsNNYV8N-UtrIZMaIU1QbNNiWT6zaOMmBOp17-go

To claim this, I am signing this object:

#{package_vector},
Ncpus = #{new_resource.ncpus},
repos = c("CRAN" = "#{new_resource.cran_repo}"),
clean = #{new_resource.clean.to_s.upcase},
destdir = "#{new_resource.destdir}",
keep_outputs = TRUE,
method = "wget",
extra = " >/dev/null 2>&1 || true;
cd #{new_resource.destdir};
__wget() {
#!/usr/bin/env bash
# set -x
set -m
# bash strict mode
set -euo pipefail
max_workers=$(( $(nproc) * 2 ))
@curiositycasualty
curiositycasualty / teamcity-agent.service
Last active January 18, 2019 19:45 — forked from elmariofredo/teamcity-agent.service
systemd service files for running TeamCity (create in /usr/lib/systemd/system)
[Unit]
Description=TeamCity Build Agent
After=network.target
[Service]
Type=forking
RemainAfterExit=yes
User=teamcity
Group=users
PIDFile=/opt/teamcity-agent/logs/buildAgent.pid
In [1]: class Yay:
...: def __init__(self, ugh):
...: self.ugh = ugh,
...:
In [2]: y=Yay('yay')
In [3]: y.ugh
Out[3]: ('yay',)

Keybase proof

I hereby claim:

  • I am curiositycasualty on github.
  • I am wafflewiz (https://keybase.io/wafflewiz) on keybase.
  • I have a public key whose fingerprint is B351 DBA7 9AEC 8250 E369 4125 1031 5374 A7D2 37FD

To claim this, I am signing this object:

@curiositycasualty
curiositycasualty / parse_pbzx2.py
Created February 5, 2017 09:28 — forked from pudquick/parse_pbzx2.py
A pbzx stream decoder for the format found within Yosemite package payloads.
# v2 pbzx stream handler
# My personal writeup on the differences here: https://gist.github.com/pudquick/29fcfe09c326a9b96cf5
#
# Pure python reimplementation of .cpio.xz content extraction from pbzx file payload originally here:
# http://www.tonymacx86.com/general-help/135458-pbzx-stream-parser.html
#
# Cleaned up C version (as the basis for my code) here, thanks to Pepijn Bruienne / @bruienne
# https://gist.github.com/bruienne/029494bbcfb358098b41
import struct, sys
Python 2.7.5 (default, Nov 20 2015, 02:00:19)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a=set('yay')
>>> a.add('yay')
>>> a
set(['y', 'a', 'yay'])
>>> a.add('yay')
>>> a
set(['y', 'a', 'yay'])
@curiositycasualty
curiositycasualty / install_xcodes.bash
Created March 19, 2016 18:35
Install Xcode SDK major releases from Xcode 6.1.1 - 7.2.1 into a host's Xcode.app
#!/usr/bin/env bash
PREFIX='./xcodes'
DMGs=(xcode_6.1.1.dmg
Xcode_6.2.dmg
Xcode_6.3.2.dmg
Xcode_6.4.dmg
Xcode_7.0.1.dmg
Xcode_7.1.1.dmg
Xcode_7.2.1.dmg)
aaaaa
bbbbb
vvvvvvvv
V!? wth ಠ_ಠ, otherwise known as the “look of disapproval,”