Skip to content

Instantly share code, notes, and snippets.

View CptLemming's full-sized avatar

Ashley Wilson CptLemming

View GitHub Profile
@muratgozel
muratgozel / install_pillow.sh
Created November 28, 2018 15:39
install pillow (python imaging library) on ubuntu 18.04 (bionic)
#!/bin/bash
apt update
apt install python3-pip -y
apt install libjpeg8-dev zlib1g-dev libtiff-dev libfreetype6 libfreetype6-dev libwebp-dev libopenjp2-7-dev libopenjp2-7-dev -y
pip3 install pillow --global-option="build_ext" --global-option="--enable-zlib" --global-option="--enable-jpeg" --global-option="--enable-tiff" --global-option="--enable-freetype" --global-option="--enable-webp" --global-option="--enable-webpmux" --global-option="--enable-jpeg2000"
import 'rxjs/add/observable/fromEvent';
import 'rxjs/add/operator/do';
import 'rxjs/add/operator/filter';
import 'rxjs/add/operator/switchMap'
import 'rxjs/add/operator/share';
import 'rxjs/add/operator/takeUntil';
export class CanvasInteractionManager {
private destroy$ = new Subject<void>();
@njh
njh / aes67_wishlist.md
Last active July 7, 2024 11:10
AES67 Open Source Software Wishlist

AES67 (an open standard for high quality audio over IP) is becoming mainstream in the world of broadcast and professional audio industries, however there is a very limited amount of open source software available to interoperate with it. As a result we are often just replacing XLRs with Ethernet, without taking advantage of the possibilites the software give. While Virtual Soundcards enable some of this, native network implementations would allow greater flexibility.

This is my wishlist of things that would help change that. Hopefully one day it can be turned into a AES67 Awesome List.

As open source has resulted in very rapid evolution of the web, I believe the same is possible for professional/broadcast audio.

It is possible that some of this already exists and I just havn't found it yet. Please add a comment below if you know of something!

kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
@zalmoxisus
zalmoxisus / configureStore.js
Created August 2, 2016 14:52
Require modules from all files in subdirectories as a nested object
function requireAll(requireContext) {
return requireContext.keys().reduce((previous, current) => {
const name = current.substring(current.lastIndexOf('/') + 1, current.lastIndexOf('.'));
previous[name] = requireContext(current);
return previous;
}, {});
}
const actionCreators = requireAll(require.context('../actions', true, /^\.\/.*\.js$/));
import six
import itertools
from attrdict import AttrDict
import graphene
from graphene.core.classtypes.objecttype import ObjectTypeOptions
from graphene.core.types import ArgumentsGroup
from graphene.core.types.definitions import NonNull
from graphene.core.classtypes.mutation import Mutation, MutationMeta
@subfuzion
subfuzion / curl.md
Last active July 18, 2024 17:12
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@dimasch
dimasch / redis-clear
Last active July 5, 2024 07:16
Clear a redis cache in Docker
docker exec -it container-name redis-cli FLUSHALL
@nathansearles
nathansearles / isAutoplaySupported.js
Last active December 13, 2022 11:06
Test if HTML5 video autoplay is supported
// isAutoplaySupported(callback);
// Test if HTML5 video autoplay is supported
isAutoplaySupported = function(callback) {
// Is the callback a function?
if (typeof callback !== 'function') {
console.log('isAutoplaySupported: Callback must be a function!');
return false;
}
// Check if sessionStorage exist for autoplaySupported,
// if so we don't need to check for support again