Skip to content

Instantly share code, notes, and snippets.

@timotgl
timotgl / uninstall-razer-synapse.sh
Last active June 14, 2024 08:59
How to fully uninstall Razer Synapse 2 on OS X (10.11-10.13) (El Capitan, Sierra, High Sierra) without using Razer's official uninstall tool
# How to uninstall Razer Synapse 2 ( https://www.razerzone.com/synapse-2 )
# on OS X (10.11-10.13) (El Capitan, Sierra, High Sierra)
# without using Razer's official uninstall tool.
# Tested on OS X 10.11.5 in July 2016.
# Edited with additional steps for later OS X versions,
# contributed by commenters on this gist.
# Step 1: In your terminal: stop and remove launch agents
launchctl remove com.razer.rzupdater
@h3xxx
h3xxx / DAWs_And_Their_Users.txt
Created June 6, 2016 11:15
DAWs And Their Users
SRC: http://vi-control.net/community/threads/daw-users-poll-and-the-who-uses-what-list.35147/
EDIT: The poll results were erased when moved to the new VI-C site in 2015, rendering it useless. Newer polls have emerged since.
Please feel free to add to the list, and provide a source if you can.
NOTE: These are DAWs used as the "primary composition and sequencing software". The 'Desert Island' DAW.
DAWs And Their Users
==============
@joongh
joongh / rsaencdec.py
Created January 13, 2016 08:44
Encryption, Decryption using RSA (PKCS1_v1_5) in Python
#!/usr/bin/env python
#-*- coding: utf-8 -*-
from Crypto.Cipher import PKCS1_v1_5
from Crypto.PublicKey import RSA
from Crypto.Hash import SHA
from Crypto import Random
import base64
import StringIO
# passphrase, random string => private key, public key pair
@iandees
iandees / dlib_plus_osm.md
Last active May 30, 2018 19:07
Detecting Road Signs in Mapillary Images with dlib C++

image

I've been interested in computer vision for a long time, but I haven't had any free time to make any progress until this holiday season. Over Christmas and the New Years I experimented with various methodologies in OpenCV to detect road signs and other objects of interest to OpenStreetMap. After some failed experiments with thresholding and feature detection, the excellent /r/computervision suggested using the dlib C++ module because it has more consistently-good documentation and the pre-built tools are faster.

After a day or two figuring out how to compile the examples, I finally made some progress:

Compiling dlib C++ on a Mac with Homebrew

  1. Clone dlib from Github to your local machine:
@dsosby
dsosby / gist:1823881
Created February 14, 2012 05:26
Jsonp & Clojurescript
(def tumblr-url "http://pipes.yahoo.com/pipes/pipe.run?_id=4ddef10340ec6ec0374cbd0f73bce819&_render=json")
(defn display-count [json-obj]
(let [data (js->clj json-obj :keywordize-keys true)
post-count (:count data)]
(js/alert (str "Number of posts: " post-count))))
(defn display-items [json-obj]
(let [data (js->clj json-obj :keywordize-keys true)
items (:items (:value data))