This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html><head> | |
<title>WindowsとOfficeのライセンス確認</title></head> | |
<body> | |
<form name="form1"> | |
<p><input type="button" value="Windowsのライセンスを調査" onClick="show_license('')" /></p> | |
</form> | |
<div id="result"></div> | |
<script type="text/javascript"> | |
//by takuya mori 2009-03-26 | |
//Windowsのシリアルを取得する。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'mechanize' | |
m = Mechanize.new | |
m.get 'http://t.co' | |
return if m.page.uri.to_s =~ %r'^https?://t.co' | |
m.page.forms[0].submit | |
m.page.form( :action=> /email/ ) | |
f = m.page.form( :action=> /email/ ) | |
f.field( :type => /mail/ ).value = '[email protected]' | |
f.submit() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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);; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias artisan='php artisan' | |
. vendor/balping/artisan-bash-completion/artisan | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import re | |
import atexit | |
import inspect | |
import time | |
import subprocess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# react to cec keypresses in the jankiest way possible | |
# | |
# Author: Dave Eddy <[email protected]> | |
# Date: 10/15/2013 | |
# Licens: MIT | |
# Tested on: Raspberry pi with libcec compiled from soure | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import atexit | |
import time | |
import subprocess | |
import re | |
class CecClient(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
### 補完関数。 | |
_desktop_change(){ | |
curr="${COMP_WORDS[$COMP_CWORD-1]}" | |
cmd=${COMP_WORDS[0]} | |
case $COMP_CWORD in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import urllib.request, urllib.error, urllib.parse | |
import os, sys, datetime, argparse, re | |
import subprocess | |
import base64 | |
import shlex |