Skip to content

Instantly share code, notes, and snippets.

View rhenium's full-sized avatar
🥐

Kazuki Yamaguchi rhenium

🥐
View GitHub Profile
@rhenium
rhenium / gist:8179348
Last active January 1, 2016 17:49
mikutter develop の profile タブがおかしいの(再起動後復活してしまう)の応急措置
diff --git a/core/plugin/profile/profile.rb b/core/plugin/profile/profile.rb
index a56d87e..3a7daa4 100644
--- a/core/plugin/profile/profile.rb
+++ b/core/plugin/profile/profile.rb
@@ -112,9 +112,9 @@ Plugin.create :profile do
on_gui_destroy do |widget|
notice "on_gui_destroy: #{widget}"
- if widget.is_a? Plugin::GUI::Timeline
- timeline_storage.delete(widget.slug)
@rhenium
rhenium / gist:8189905
Created December 30, 2013 23:20
pstore
 rhenium  ~/mikutter  ./mikutter.rb    develop 
/home/rhenium/mikutter/core/mui/cairo_cell_renderer_message.rb: line 10
GLib-GObject-WARNING **:Attempt to add property GtkCellRendererMessage::message-id after class was initialised
gui_pane_join_window :default, :default
gui_pane_join_window :"__Plugin::GUI::Pane_24895_52c0c5a0_ef50e873", :default
/home/rhenium/mikutter/core/mui/gtk_extension.rb: line 162
Gtk-CRITICAL **:gtk_box_pack: assertion 'GTK_IS_WIDGET (child)' failed
/home/rhenium/.rbenv/versions/2.1.0/lib/ruby/2.1.0/pstore.rb:475: [BUG] Segmentation fault at 0x00000001000018
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
@rhenium
rhenium / gist:8767927
Last active August 29, 2015 13:55
だれかいい方法おしえて
class Sample
def hello
puts "hello"
end
def hello2
puts "hello2"
end
end
/var/webapps/aclog/lib/aclog/receiver/collector_connection.rb:38: [BUG] Segmentation fault
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-solaris2.11]
-- Control frame information -----------------------------------------------
c:0020 p:---- s:0083 e:000082 CFUNC :feed_each
c:0019 p:0011 s:0079 e:000078 METHOD /var/webapps/aclog/lib/aclog/receiver/collector_connection.rb:38 [FINISH]
c:0018 p:---- s:0075 e:000074 CFUNC :run_machine
c:0017 p:0267 s:0072 e:000071 METHOD /opt/local/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187
c:0016 p:0084 s:0065 E:002458 METHOD /var/webapps/aclog/lib/aclog/receiver/worker.rb:29
c:0015 p:0174 s:0060 E:000598 BLOCK /opt/local/lib/ruby/gems/2.0.0/gems/daemon-spawn-0.4.2/lib/daemon_spawn.rb:51 [FINISH]
./start.rb: [BUG] Segmentation fault at 0x007fbb86dabce8
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0001 p:0000 s:0002 E:000338 TOP [FINISH]
-- C level backtrace information -------------------------------------------
ruby(+0x1871dc) [0x7fbb8458a1dc]
ruby(+0x1f9cb3) [0x7fbb845fccb3]
@rhenium
rhenium / filter_track.rb
Created February 15, 2014 08:15
mikutter のライセンスに準じます
Plugin.create :filter_track do
querybox = ::Gtk::Entry.new()
querycont = ::Gtk::VBox.new(false, 0)
searchbtn = ::Gtk::Button.new(_('検索'))
querycont.
closeup(::Gtk::HBox.new(false, 0).
pack_start(querybox).
closeup(searchbtn))
@rhenium
rhenium / gist:9035454
Created February 16, 2014 14:52
mikutter おちた
./mikutter.rb: [BUG] Segmentation fault at 0x00000000000038
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0001 p:0000 s:0002 E:0025d8 TOP [FINISH]
-- C level backtrace information -------------------------------------------
ruby(+0x1871dc) [0x7f32dc25c1dc]
ruby(+0x1f9cb3) [0x7f32dc2cecb3]
(function() {
var scheme, host, path;
if (location.hostname == "twitter.com") {
scheme = "http"; host = "aclog.koba789.com";
var matches = location.pathname.match(/^(\/\w{1,20})(\/favorites)?(?:(?:\/status(?:es)?)(\/\d+))?$/);
if (matches) {
if (matches[2]) {
path = matches[1] + "/discoveries";
} else if (matches[3]) {
path = "/i" + matches[3];
@rhenium
rhenium / .zshrc
Created March 30, 2014 11:29
Powerline 的なやつ(Powerline 重いっす)
function weakline_precmd() {
last_code=$?
export PROMPT="$(/srv/sh/weakline-zsh/weakline -m left -l $last_code)"
export RPROMPT="$(/srv/sh/weakline-zsh/weakline -m right -l $last_code)"
}
precmd_functions+=(weakline_precmd)
@rhenium
rhenium / gist:10718767
Created April 15, 2014 09:50
SmartOS で EventMachine gem の native extensions がコンパイルできないたすけて
[root@gitlab /home/git/gitlab]# gem install eventmachine
Fetching: eventmachine-1.0.3.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing eventmachine:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for main() in -lssl... yes
checking for main() in -lcrypto... yes
checking for openssl/ssl.h... yes