Skip to content

Instantly share code, notes, and snippets.

View takuya's full-sized avatar

takuya@mori takuya

  • Osaka City Univ
  • Osaka,Japan
View GitHub Profile
#!/usr/bin/env ruby
#/*
# *
# * 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.
# *
# * This program is distributed in the hope that it will be useful,
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
#!/usr/bin/env python
# coding: utf-8
#/*
# * 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.
# *
# * This program is distributed in the hope that it will be useful,
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
@takuya
takuya / find.rb
Created September 25, 2014 06:53
#!/usr/bin/env ruby
#
#
require 'find'
require 'fileutils'
if ARGV.size != 2 then
puts "
散らばったファイルを一箇所にコピーして集めてくる
使い方 #{__FILE__} src dst
#!/usr/bin/env python
# coding: utf-8
import pprint
pp = pprint.PrettyPrinter(indent=4)
pprint = pp.pprint
import os
import datetime
import sys
import urllib
str='window._open = window.open;window.open = function(){ arguments[2] = null; return window._open.apply(this,arguments)}';
s = document.createElement("script")
s.innerText = str
document.body.appendChild(s)
#!/usr/bin/env ruby
# coding:utf-8
require 'stringio'
require 'pp'
class Ini
@@original_string
def initialize io
@@ini = {}
@@comments = {}
comment = ""
#!/usr/bin/env ruby
# coding:utf-8
require 'stringio'
require 'pp'
class Ini
@@original_string
def initialize io
@@ini = {}
@@comments = {}
comment = ""
#!/bin/sh
echo "CHANNEL : $CHANNEL"
echo "DURATION : $DURATION"
echo "OUTPUT : $OUTPUT"
echo "TUNER : $TUNER"
echo "TYPE : $TYPE"
echo "MODE : $MODE"
echo "SID : $SID"
RECORDER=/usr/local/bin/recpt1
// ==UserScript==
// @name 銀行の右クリック対策、対策
// @match https://*.jibunbank.co.jp/*
// @match https://*.shinseibank.com/*
// ==/UserScript==
document.body.appendChild(function(){
sc = document.createElement("script");
var code = function(){
//右クリック対策
#include <stdio.h>
#include <stdlib.h>
#include <librtmp/rtmp.h>
int main(){
int swfAge = 30; /* 30 days for SWF cache by default */
int swfVfy = 0;