Skip to content

Instantly share code, notes, and snippets.

View yuiseki's full-sized avatar
🍻
I want to drink

yuiseki yuiseki

🍻
I want to drink
View GitHub Profile
# ustream apiから検索条件を取得する
api = "http://api.ustream.tv/json/channel/%s/getValueOf/socialStream?key=yourDevKey" % channel_id
# json で取得して結果を返す
res = urllib.urlopen(api)
socialstream = json.loads(res.read())
tweet = socialstream["results"]["hashtag"]
logger.debug(tweet)
ref_tweet = _ref2unicode(tweet)
logger.debug(ref_tweet)
return ref_tweet
yuiseki@benjo:~$ traceroute 90.35.159.109
traceroute to 90.35.159.109 (90.35.159.109), 30 hops max, 40 byte packets
1 192.168.32.1 (192.168.32.1) 1.296 ms 1.282 ms 1.271 ms
2 gfe051.nw.wakwak.com (219.103.128.147) 3.612 ms 3.612 ms 3.606 ms
3 fleast5g.nw.wakwak.com (219.103.128.129) 3.791 ms 4.148 ms 4.236 ms
4 phgwdnp9g0-0-0.nw.xephion.ne.jp (211.132.135.233) 4.398 ms 4.807 ms 4.898 ms
5 phcrdnp5g3-1-0.nw.xephion.ne.jp (211.9.229.71) 5.580 ms 5.575 ms 5.567 ms
6 phbddnp1x1-1-0.nw.xephion.ne.jp (211.9.229.101) 5.560 ms 54.809 ms 54.882 ms
7 xe-4-3.a16.tokyjp01.jp.ra.gin.ntt.net (61.213.169.109) 4.013 ms 10.801 ms 10.967 ms
8 xe-5-1-0.r21.tokyjp01.jp.bb.gin.ntt.net (61.213.169.181) 4.070 ms 4.072 ms 4.065 ms
set nocompatible
set viminfo+=!
syntax on
filetype on
filetype indent on
filetype plugin on
set expandtab
set encoding=utf-8
@yuiseki
yuiseki / kuso_twitter.php
Created March 16, 2011 09:31
ushadihiのtwitterクローラがいじっているmodelをrubyで扱えるようにする
# tweet_results DB投入部分
# reporterインスタンス生成
$reporter = ORM::factory('reporter')
->where('service_id', $service->id)
->where('service_account', $tweet->{'from_user'})
->find();
# reporterの情報をセットし保存
$level = ORM::factory('level')
->where('level_weight', 0)
@yuiseki
yuiseki / hanami.haml
Created March 28, 2011 02:39 — forked from ssig33/hanami.haml
花見.荒川智則.jp
%title 梅ラボ花見 #o873
%script{:src => "http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"}
%script{:src => "http://platform.twitter.com/anywhere.js?id=r6SEKr3NYesSmDL8bGeiLw&v=1"}
%link{:href => "http://ssig33.com/common.css", :type => "text/css", :rel => "stylesheet"}
#all
%h1 花見します
%h2 誰が来るの?
荒川智則
%h2 どこでやんの?
代々木公園
Hi yuiseki,
I found a potential bug in your GitHub project, https://github.com/yuiseki/junkure/
I'm a PhD student in computer security of the University of California, Santa Barbara, and I'm researching Execution After Redirect (more information here: http://adamdoupe.com/overview-of-execution-after-redirect-web-appl) vulnerabilities. I created a tool to analyze Ruby on Rails applications for EAR vulnerabilities and it found EARs in your project junkure.
Here's the output from the tool:
Regular EAR found in ./app/controllers/index_controller.rb:12.
With the call graph: check_admin_without_render -> redirect_to
May 18 19:18:23 yuiseki-x201s kernel: [ 635.791106] usb 1-1.1: new high speed USB device using ehci_hcd and address 7
May 18 19:18:24 yuiseki-x201s kernel: [ 635.904094] === pAd = fd815000, size = 472668 ===
May 18 19:18:24 yuiseki-x201s kernel: [ 635.904099] <-- RTMPAllocAdapterBlock, Status=0
May 18 19:18:24 yuiseki-x201s kernel: [ 636.196442] <-- RTMPAllocTxRxRingMemory, Status=0
May 18 19:18:24 yuiseki-x201s kernel: [ 636.198791] -->RTUSBVenderReset
May 18 19:18:24 yuiseki-x201s kernel: [ 636.198926] <--RTUSBVenderReset
May 18 19:18:24 yuiseki-x201s kernel: [ 636.482282] 1. Phy Mode = 0
May 18 19:18:24 yuiseki-x201s kernel: [ 636.482287] 2. Phy Mode = 0
May 18 19:18:24 yuiseki-x201s kernel: [ 636.482291] NVM is Efuse and its size =2d[2d0-2fc]
May 18 19:18:24 yuiseki-x201s kernel: [ 636.551488] RTMPSetPhyMode: channel is out of range, use first channel=1