Skip to content

Instantly share code, notes, and snippets.

View jdoss's full-sized avatar

Joe Doss jdoss

View GitHub Profile
$ cat Gemfile
source "http://rubygems.org"
group :development do
gem 'rake', '~> 10.0.3'
gem 'rack', '~> 1.5.0'
gem 'jekyll', '~> 0.12.0'
gem 'redcarpet', '~> 2.2.2'
gem 'pygments.rb', '~> 0.3.4'
gem 'RedCloth', '~> 4.2.9'
# pecl install memcached
downloading memcached-2.1.0.tgz ...
Starting to download memcached-2.1.0.tgz (39,095 bytes)
..........done: 39,095 bytes
11 source files, building
running: phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
$ dmesg
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.11.0-0.rc1.git4.1.fc20.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 4.8.1 20130717 (Red Hat 4.8.1-5) (GCC) ) #1 SMP Sun Jul 21 20:50:04 UTC 2013
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.11.0-0.rc1.git4.1.fc20.x86_64 root=/dev/mapper/bfx0-root ro rd.md=0 rd.dm=0 rd.lvm.lv=bfx0/root vconsole.keymap=us rd.luks.uuid=luks-0e0090d7-cce4-497c-9b1a-0b1b5f4e3f7a rd.lvm.lv=bfx0/swap rhgb quiet LANG=en_US.UTF-8
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009cbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009cc00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
# dmesg
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.9.9-302.fc19.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 4.8.1 20130603 (Red Hat 4.8.1-1) (GCC) ) #1 SMP Sat Jul 6 13:41:07 UTC 2013
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.9.9-302.fc19.x86_64 root=/dev/mapper/bfx0-root ro rd.md=0 rd.dm=0 rd.lvm.lv=bfx0/root vconsole.keymap=us rd.luks.uuid=luks-0e0090d7-cce4-497c-9b1a-0b1b5f4e3f7a rd.lvm.lv=bfx0/swap rhgb quiet
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009cbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009cc00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000bfe6ffff] usable
@jdoss
jdoss / gist:9519164
Created March 12, 2014 23:50
R1Soft Crashing aacraid on OpenVZ 2.6.32-042stab081.8
Mar 12 18:36:50 leeloo kernel: [11074484.695383] aacraid: Host adapter abort request (0,0,0,0)
Mar 12 18:36:50 leeloo kernel: [11074484.695429] aacraid: Host adapter reset request. SCSI hang ?
Mar 12 18:37:46 leeloo kernel: [11074540.698036] aacraid: Host adapter abort request (0,0,0,0)
Mar 12 18:37:46 leeloo kernel: [11074540.698085] aacraid: Host adapter reset request. SCSI hang ?
Mar 12 18:38:07 leeloo kernel: [11074561.065129] INFO: task litespeed:105706 blocked for more than 120 seconds.
Mar 12 18:38:07 leeloo kernel: [11074561.065153] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Mar 12 18:38:07 leeloo kernel: [11074561.065175] litespeed D ffff880172f62780 0 105706 10801 103 0x00000004
Mar 12 18:38:07 leeloo kernel: [11074561.065184] ffff88008957f598 0000000000000086 0000000000000000 00000001a02cb4cb
Mar 12 18:38:07 leeloo kernel: [11074561.065191] ffff8800ad32c1c0 0000000000000000 ffff88008957f528 ffffffff8109d237
Mar 12 18:38:07 leeloo kernel: [11074561.065198]

Keybase proof

I hereby claim:

  • I am jdoss on github.
  • I am jdoss (https://keybase.io/jdoss) on keybase.
  • I have a public key whose fingerprint is 82F1 9C0A CFAD DA8C 7102 54E2 C350 035D 3C5D 643C

To claim this, I am signing this object:

@jdoss
jdoss / gist:2d3cb298a3d8eab95dd4
Created August 27, 2014 16:45
The correct method of verifying your ISO you burned to CD is correct.
dd if=/dev/sr0 bs=2048 count=`echo $(( $(ls -l your_iso_file.iso | awk '{ print $5 }') / 2048 ))` |md5sum
@jdoss
jdoss / bluepill_error
Created October 18, 2014 02:16
Bluepill error on discourse install
/home/discourse/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.2.0.beta2/lib/active_support/number_helper.rb:3:in `<module:NumberHelper>': uninitialized constant ActiveSupport::Autoload (NameError)
from /home/discourse/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.2.0.beta2/lib/active_support/number_helper.rb:2:in `<module:ActiveSupport>'
from /home/discourse/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.2.0.beta2/lib/active_support/number_helper.rb:1:in `<top (required)>'
from /home/discourse/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/discourse/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/discourse/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.2.0.beta2/lib/active_support/core_ext/numeric/conversions.rb:2:in `<top (required)>'
from /home/discourse/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /
@jdoss
jdoss / nginx_pagespeed_modsec.txt
Created January 26, 2015 05:04
nginx-1.6.2 + mod_security + ngx_pagespeed-release-1.9.32.3-beta = ngx_pagespeed.cc(1811)] Check failed: url.IsWebValid().
2015/01/25 22:55:29 [alert] 2398#0: [ngx_pagespeed 1.9.32.3-4448] [0125/225529:FATAL:ngx_pagespeed.cc(1811)] Check failed: url.IsWebValid().
nginx: worker process() [0x515a0a]
nginx: worker process() [0x49f2fd]
nginx: worker process() [0x512922]
nginx: worker process() [0x4a91fc]
nginx: worker process() [0x4abd87]
nginx: worker process() [0x468081]
nginx: worker process() [0x46aade]
nginx: worker process() [0x45dcae]
nginx: worker process() [0x49d74f]