Skip to content

Instantly share code, notes, and snippets.

takuya@mori takuya

  • Osaka City Univ
  • Osaka,Japan
View GitHub Profile
View pycharm
#!/usr/bin/env bash # -x -v
name=`basename $0`
APP_PATH=`realpath ~/Applications/JetBrains\ Toolbox`
declare -A APPNAME
View modal.js
* Created by takuya on 20170809.
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
View prod.html
<form name="form1">
<p><input type="button" value="Windowsのライセンスを調査" onClick="show_license('')" /></p>
<div id="result"></div>
<script type="text/javascript">
//by takuya mori 2009-03-26
View aeon-wifi.rb
require 'mechanize'
m =
m.get ''
return if =~ %r'^https?://'[0].submit :action=> /email/ )
f = :action=> /email/ )
f.field( :type => /mail/ ).value = ''
View find
# alias の代替にfunction を定義
function find(){
local post=()
local pre=()
local opts=()
local path=''
local mindepth=1
while [[ $1 ]]; do
case "$1" in
-H | -L | -P ) pre+=($1);;
View bashrc
alias artisan='php artisan'
. vendor/balping/artisan-bash-completion/artisan
View Dockerfile
FROM php:7.2.1-fpm-alpine3.7
MAINTAINER takuya-1st
ENV creator=takuya
COPY ./php-fpm.conf /usr/local/etc/php-fpm.d/zzz-99-.$creator.conf
RUN mkdir -p /usr/local/var/run/php-fpm
VOLUME /usr/local/var/run/php-fpm
VOLUME /var/www/html
#!/usr/bin/env python
import sys
import re
import atexit
import inspect
import time
import subprocess
#!/usr/bin/env bash
# react to cec keypresses in the jankiest way possible
# Author: Dave Eddy <>
# Date: 10/15/2013
# Licens: MIT
# Tested on: Raspberry pi with libcec compiled from soure
#!/usr/bin/env python
import atexit
import time
import subprocess
import re
class CecClient(object):
You can’t perform that action at this time.