Skip to content

Instantly share code, notes, and snippets.

Avatar

tobetchi tobetchi

View GitHub Profile
View $ php-build 5.4.0 error
$ sudo php-build 5.4.5 ~/.phpenv/versions/5.4.5
[Info]: Loaded apc Plugin.
[Info]: Loaded pyrus Plugin.
[Info]: Loaded xdebug Plugin.
[Info]: Loaded xhprof Plugin.
[Info]: php.ini-production gets used as php.ini
[Info]: Building 5.4.5 into /Users/s_urabe/.phpenv/versions/5.4.5
[Skipping]: Already downloaded and extracted http://www.php.net/distributions/php-5.4.5.tar.bz2
[Preparing]: /var/tmp/php-build/source/5.4.5
[Compiling]: /var/tmp/php-build/source/5.4.5
@tobetchi
tobetchi / main.cpp
Created Sep 28, 2016
openFrameworks OSC recieve sample Raw
View main.cpp
#include "ofMain.h"
#include "ofApp.h"
int main() {
ofSetupOpenGL(1024, 768, OF_WINDOW);
ofRunApp(new ofApp());
}
@tobetchi
tobetchi / main.cpp
Created Sep 28, 2016
openFrameworks MIDI send to Launchpad sample
View main.cpp
#include "ofMain.h"
#include "ofApp.h"
int main( ){
ofSetupOpenGL(320, 320 , OF_WINDOW);
ofRunApp(new ofApp());
}
@tobetchi
tobetchi / main.cpp
Created Sep 28, 2016
openFrameworks MIDI recieve sample
View main.cpp
#include "ofMain.h"
#include "ofApp.h"
int main( ){
ofSetupOpenGL(1024, 768, OF_WINDOW);
ofRunApp(new ofApp());
}
@tobetchi
tobetchi / main.cpp
Created Sep 29, 2016
Simple VJ Controller: Resolume + Launchpad + openFrameworks
View main.cpp
#include "ofMain.h"
#include "ofApp.h"
int main( ){
ofSetupOpenGL(320, 320, OF_WINDOW);
ofRunApp(new ofApp());
}
@tobetchi
tobetchi / main.cpp
Created Sep 30, 2016
Simple VJ Controller (refine): Resolume + Launchpad + openFrameworks
View main.cpp
#include "ofMain.h"
#include "ofApp.h"
int main(){
ofSetupOpenGL(320, 320, OF_WINDOW);
ofRunApp(new ofApp());
}
@tobetchi
tobetchi / main.cpp
Created Sep 28, 2016
openFrameworks OSC send sample
View main.cpp
#include "ofMain.h"
#include "ofApp.h"
int main( ){
ofSetupOpenGL(1024, 768, OF_WINDOW);
ofRunApp(new ofApp());
}
@tobetchi
tobetchi / get-apple-event2018oct-logos.sh
Created Oct 19, 2018
Get apple logos from https://www.apple.com/apple-events/ (Apple Special Event October 30, 2018)
View get-apple-event2018oct-logos.sh
#!/bin/sh
urls=$(curl -s https://www.apple.com/v/apple-events/home/a/built/styles/overview.built.css | grep -Eo 'background[^)]+)' | grep hero_image_ | grep large_2x | grep -v past | sed -E 's/^.+"([^"]+)".+$/\1/' | sort | uniq)
for url in $urls
do
curl -O https://www.apple.com/$url
done
@tobetchi
tobetchi / init.lua
Created Feb 19, 2019
Remap ctrl-h to delete for Skype.app with hammerspoon config
View init.lua
local function enableHotkeys(hotkeys)
for k, v in pairs(hotkeys) do
v:enable()
end
end
local function disableHotkeys(hotkeys)
for k, v in pairs(hotkeys) do
v:disable()
end