Skip to content

Instantly share code, notes, and snippets.

View hansipete's full-sized avatar

Hans hansipete

View GitHub Profile
@hansipete
hansipete / cocoa_keypress_monitor.py
Created March 22, 2020 10:49 — forked from ljos/cocoa_keypress_monitor.py
Showing how to listen to all keypresses in OS X through the Cocoa API using Python and PyObjC
#!/usr/bin/env python
#
# cocoa_keypress_monitor.py
# Copyright © 2016 Bjarte Johansen <[email protected]>
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# “Software”), to deal in the Software without restriction, including
@hansipete
hansipete / spotifyHijack.scpt
Last active March 26, 2020 11:59 — forked from himenlinamarbric/spotifyHijack.scpt
Audio Hijack Pro & Spotify -- No Polling
-- Usage
-- 1. Edit the settings (see below). This step is NECESSARY the first time you use it!
-- 2. Run this script (this should open Audio Hijack Pro and Spotify)
--
-- NOTE: the script assumes that each track is played entirely. You CANNOT skip tracks in Spotify.
-- If you do so the script will get out of sync and the resulting files contain partial or multiple songs.
-- You can abort a recordig session by stopping this script and ending (manually) the recording
-- in Audio Hijack Pro.
--
-- You need to have "atomicparsley" installed on your system. You can install the application with
This file has been truncated, but you can view the full file.
{
"nodes": [{
"id": "Graves"
},{
"id": "The Cure"
}, {
"id": "Sherlock Holmes"
}, {
"id": "Sir Arthur Conan Doyle"
}, {
@hansipete
hansipete / wp_install_default.sh
Created August 19, 2012 15:08 — forked from i3inary/wp_install_default.sh
Default Install Script for WordPress Setup on MAMP localhost
#!/bin/bash
##############################
# DEFAULT WORDPRESS AND PLUGIN INSTALL SCRIPT
#
# 2012-04-03
# 1.0
# TODO: PUT A YES/NO PROMPT BEFORE RUNNING SCRIPT
#!!!!! EXITS UNLESS YOU MANUALLY COMMENT OUT THE LINE BELOW
exit