Skip to content

Instantly share code, notes, and snippets.

View hkitago's full-sized avatar

hkitago hkitago

  • Kawasaki
View GitHub Profile
@spurv
spurv / com.mysql.mysql.plist
Created October 23, 2014 08:57
Mac OS X Yosemite - MySQL launch demon
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.mysql.mysqld</string>
<key>ProgramArguments</key>
<array>
(function() {
var ImageTab, Tab, TabGroup, Window, log, tab1, tab2, tab3, tabGroup;
var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) {
for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }
function ctor() { this.constructor = child; }
ctor.prototype = parent.prototype;
child.prototype = new ctor;
child.__super__ = parent.prototype;
return child;
}, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
@shin1x1
shin1x1 / sleepsort.php
Created May 20, 2011 01:32
sleep sort
<?php
$list = range(1,10);
shuffle($list);
foreach ($list as $i) {
$pid = pcntl_fork();
if ($pid === -1) {
die('fork error');
} else if ($pid === 0) {
@egraether
egraether / LICENSE.txt
Created May 24, 2011 15:28 — forked from 140bytes/LICENSE.txt
Pie Chart Timer
Copyright (c) 2011 Eberhard Gräther, http://egraether.com
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
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
@soundkitchen
soundkitchen / install_opencv.sh
Created December 9, 2012 08:15
Amazon Linux AMI に OpenCV インスコしてみた。
# run as root
yum update
yum install gcc gcc-c++ make cmake
reboot
# run also as root
mkdir -p src/opencv
cd src
curl -O http://jaist.dl.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.3/OpenCV-2.4.3.tar.bz2
tar jxf OpenCV-2.4.3.tar.bz2
@mokemokechicken
mokemokechicken / install_opencv2.4_to_aws.markdown
Created May 15, 2012 21:46
Install OpenCV2.4 Into AWS(Amazon Linux AMI 2012.03)

Install OpenCV Into AWS

概要

これは、OpenCV の opencv_traincascade を マルチコアで高速に行うために, AWS EC2を使うための設定メモです。 EC2 の 「Amazon Linux AMI 2012.03」に OpenCV2.4.0 を TBB 付きでInstallします。 使い方のイメージは「HiCPUのEC2インスタンスで学習を実行し、実行結果のXMLをS3にUploadしたらEC2インスタンスをshutdownする」です。

なんか、色々非効率なことをしている部分もあると思いますが、ご了承ください。 ちなみに、このAMIイメージを選んだ理由は特にないです。

@seancoyne
seancoyne / build-mod-perl.sh
Created October 24, 2014 18:00
Compile mod_perl for Apache 2.4 on Mac OS X 10.10 Yosemite
#!/usr/bin/env bash
# Compile mod_perl for Apache 2.4 on Mac OS X 10.10 Yosemite
# http://blog.n42designs.com/blog/2014/10/23/compiling-mod-perl-for-apache-2-dot-4-on-os-x-10-dot-10-yosemite/
# NOTE: make sure you have XCode 6.1 & Command Line Tools installed first
# ask for password up front
sudo -v
@akiraak
akiraak / gist:b7c112e46b79dacfabf1
Created September 4, 2014 08:15
ingress glyph hack list
!shapers/play/calvinball
accept/human/weak
advance/civilization/pursue/shapers/path
advance/civilization/pursue/shapers/truth
advance/civilization/repeat/failure
advance/enlightenment
advance/future/not/war
advance/human/enlightenment
advance/human/resistance
@akisute
akisute / UIWebView+Additions.h
Created February 27, 2011 15:32
UIWebView addition to enable/disable scrolling
#import <UIKit/UIKit.h>
@interface UIWebView (Additions)
/*!
@abstract Enable/Disable the receiver from scrolling.
*/
@property (nonatomic, assign) BOOL webViewScrollEnabled;
@ackman678
ackman678 / addEvent_Calendar.applescript
Last active December 2, 2019 01:42
An add event to Calendar applescript.
--James B. Ackman, 2008-02-06. Based on a script by Kevin Bradley at http://macscripter.net/articles/485_0_10_0_C/
set defCalendar to "Work"
--global ICactive
set theDate to short date string of (current date)
--Get event Summary
display dialog "Enter event name:" default answer " Appointment"
set eName to text returned of the result
--Get date