Skip to content

Instantly share code, notes, and snippets.

View shigeya's full-sized avatar

Shigeya Suzuki shigeya

View GitHub Profile
@shigeya
shigeya / amazon-calc.js
Created November 13, 2017 22:04 — forked from koyopro/amazon-calc.js
Amazonで一年間に使った金額と、注文履歴のTSVを出力するブックマークレット【2015年版】
// Amazonの注文履歴をTSV形式で出力するスクリプト
//
// 2015-01-01 時点での DOM 構造に対応, GoogleCrome, Opera でテスト済。
// formatEntry関数を書き換えれば自由な書式で出力できます。
//
// 参考:
// - Amazonの注文履歴をCSV形式にして出力するスクリプト
// https://gist.github.com/arcatdmz/8500521
// - Amazon で使った金額の合計を出す奴 (2014 年バージョン)
// https://gist.github.com/polamjag/866a8af775c44b3c1a6d
@shigeya
shigeya / sources.list
Created August 1, 2015 01:56
Debian 7.8 /etc/apt/sources.list at JAIST
#
# deb cdrom:[Debian GNU/Linux 7.8.0 _Wheezy_ - Official amd64 CD Binary-1 20150110-14:43]/ wheezy main
deb cdrom:[Debian GNU/Linux 7.8.0 _Wheezy_ - Official amd64 CD Binary-1 20150110-14:43]/ wheezy main
deb http://ftp.jaist.ac.jp/debian/ wheezy main
deb-src http://ftp.jaist.ac.jp/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
@shigeya
shigeya / emacs.rb
Last active August 29, 2015 14:23 — forked from ksato9700/emacs.rb
require "formula"
class Emacs < Formula
homepage "https://www.gnu.org/software/emacs/"
stable do
url "http://ftpmirror.gnu.org/emacs/emacs-24.5.tar.xz"
mirror "https://ftp.gnu.org/pub/gnu/emacs/emacs-24.5.tar.xz"
sha256 "dd47d71dd2a526cf6b47cb49af793ec2e26af69a0951cc40e43ae290eacfc34e"
@shigeya
shigeya / private.tar.gz.uu
Created January 18, 2015 08:43
FreeBSD 9.3 /usr/lib/private in uuencoded format
This file has been truncated, but you can view the full file.
begin 644 private.tar.gz
M'XL(`)ENNE0``^R]"WP4U=D_/IMLDB5<9E'$>%\A:`(4LQ(T@8C9D(59V2C*
M54$AA`U$<VLRRT6,1'<7F2Z+J:TM;UM;;-^JO5AIK8A68;DE!*V->*-X0]2:
M-:*`$D*`Y/<\9\[9/3.9`?S_[?O[_S]O]T/8G>]YSG.>\YSG/.<R,\_QU]==
M4UFQ\)K:NHJEI;+O&N'?\,G)R;E^W#@'?L-'_ZU>.*_-'7==[G7.<=<Z'3G.
MW&N=N8)CW+]#&/W'7R^7UH$H=34U\IGHEBWQ^2K/D*ZOW/]//GY=^\-O?UGE
M_-HQI=]=&:"/W-Q<D_:_=NQU8\==A^WOO-X)9-=C^U_GO&ZLX,CY[D0P__PO
M;_\K"TKKRI9,3+_&H?TX<W/&Y8P=-S8_U^'((0C_/Z0[G7GJKP7IP`;\AO77
M__Z_FS?U_=M_4_S/,O1?YG]91\W^T.#]U;[ZLM):W_R[ZVNJY]?+=175BP72
M$TKKZGUU\Q?[Y/DU"^_VE<EZU%=75U-'0,A565:[@O\]7ZZIK%GF4],K9%\=
@shigeya
shigeya / basic.asm
Created January 14, 2015 02:40
Microsoft BASIC for 6502 copied from http://www.pagetable.com/?p=774
TITLE BASIC M6502 8K VER 1.1 BY MICRO-SOFT
SEARCH M6502
SALL
RADIX 10 ;THROUGHOUT ALL BUT MATH-PAK.
$Z:: ;STARTING POINT FOR M6502 SIMULATOR
ORG 0 ;START OFF AT LOCATION ZERO.
SUBTTL SWITCHES,MACROS.
REALIO=4 ;5=STM
@shigeya
shigeya / monthly_archive_patch
Created July 24, 2014 22:29
Fix to URL generation of the page
diff --git a/_plugins/monthly_archive_plugin.rb b/_plugins/monthly_archive_plugin.rb
index b6c6b59..b6ede86 100644
--- a/_plugins/monthly_archive_plugin.rb
+++ b/_plugins/monthly_archive_plugin.rb
@@ -65,7 +65,10 @@ module Jekyll
'layout' => @layout,
'type' => 'archive',
'title' => "Monthly archive for #{@year}/#{@month}",
- 'posts' => posts
+ 'posts' => posts,
GIT
remote: git://github.com/capistrano/bundler.git
revision: f1ac9eabb3674812c40607714735a36a2185877c
specs:
capistrano-bundler (1.1.2)
capistrano (~> 3.1)
sshkit (~> 1.2)
GIT
remote: https://github.com/shigeya/debugger-ruby_core_source
@shigeya
shigeya / rspec3_formatter.rb.DIFF
Created May 20, 2014 22:16
Diff to make RubyMine 6.3.2's rspec3 support to compatible with RSpec 3.0.0rc1
--- rspec3_formatter.rb.FCS 2014-05-21 07:14:30.000000000 +0900
+++ rspec3_formatter.rb 2014-05-21 07:15:17.000000000 +0900
@@ -132,7 +132,7 @@
# Start capturing...
std_files = capture_output_start_external
- started_at_ms = get_time_in_ms(example.execution_result[:started_at])
+ started_at_ms = get_time_in_ms(example.execution_result.started_at)
debug_log('Output capturing started.')
# Copyright 2000-2014 JetBrains s.r.o.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@shigeya
shigeya / keybase.md
Last active September 2, 2020 06:35
keybase.md

Keybase proof

I hereby claim:

  • I am shigeya on github.
  • I am shigeya (https://keybase.io/shigeya) on keybase.
  • I have a public key ASDaepin1bvD3DhR2KKjXHJPmJaMI_dEJmPDpbvPTp0x6Qo

To claim this, I am signing this object: