Skip to content

Instantly share code, notes, and snippets.

View apatrushev's full-sized avatar

Anton Patrushev apatrushev

View GitHub Profile
@monorkin
monorkin / sync_registry.rs
Created April 10, 2019 17:41
Registry for Actix SyncArbiter Actors
/// === DESCRIPTION ===
/// This is a naive implementation of a registry for Actix Actors that
/// implement a SyncContext. Using it you can retreive an address for
/// any actor registered with it from any point in your program.
///
/// === LICENSE ===
/// Copyright 2019 Stanko K.R. <hey@stanko.io>
///
/// Permission is hereby granted, free of charge, to any person
/// obtaining a copy of this software and associated documentation
@guillaumevincent
guillaumevincent / installation.md
Last active October 28, 2023 12:05
A simple guide to install PyQt5 on Mac OS X 10.9 (Maverick) and use python 3.4 on a virtualenv.

Guide to install PyQt5 on Mac OS X with python 3.4 virtualenv

Description

A simple guide to install PyQt5 on Mac OS X 10.9 (Maverick) and use python 3.4 on a virtualenv.

Requirements

  • xcode 5.1.1
  • python 3.4.0
  • Qt libraries 5.2.1
@proger
proger / gist:1755645
Created February 6, 2012 22:48
execsnoop.real.d
#!/usr/sbin/dtrace -Cs
#pragma D option quiet
fbt::__mac_execve:entry, fbt::posix_spawn:entry
{
self->want_malloc = 1;
}
/*
* First _MALLOC call inside execve/posix_spawn allocates memory