Skip to content

Instantly share code, notes, and snippets.

View gmorell's full-sized avatar
⛱️

Gabe gmorell

⛱️
View GitHub Profile
@stepahn
stepahn / gist:3620893
Created September 4, 2012 12:50 — forked from anonymous/gist:3620872
pypy cross translation

Cross-translating for ARM

Here we describe the required setup and necessary steps to translate an interpreter with the RPython translator to target ARM using a cross compilation toolchain.

While it is possible to translate an RPython program for ARM directly on an ARM device following the normal translation steps it is not really feasible on most ARM machines. The alternative is to cross-translate using a cross-compilation toolchain.

@suisui
suisui / gist:5123530
Created March 9, 2013 08:48
brew install dbus
==> /usr/local/Cellar/d-bus/1.6.4/bin/dbus-uuidgen --ensure=/usr/local/var/lib/dbu
==> Caveats
If this is your first install, automatically load on login with:
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/d-bus/1.6.4/org.freedesktop.dbus-session.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist
If this is an upgrade and you already have the org.freedesktop.dbus-session.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist
cp /usr/local/Cellar/d-bus/1.6.4/org.freedesktop.dbus-session.plist ~/Library/LaunchAgents/
@nicolasH
nicolasH / apple system status.py
Last active December 8, 2016 19:59
apple system status
import sys
import console
import requests
from bs4 import BeautifulSoup
from datetime import datetime
#
# Check the status of the Apple Dev Center systems.
# Offline systems appear in orange
# Online systems appear in black
#
@benjiqq
benjiqq / twistedssh
Created December 30, 2013 17:48
twistedssh
#!/usr/bin/env python
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
from twisted.cred import portal, checkers
from twisted.conch import error, avatar
from twisted.conch.checkers import SSHPublicKeyDatabase
from twisted.conch.ssh import factory, userauth, connection, keys, session
from twisted.internet import reactor, protocol, defer
from twisted.internet import reactor
from twisted.web.server import Site
from twisted.web.resource import Resource
import json, hmac
from hashlib import sha1
from blinker import signal
class WebhookServer(Resource):
# -*- coding: utf-8 -*-
from random import randint
import tornado.concurrent
import tornado.platform.asyncio
import tornado.web
from aiopg.sa import create_engine as aiopg_create_engine
import asyncio
class XcodeAutoSchema(SwaggerAutoSchema):
def __init__(self, view, path, method, components, request, overrides):
super(XcodeAutoSchema, self).__init__(view,
path,
method,
components,
request,
overrides)
def get_operation(self, operation_keys):
@JordanReiter
JordanReiter / django_context_placeholder.py
Last active April 10, 2019 15:33
Django template context placeholder
import uuid
import datetime
import itertools
import re
import inflection # requires python library inflection (pip install inflection)
class ContextPlaceholder:
counter = itertools.count()
DEFAULT_VALUES = {
@kaaquist
kaaquist / podman_macos.md
Last active June 9, 2024 20:33
Podman with docker-compose on MacOS.

Podman with docker-compose on MacOS.

Podman an alternative to Docker Desktop on MacOS

Getting podman installed and started is super easy.
Just use brew to install it.

> brew install podman

Now since podman uses a VM just like the Docker Client on MacOS we need to initialize that and start it.