Skip to content

Instantly share code, notes, and snippets.

View AKAMEDIASYSTEM's full-sized avatar

AKA AKAMEDIASYSTEM

View GitHub Profile
@hraftery
hraftery / gateway-pi.md
Last active October 26, 2023 21:08
Gateway-Pi : connecting a HiLink cellular dongle to a Billion router

The Job

flowchart LR
    a[Cellular Dongle<br />Huawei E3372h-608] --> |USB| b[Raspberry Pi]
    b-->|Ethernet| c[Billion Router<br />BiPAC 7800NXL]
    c-->|Ethernet/WiFi| d[Home Broadband]

The Why

@pnc
pnc / network-chaos.rb
Created October 15, 2021 16:06
Simulate network chaos on macOS
# Simulate a fairly realistic "bad network" (e.g. bufferbloat,
# flaky Wi-Fi, LTE from a brick building) to help find bugs
# in code that never expects network responses to arrive out of order.
# Run with `sudo ruby network-chaos.rb` and stop with control-C.
# Test with:
#
# $ ping 1.1.1.1
# PING 1.1.1.1 (1.1.1.1): 56 data bytes
# Request timeout for icmp_seq 0
@dacioromero
dacioromero / gopro.py
Created March 25, 2021 06:07
Script to stitch together GoPro recordings with FFmpeg
import glob
from collections import defaultdict
import subprocess
from os import path
def main(dest = ''):
recordings = defaultdict(list)
for file in glob.glob(f'GH{"[0-9]" * 6}.MP4'):
chapter = file[2:4]
@kongmunist
kongmunist / face_tracking_ppg.py
Last active December 27, 2022 04:28
Webcam Photoplethysmyography
# Must be run in console to work properly
import numpy as np
import cv2
import time
from scipy import signal
import matplotlib.pyplot as plt
import matplotlib
import threading
import scipy.signal as sig
@IanColdwater
IanColdwater / twittermute.txt
Last active April 22, 2024 17:26
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@aallan
aallan / benchmark_tf_trt.py
Created April 26, 2019 15:36
Benchmarking script for TensorFlow + TensorRT inferencing on the NVIDIA Jetson Nano
#!/usr/bin/env python3
import platform
PLATFORM = platform.system().lower()
GOOGLE = 'edge_tpu'
INTEL = 'ncs2'
NVIDIA = 'jetson_nano'
PI = 'raspberry_pi'
IS_LINUX = (PLATFORM == 'linux')
@kylemcdonald
kylemcdonald / 3840x2160.png
Last active November 28, 2019 22:04
Schlieren Moire Pattern
3840x2160.png
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
import xml.dom.minidom as minidom
import pycountry
import traceback
chrome_options = Options()
chrome_options.add_argument("--headless")
#include "color.h"
#include "utilities.h"
#include <math.h>
/*
* Algorithm adapted from https://gist.github.com/hdznrrd/656996. Uses a little libmath.
* */
void color_HSV2RGB(struct color_ColorHSV const *hsv, struct color_ColorRGB *rgb) {
int i;
@dphiffer
dphiffer / alexa.md
Last active May 14, 2018 22:21
Email to an Amazon recruiter (Re: "Alexa, Let's Try Again")

Hi ███████,

Somehow your other emails didn't register, but I did want to write and let you know that I'm not interested. Thanks for writing though, I do appreciate that I made it through your filters.

The reason I'm not interested in working on Alexa (and other similar IoT devices) is I think they are irresponsible outside of narrowly bracketed vision-impairment accessibility situations. The trade-off of privacy for convenience is only really possible for specific groups of very privileged people.

More generally, I don't think Amazon treats its warehouse workers very well, and I would feel bad being complicit in their continued mistreatment. The HQ2 effort to minimize tax exposure, followed by public statements by your CEO about how he's deciding how to spend his "winnings" would make me feel ashamed to call myself an Amazon employee.

I don't write this because I think you are going to fix these things, but because I think it's my responsibility to help push back on abusive business practices. You need