Skip to content

Instantly share code, notes, and snippets.

View PragTob's full-sized avatar

Tobias Pfeiffer PragTob

View GitHub Profile
Inspecting 164 files
WCWCCWWCCCWWCCWCCCWWWCWWCCWCWCWCCCCCWCWWWWWCCWWWWWCWWWWWWWWWCWWWWCWCCCWCC.CCCCCCCCCC.CCCWCC.CCCCWCCCWCWWCWWCCCCWWCWWCWWCCCWWWCCWCWCCC.CWCWCCW.CCWCCCC.CCCCCW.CCCCW.W
Offenses:
lib/ext/highlighter/common.rb:3:1: C: Missing top-level module documentation comment.
module HH::Syntax
^^^^^^
lib/ext/highlighter/common.rb:3:8: C: Use nested module/class definitions instead of compact style.
module HH::Syntax
@PragTob
PragTob / segfault_log
Created September 8, 2014 19:54
SWT 4.4 error for shoes4
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f2696aba4f9, pid=2161, tid=139807017760512
#
@PragTob
PragTob / shoes4_rubocop_report
Created October 29, 2014 10:50
Shoes 4 rubocop report
Inspecting 164 files
WCWCCWWCCCWWWCCWCCCWWWCWWCCWCWCWWCCCCWCWWWWWCCWWWWWCWWWWWWWWWCWWWWCWCCCWCC.CCCCCCCCC.CCWCC.CCWCWCCCWCWWCWWCCCWWWCWWCCWWCCCWCWCCWCWCCC.CCCWCCW.CCWCCCCC.CCCCW.CCCCW.W
Offenses:
lib/ext/highlighter/common.rb:3:1: C: Missing top-level module documentation comment.
module HH::Syntax
^^^^^^
lib/ext/highlighter/common.rb:3:8: C: Use nested module/class definitions instead of compact style.
module HH::Syntax
@PragTob
PragTob / shoes_r_rubocop_utofix
Created October 29, 2014 10:53
Shoes 4 rubocop autofix report
Inspecting 164 files
WCWCCWWCCCWWWCCWCCCWWWCWWCCWCWCWWCCCCWCWWWWWCCWWWWWCWWWWWWWWWCWWWWCWCCCWCC.CCCCCCCCC.CCWCC.CCWCWCCCWCWWCWWCCCWWWCWWCCWWCCCWCWCCWCWCCC.CCCWCCW.CCWCCCCC.CCCCW.CCCCW.W
Offenses:
lib/ext/highlighter/common.rb:3:1: C: Missing top-level module documentation comment.
module HH::Syntax
^^^^^^
lib/ext/highlighter/common.rb:3:8: C: Use nested module/class definitions instead of compact style.
module HH::Syntax
@PragTob
PragTob / istask11.rb
Created December 8, 2014 17:46
#myfirstrubyscript
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
#
# This exploit affects the debian Linuxmachine from our IS Special task.
#
include Exploit::Remote::Tcp
def initialize(info = {})
@PragTob
PragTob / rake_spec_jruby_head
Created February 1, 2015 10:39
shoes rake spec on jruby-head
tobi@airship ~/github/shoes4 $ time rake spec
jruby --debug --1.9 -Ispec -S rspec --tty -rshoes-core/spec/spec_helper shoes-core/spec/shoes/point_spec.rb shoes-core/spec/shoes/keyrelease_spec.rb shoes-core/spec/shoes/constants_spec.rb shoes-core/spec/shoes/app_spec.rb shoes-core/spec/shoes/star_spec.rb shoes-core/spec/shoes/packager_spec.rb shoes-core/spec/shoes/image_spec.rb shoes-core/spec/shoes/input_box_spec.rb shoes-core/spec/shoes/text_block_dimensions_spec.rb shoes-core/spec/shoes/renamed_delegate_spec.rb shoes-core/spec/shoes/border_spec.rb shoes-core/spec/shoes/text_block_spec.rb shoes-core/spec/shoes/keypress_spec.rb shoes-core/spec/shoes/oval_spec.rb shoes-core/spec/shoes/internal_app_spec.rb shoes-core/spec/shoes/shape_spec.rb shoes-core/spec/shoes/radio_spec.rb shoes-core/spec/shoes/font_spec.rb shoes-core/spec/shoes/list_box_spec.rb shoes-core/spec/shoes/dimensions_spec.rb shoes-core/spec/shoes/animation_spec.rb shoes-core/spec/shoes/link_spec.rb shoes-core/spec/shoes/widget_spec.rb shoes-core
require 'benchmark/ips'
class FakeDimension
def initialize
@margin_start = 10
@margin_start_relative = false
end
def relative?(result)
result.is_a?(Float) && result <= 1
@PragTob
PragTob / more_meta.rb
Created July 20, 2015 19:15
meta definitions with more work
require 'benchmark/ips'
class Try
def initialize(array)
@array = array
end
define_method :meta_concat_sort do |array|
value = instance_variable_get '@' + :array.to_s
@PragTob
PragTob / cashlog1
Created September 13, 2011 16:00
Error log from shoes (RC) crash on OSX lion
Process: shoes-bin [45564]
Path: /Applications/Shoes.app/Contents/MacOS/./shoes-bin
Identifier: org.hackety.shoes
Version: 0.r1696 (???)
Build Info: Shoes-1200000~1
Code Type: X86-64 (Native)
Parent Process: bash [45561]
Date/Time: 2011-09-13 11:30:21.654 -0400
OS Version: Mac OS X 10.7 (11A511)
@PragTob
PragTob / crashlog-1.txt
Created September 14, 2011 11:38
Crashlog from the new RC on OSX lion
Process: shoes-bin [50730]
Path: /Applications/Shoes.app/Contents/MacOS/./shoes-bin
Identifier: org.hackety.shoes
Version: 0.r1697 (???)
Build Info: Shoes-1200000~1
Code Type: X86-64 (Native)
Parent Process: bash [50725]
Date/Time: 2011-09-14 07:33:00.948 -0400
OS Version: Mac OS X 10.7 (11A511)