Skip to content

Instantly share code, notes, and snippets.

Avatar

Hans hansipete

View GitHub Profile
@hansipete
hansipete / cocoa_keypress_monitor.py
Created Mar 22, 2020 — 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
View cocoa_keypress_monitor.py
#!/usr/bin/env python
#
# cocoa_keypress_monitor.py
# Copyright © 2016 Bjarte Johansen <Bjarte.Johansen@gmail.com>
#
# 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 Mar 26, 2020 — forked from himenlinamarbric/spotifyHijack.scpt
Audio Hijack Pro & Spotify -- No Polling
View spotifyHijack.scpt
-- 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
View hannes-sample-data.json
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 Aug 19, 2012 — forked from i3inary/wp_install_default.sh
Default Install Script for WordPress Setup on MAMP localhost
View wp_install_default.sh
#!/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