Skip to content

Instantly share code, notes, and snippets.

View ashwoods's full-sized avatar

Ashley Camba ashwoods

View GitHub Profile
ldd build/subprojects/gst-plugins-bad/ext/webrtc/libgstwebrtc.so
linux-vdso.so.1 => (0x0000007f82e9e000)
libgstreamer-1.0.so.0 => /gst-build/build/subprojects/gst-plugins-bad/ext/webrtc/../../../gstreamer/gst/libgstreamer-1.0.so.0 (0x0000007f82d3c000)
libgstsdp-1.0.so.0 => /gst-build/build/subprojects/gst-plugins-bad/ext/webrtc/../../../gst-plugins-base/gst-libs/gst/sdp/libgstsdp-1.0.so.0 (0x0000007f82d17000)
libgstwebrtc-1.0.so.0 => /gst-build/build/subprojects/gst-plugins-bad/ext/webrtc/../../gst-libs/gst/webrtc/libgstwebrtc-1.0.so.0 (0x0000007f82cfd000)
libnice.so.10 => /usr/lib/aarch64-linux-gnu/libnice.so.10 (0x0000007f82ca1000)
libgio-2.0.so.0 => /usr/lib/aarch64-linux-gnu/libgio-2.0.so.0 (0x0000007f82b3c000)
libgobject-2.0.so.0 => /usr/lib/aarch64-linux-gnu/libgobject-2.0.so.0 (0x0000007f82adf000)
libglib-2.0.so.0 => /lib/aarch64-linux-gnu/libglib-2.0.so.0 (0x0000007f829d8000)
libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000007f829ac000)
@ashwoods
ashwoods / build.sh
Created February 2, 2018 13:41
install marble on pyenv [WIP]
#!/usr/bin/env bash
# Exit on error. Append || true if you expect an error.
set -o errexit
# Exit on error inside any functions or subshells.
set -o errtrace
# Do not allow use of undefined vars. Use ${VAR:-} to use an undefined VAR
set -o nounset
# Catch the error in case mysqldump fails (but gzip succeeds) in `mysqldump |gzip`
set -o pipefail
@ashwoods
ashwoods / example1.py
Last active January 17, 2018 11:22
settings examples
# Extracting all settings into its own class
# and making all registered defaults "settable" with env vars
# easier to subclass and or register with plugins
config = {
'LOGGER_EXCEPTIONS' = ['path.to.module','path.to.module2'],
'ENABLE_SOMETHING' = True
}
@ashwoods
ashwoods / base.py
Created November 13, 2017 12:42
simplified class for raven 7.0 roadmap
# Context & breadcrumbns handling missing from example.
class Client(object):
def __init__(self, dsn=Ellipsis, *args, **kwargs):
self.dsn = dsn
self.environment = Environ() # singleton encapsulating lazy? system properties
@ashwoods
ashwoods / consumers.py
Created November 8, 2017 15:29
channels example
# In consumers.py
import random
import json
from channels import Group
from raven.contrib.django.models import get_client
client = get_client()
function slugify_(text){
return text.toString().toLowerCase()
.replace(/\s+/g, '-') // Replace spaces with -
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
.replace(/\-\-+/g, '-') // Replace multiple - with single -
.replace(/^-+/, '') // Trim - from start of text
.replace(/-+$/, ''); // Trim - from end of text
}
@ashwoods
ashwoods / simple_app.py
Last active November 2, 2017 14:05
logging
import logging
from flask import Flask
from raven.contrib.flask import Sentry
logger = logging.getLogger(__name__)
app = Flask(__name__)
app.config['DEBUG'] = False
@ashwoods
ashwoods / celery.py
Last active December 8, 2018 00:10
Sentry Django & Celery >=4.0 integration
# If following the official celery documentation for integration django
# you might have a `celery.py` file that looks like this.
from __future__ import absolute_import, unicode_literals
import os
import logging
from celery import Celery
# from celery.utils.log import get_task_logger
from celery import signals
@ashwoods
ashwoods / cx_oracle.md
Created May 2, 2017 09:13 — forked from kimus/cx_oracle.md
Installing python cx_oracle on Ubuntu

First of all, it just seems like doing anything with Oracle is obnoxiously painful for no good reason. It's the nature of the beast I suppose. cx_oracle is a python module that allows you to connect to an Oracle Database and issue queries, inserts, updates..usual jazz.

Linux

Step 1:

sudo apt-get install build-essential unzip python-dev libaio-dev

Step 2. Click here to download the appropriate zip files required for this. You'll need:

@ashwoods
ashwoods / Brewfile
Last active December 24, 2018 05:38
tap 'bls/blackbox'
tap 'caskroom/cask'
tap 'homebrew/bundle'
tap 'homebrew/core'
tap 'homebrew/fuse'
brew 'libyaml'
brew 'openssl@1.1'
brew 'gdbm'
brew 'openssl'
brew 'readline'