Skip to content

Instantly share code, notes, and snippets.

View endtwist's full-sized avatar

Joshua Gross endtwist

View GitHub Profile
anonymous
anonymous / gist:4274323
Created December 13, 2012 05:42
I Really Wanted to Like You.

Good morning! Did you know we released several new features today? Yes, oh yes, let us show you what amazing new things we’ve done!

Oh what a good day it is—for a webinar! “A webinar?” you say, puzzled. Why yes, a webinar! We’ll demonstrate our product to you, personally, today! We really want you to love our product as much as we do.

Today is a special day! Why is it special? Because we have an offer for you, something shiny and new! Here’s a discount. Apply it right now. Don’t delay! You can’t live without this feature for another day.

It’s Labor Day! It’s Thanksgiving! It’s Black Friday! Cyber Monday! Order fast, before the end of the day. We won’t restock until next week. Only 29 days until the next holiday!

Happy afternoon, good friend! Martin Luther King Day, you say? You’re at work, we understand. Here’s a coupon on us. Wipe off that puss, upgrade right now. We promise you won’t regret it.

@ragusa87
ragusa87 / bluetooth-a2dp
Last active January 30, 2020 19:08
Enable bluetooth A2DP on Raspberry-PI via pulseaudio. To install, edit /etc/udev/rules.d/99-input.rules and add the line: SUBSYSTEM=="bluetooth", RUN+="/usr/lib/udev/bluetooth" Then save this script as /usr/lib/udev/bluetooth and set it executable. Bluetooth devices must be linked first.
#!/bin/bash
# This script is called by udev when you link a bluetooth device with your computer
# It's called to add or remove the device from pulseaudio
#
#
# Output to this file
LOGFILE="/var/log/bluetooth_dev"
# Name of the local sink in this computer
@willprice
willprice / README.md
Last active February 8, 2023 21:27
Install OpenCV 4.1.2 for Raspberry Pi 3 or 4 (Raspbian Buster)

Install OpenCV 4.1.2 on Raspbian Buster

$ chmod +x *.sh
$ ./download-opencv.sh
$ ./install-deps.sh
$ ./build-opencv.sh
$ cd ~/opencv/opencv-4.1.2/build
$ sudo make install
@jb510
jb510 / readme.md
Last active July 20, 2024 11:41 — forked from nickcernis/readme.md
Exclude vcs (git, svn, hg) and node_modules from Backblaze backups on Mac

Backblaze's bztransmit process loads a file called bzfileids.dat into RAM. This file is a list of all files Backblaze has previously uploaded, including a unique identifier for each file. On most systems, this files is under 100MB in size (paraphrased from Backblaze support rep Zack).

Mine had grown to 6GB. This means that anytime bztransmit runs, it will load this 6GB file into RAM while it is backing up. In doing so it was purging massive ammounts of memory causing behavior like Chrome (usign 10GB of memory on it's own) to hang/beachball for 30 seconds and then refresh all it's windows.

There is no way to alter this behavior once it's begun, aside from starting over with some files excluded. The index needs to be rebuilt from scratch without the excessibe file count, that also means you can't restart and "inherit" a previous backup.

In my case the biggest culprits were .git and node_modules, so I excluded those, started a new backup (transfered licnese) and spent a week hunting for fast internet I could