Skip to content

Instantly share code, notes, and snippets.

@izumiya
izumiya / atlantis-on-cloud-run.sh
Last active August 10, 2019 05:23
Cloud Runでatlantisを起動する
#!/bin/bash
# Dockerfile作成。指定されたPORTをListenするように変更。
mkdir runatlantis
cd runatlantis
cat << 'EOF' > Dockerfile
FROM runatlantis/atlantis
RUN { \
echo '#!/bin/sh'; \
echo 'atlantis server --port=$PORT'; \
@izumiya
izumiya / api.md
Created May 16, 2019 06:16 — forked from miyucy/api.md
APIパス システム名 サブシステム名 コンポーネント名 ファイル名
/api01r/acceptlst 日医標準レセプトソフト API連携用モジュール 受付一覧 ORAPI011R1
/api01r/appointlst 日医標準レセプトソフト API連携用モジュール 予約一覧 ORAPI014R1
/api01r/diseaseget 日医標準レセプトソフト API連携用モジュール 患者病名返却 ORAPI022R1
/api01r/medicalget 日医標準レセプトソフト API連携用モジュール 診療行為返却1 ORAPI021R1
/api01r/patientget 日医標準レセプトソフト API連携用モジュール 患者基本情報取得 ORAPI012R1
/api01r/patientlst1 日医標準レセプトソフト API連携用モジュール 患者番号一覧取得処理 [ORAPI012R2](https://github.com/orcacvsmirror/jma-receipt/blob/master/cobol/a
@izumiya
izumiya / gist:88a71791c807bae5b52484ff1b3a7c94
Created November 24, 2018 08:30 — forked from httpdss/gist:948386
Mysql general log parser
#!/usr/bin/perl
use strict;
use Data::Dumper;
use Getopt::Long;
# author: Gavin Towey, 2008 gtowey@gmail.com
# todo, add "follow thread" capability
# so we can give a process name or thread id & see
# all activity in sequence for each thread
@izumiya
izumiya / pem-split
Created October 3, 2015 18:42 — forked from jinnko/pem-split
Take a PEM format file as input and split out certs and keys into separate files.
#!/usr/bin/awk -f
#
# Take a PEM format file as input and split out certs and keys into separate files
#
BEGIN { n=0; cert=0; key=0; if ( ARGC < 2 ) { print "Usage: pem-split FILENAME"; exit 1 } }
/-----BEGIN PRIVATE KEY-----/ { key=1; cert=0 }
/-----BEGIN CERTIFICATE-----/ { cert=1; key=0 }
split_after == 1 { n++; split_after=0 }
/-----END CERTIFICATE-----/ { split_after=1 }

Keybase proof

I hereby claim:

  • I am izumiya on github.
  • I am izumiya (https://keybase.io/izumiya) on keybase.
  • I have a public key whose fingerprint is 7660 3A9F BAD7 F6BD 0148 E15C 7276 2F04 6091 9BB2

To claim this, I am signing this object:

@izumiya
izumiya / deploy.rb
Created April 15, 2014 21:59 — forked from reu/deploy.rb
# Bundler Integration
require "bundler/capistrano"
# Application Settings
set :application, "yourapplicationname"
set :user, "serveruser"
set :deploy_to, "/home/#{user}/rails-applications/#{application}"
set :rails_env, "production"
set :use_sudo, false
set :keep_releases, 3
@izumiya
izumiya / WakeUp!
Created February 16, 2011 02:31 — forked from anonymous/WakeUp!
public function wakeup_seto($gender)
{
if ($gender == 'male') {
echo 'Failed! Seto sleep again!';
return FALSE;
} else if ($gender == 'female') {
echo 'Good morning!';
return TRUE;
}
}
@izumiya
izumiya / stop-services.sh
Created December 13, 2010 04:03
centosの不要なサービスを停止するスクリプト
#!/bin/sh
STOPS='bluetooth gpm acpid atd auditd autofs avahi-daemon cups hidd ip6tables kudzu mcstrans netfs nfslock pcscd portmap restorecond rpcgssd rpcidmapd yum-updatesd'
for i in $STOPS
do
echo "chkconfig $i off"
chkconfig $i off
echo "/etc/init.d/$i stop"
/etc/init.d/$i stop
done
# Recursively add a .gitignore file to all directories
# in the working directory which are empty and don't
# start with a dot. Helpful for tracking empty dirs
# in a git repository.
for i in $(find . -type d -regex ``./[^.].*'' -empty); do touch $i"/.gitignore"; done;