Skip to content

Instantly share code, notes, and snippets.

@inouetmhr
inouetmhr / Strava-Feed.gs
Last active January 5, 2020 13:48 — forked from elifkus/Code.gs
Google Apps Script to retrieve data from Strava into a Spreadsheet.
// Original: https://gist.github.com/elifkus/09cd63b3cfbf4e070ecc83b4a4358eaa/281be3cc626dafeed767613ee5e3bad078268e38
// TODO; 日単位で集計(加算)して、
/**
* There is a write-up of how to get this code to run. https://elifk.us/en/retrieving-your-strava-data-with-google-app-scripts/
*/
var scriptProp = PropertiesService.getScriptProperties().getProperties();
@inouetmhr
inouetmhr / install-squid.sh
Created August 8, 2016 01:47 — forked from cdodd/install-squid.sh
Install a basic squid proxy with authentication on Centos 6 x64. Just modify the variables at the top and run the script on a clean system.
#!/bin/sh
PROXY_USER=user
PROXY_PASS=password
PROXY_PORT=3128
# Clear the repository index caches
yum clean all
# Update the operating system
--
-- open currently active Chrome tab with Safari
-- forked from https://gist.github.com/3151932 and https://gist.github.com/3153606
--
property theURL : ""
tell application "Google Chrome"
set theURL to URL of active tab of window 0
end tell
if appIsRunning("Safari") then
@inouetmhr
inouetmhr / Docker.md
Created November 22, 2013 08:30 — forked from yssk22/Docker.md

Docker Overview

こんな人に有効

  • Linux 使ってるけど vagrant とか Virtual Box とか時間かかってめんどい
  • VM 作りまくって何が何だかわからなくなった
  • Warden が動かない, Buildpack なにそれおいしいの?
  • Go!

note: Ubuntu 12.04 (linux-image-3.8.0-23-generic) 使ってます。 Kernel 3.5 以前では安定しない模様。

@inouetmhr
inouetmhr / gist:5139561
Last active December 14, 2015 19:49 — forked from anonymous/gist:5139555
Mac OS X 10.8 (Mountain Lion) に rpy2 をインストール

作業メモ

Mac OS X 10.8 (Mountain Lion) に rpy2 (Python で R を使う) をインストール

おそらくこれで最小だが、不足があるかも

  1. R をインストール http://www.r-project.org/ からMac用バイナリのインストール
    • rpy2 の目的にはおそらく不要だが、Rコマンダーを使う場合は tcl/tk ライブラリと、別途 XQuartz (X11) のインストールが必要
  2. sudo easy_install rpy2
@inouetmhr
inouetmhr / fix-shiftmodifier-patch-for-emacs-inline-patch.diff
Created May 8, 2012 12:04 — forked from henry0312/fix-shiftmodifier-patch-for-emacs-inline-patch.diff
FIx typester's fix-shiftmodifier-with-ime.patch for emacs-inline.patch
diff --git a/src/nsterm.m b/src/nsterm.m
index 211b029..5a650b6 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -4508,7 +4508,7 @@ ns_term_shutdown (int sig)
if (mac_pass_key_directly_to_emacs ()
|| fnKeysym
- || (emacs_event->modifiers
+ || (emacs_event->modifiers && (emacs_event->modifiers != shift_modifier)
@inouetmhr
inouetmhr / mew.rb
Created April 16, 2012 05:44 — forked from ushiushix/mew.rb
Homebrew formula for Mew 6.5
# Note:
# To install git-head of mew:
# brew install --ignore-dependencies --HEAD mew
# If you omit --ignore-dependencies, brew will try to install Emacs head as well.
require 'formula'
class Mew < Formula
url 'http://www.mew.org/Release/mew-6.5.tar.gz'
homepage 'http://www.mew.org'
md5 '5aa0071696fd234f8853110b348c0357'
@inouetmhr
inouetmhr / emacs.rb
Created April 2, 2012 06:01 — forked from sharl/emacs.rb
Yet Another Emacs 23.4 homebrew Formula (ATOK support? unconfirmed) + fix-shiftmodifier-with-ime.patch
require 'formula'
class Emacs < Formula
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.4.tar.bz2'
md5 '070c68ad8e3c31fb3cb2414feaf5e6f0'
homepage 'http://www.gnu.org/software/emacs/'
if ARGV.include? "--use-git-head"
head 'git://git.sv.gnu.org/emacs.git'
else