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 / 0_reuse_code.js
Created May 15, 2014 19:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

YELLY!!!!! THE YELLINGIST FORMATTER EVER!!!!!

Yelly likes to yell. To make the magic happen for simple cases just invoke him ala:

bundle exec rspec --require=yelly_the_yellingist_formatter.rb --format=YellyTheYellingistFormatter spec/models/your_file_here_spec.rb

In closing, >:O

Updated to Rspec 3.0's formatter interface.

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