Skip to content

Instantly share code, notes, and snippets.

@gabraganca
gabraganca / README.md
Last active December 25, 2022 00:34
Kinesis Agent on Ubuntu 16.04

Setting Up Kinesis Agent on Ubuntu 16.04

To ease the process, I created a script that automatizes the installation of the Agent. The steps are:

  1. Create the configuration file for the agent following these readings:
@number5
number5 / awscli-pyyaml-fix.md
Last active June 7, 2019 21:12
Temporary workaround to install awscli/boto3 with Homebrew Python 3.7 (before PyYAML fix their python3.7 releases)
  1. pip3 install awscli boto3 (this step will fail but will install all deps exclude pyyaml for us)
  2. pip3 install pyyaml==4.2b4
  3. pip3 install --no-deps awscli boto3

See yaml/pyyaml#193 for what's happening with pyyaml

@kwlzn
kwlzn / jupyter_pex.py
Created July 17, 2017 19:27
jupyter + pex entrypoint shim
from contextlib import contextmanager
import errno
import json
import os
import shutil
import sys
import tempfile
from notebook.notebookapp import main as notebook_main
@runekaagaard
runekaagaard / list_all_model_signals.py
Last active July 4, 2022 15:41 — forked from voldmar/signals.py
List all signals by model and signal type. Tested with Django 1.7.
# coding:utf-8
import gc
import inspect
import ctypes
from collections import defaultdict
from django.core.management.base import BaseCommand
from django.db.models.signals import *
@rxin
rxin / ramdisk.sh
Last active December 13, 2023 02:40
ramdisk create/delete on Mac OS X.
#!/bin/bash
# From http://tech.serbinn.net/2010/shell-script-to-create-ramdisk-on-mac-os-x/
#
ARGS=2
E_BADARGS=99
if [ $# -ne $ARGS ] # correct number of arguments to the script;
then