Skip to content

Instantly share code, notes, and snippets.

View osak's full-sized avatar

Osamu Koga (osa_k) osak

View GitHub Profile
@osak
osak / MAGA-GPT3.5.txt
Created March 18, 2023 18:56
ChatGPTでシーザー暗号
If xbuut up nb nblf Bnfsjeb hsbuif boe.
Jg xbouf up nb nblg Bnftbhf hsbuif boe.
Kh ycpvg vq ocp dgcv Coguqwcn igtuv cpf.
Li zdqwh wr pcv ehdw Dphvrxdo jhuvw dqg.
Mj aerxi xs qdw feex Eqiwsyep kivwx erh.
Nk bfsyj yt rex gffy Frjxtzfq ljwxy fsi.
Ol cgtzk zu sfy hggz Gskyuagr mkxyz gtj.
Pm dhual av tgz ihha Htlzvbhs nlyza huk.
Qn eivbm bw uha jiib Iumawcit omzab ivl.
Ro fjwcn cx vib kjjc Jvnbxdju pnabc jwm.
@osak
osak / korea.svg
Created March 17, 2023 14:29
ChatGPT-4に書かせた韓国国旗SVG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@osak
osak / datadog-agent.diff
Created November 25, 2019 00:36
Build datadog-agent on NetBSD
diff --git a/pkg/collector/python/aggregator.go b/pkg/collector/python/aggregator.go
index 6e2070d62..7ef65df5c 100644
--- a/pkg/collector/python/aggregator.go
+++ b/pkg/collector/python/aggregator.go
@@ -16,7 +16,7 @@ import (
/*
#include <datadog_agent_rtloader.h>
-#cgo !windows LDFLAGS: -ldatadog-agent-rtloader -ldl
+#cgo !windows LDFLAGS: -ldatadog-agent-rtloader
glados% pkg-config --modversion pango
1.40.14
glados% pkg-config --modversion cairo
1.15.10
NoMethodError undefined method `to_message' for #<Gdk::MiraclePainter:046AC0A0 ptr=0633B100>
C:/Users/osak/.mikutter/plugin/favorited_count/favorited_count.rb:165:in `block (2 levels) in <top (required)>'
C:/Ruby22/lib/ruby/gems/2.2.0/gems/pluggaloid-1.0.2/lib/pluggaloid/filter.rb:26:in `call'
C:/Ruby22/lib/ruby/gems/2.2.0/gems/pluggaloid-1.0.2/lib/pluggaloid/filter.rb:26:in `filtering'
C:/Ruby22/lib/ruby/gems/2.2.0/gems/pluggaloid-1.0.2/lib/pluggaloid/event.rb:59:in `block (2 levels) in filtering'
C:/Ruby22/lib/ruby/gems/2.2.0/gems/pluggaloid-1.0.2/lib/pluggaloid/event.rb:58:in `each'
C:/Ruby22/lib/ruby/gems/2.2.0/gems/pluggaloid-1.0.2/lib/pluggaloid/event.rb:58:in `reduce'
C:/Ruby22/lib/ruby/gems/2.2.0/gems/pluggaloid-1.0.2/lib/pluggaloid/event.rb:58:in `block in filtering'
C:/Ruby22/lib/ruby/gems/2.2.0/gems/pluggaloid-1.0.2/lib/pluggaloid/event.rb:57:in `catch'
C:/Ruby22/lib/ruby/gems/2.2.0/gems/pluggaloid-1.0.2/lib/pluggaloid/event.rb:57:in `filtering'
puts "これはUTF-8のテキストです"
@osak
osak / a.rb
Last active August 29, 2015 14:16
require 'set'
require 'monitor'
log = []
END {
log << "end"
puts log
}
m = Monitor.new
h = Set.new
@osak
osak / a.S
Last active August 29, 2015 14:06
; gcc -v
; Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
; Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
; Target: x86_64-apple-darwin13.3.0
; Thread model: posix
;
; gcc -O -m32 a.c
00001f30 <_main>:
1f30: 55 push %ebp
1f31: 89 e5 mov %esp,%ebp
@osak
osak / gist:37a9a9e99f7f63ed11c2
Last active August 29, 2015 14:03
クソ広告
http://ad.smaad.jp/redirectMarket.php?r=http%3A%2F%2Fapp-adforce.jp%2Fad%2Fp%2Fr%3F_site%3D11747%26_article%3D71660%26_link%3D1861004%26_image%3D1861004%26suid%3Ddb3400c900ec983ffac150d5ff3ed009%26sad%3D52078863
挙動:
1. Pixivを普通に閲覧していると、ページの読み込みを失敗した云々というconfirmが出る(ただし発行元がpixivではない怪しいドメイン)
2. cancelを押すと、上のURLにリダイレクトする
3. さらにリダイレクトされ、App StoreでDMM恋活に飛ばされる
環境:
iPad2(iOS6.1.3), Safari
Plugin.create(:sakuratrick) do
command(
:sakuratrick,
name: '桜Trick',
condition: lambda{|_| true},
visible: true,
role: :timeline
) do
Service.primary.post(:message => "桜Trick(#{Time.now.strftime("%H:%M")})")
end