Skip to content

Instantly share code, notes, and snippets.

View two7sclash-zz's full-sized avatar
🕶️

James Fishwick two7sclash-zz

🕶️
View GitHub Profile
@two7sclash-zz
two7sclash-zz / apache_log
Last active August 29, 2015 14:08
apache_log
This file has been truncated, but you can view the full file.
[Sat Oct 25 15:28:15.887469 2014] [proxy_fcgi:error] [pid 6022:tid 140502254868224] [client 108.162.241.88:59851] AH01071: Got error 'PHP message: WordPress database error Can't find record in 'wp_wo1o76_options' for query SELECT autoload FROM wp_wo1o76_options WHERE option_name = 'rewrite_rules' made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, create_post_types, flush_rewrite_rules, WP_Rewrite->flush_rules, delete_option\nPHP message: WordPress database error Can't find record in 'wp_wo1o76_options' for query SELECT option_value FROM wp_wo1o76_options WHERE option_name = 'rewrite_rules' LIMIT 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, create_post_types, flush_rewrite_rules, WP_Rewrite->flush_rules, WP_Rewrite->wp_rewrite_rules, get_option\nPHP message: Word
@two7sclash-zz
two7sclash-zz / mysql_log
Last active August 29, 2015 14:08
mysql_log
141025 15:29:35 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
141025 15:29:35 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
141025 15:29:39 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
141025 15:29:39 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
141025 15:29:39 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
141025 15:29:39 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
141025 15:29:39 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
141025 15:29:39 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
141025 15:29:40 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
141025 15:29:40 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
@two7sclash-zz
two7sclash-zz / mysql_log1030
Created October 30, 2014 19:27
mysql_log1030
141029 23:57:48 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
141029 23:57:48 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
141029 23:57:48 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
141029 23:57:48 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
141029 23:57:48 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
141029 23:57:48 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
141029 23:57:48 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
141029 23:57:48 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
141029 23:57:48 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
141029 23:57:48 [ERROR] Got error 134 when reading table './bitnami_wordpress/wp_wo1o76_options'
@two7sclash-zz
two7sclash-zz / apache_log1030
Created October 30, 2014 19:28
apache_log1030
[Thu Oct 30 17:23:17.718151 2014] [pagespeed:warn] [pid 10587:tid 139790405871360] [mod_pagespeed 1.7.30.4- @10587] Fetch timed out: http://10.142.197.224/2012/07/the-end-is-the-beginning-is-the-end-part-iii-the-trellis-of-the-mind/apple-touch-icon-144x144-precomposed.png (1) waiting for 50 ms
[Thu Oct 30 17:23:18.013782 2014] [pagespeed:warn] [pid 2383:tid 139790397478656] [mod_pagespeed 1.7.30.4- @2383] Fetch timed out: http://10.142.197.224/2009/08/hello-woman-its-me-jesus-jesus-mary-and/apple-touch-icon-precomposed.png (1) waiting for 50 ms
[Thu Oct 30 17:23:18.105340 2014] [pagespeed:warn] [pid 5730:tid 139790405871360] [mod_pagespeed 1.7.30.4- @5730] Fetch timed out: http://10.142.197.224/2011/12/waning-thoughts-on-the-waning-year/apple-touch-icon-114x114-precomposed.png (1) waiting for 50 ms
[Thu Oct 30 17:23:20.828693 2014] [pagespeed:warn] [pid 19065:tid 139790397478656] [mod_pagespeed 1.7.30.4- @19065] Fetch timed out: http://10.142.197.224/2013/12/another-week-ends-francis-i-and-god-as-love-llewyn-
bitnami@ip-10-171-106-248:~$ sudo tail -200 /opt/bitnami/apache2/logs/error_log
[Mon Nov 17 22:43:32.713034 2014] [pagespeed:warn] [pid 14388:tid 140202091128640] [mod_pagespeed 1.7.30.4- @14388] RateController: drop deferred fetch of http://10.171.106.248/2014/01/from-a-view-to-a-death-christianity-for-the-dying-from-pz/apple-touch-icon-144x144-precomposed.png on shutdown
[Mon Nov 17 22:43:32.713100 2014] [pagespeed:warn] [pid 14388:tid 140202091128640] [mod_pagespeed 1.7.30.4- @14388] RateController: drop deferred fetch of http://10.171.106.248/2014/01/from-a-view-to-a-death-christianity-for-the-dying-from-pz/apple-touch-icon-114x114-precomposed.png on shutdown
[Mon Nov 17 22:43:32.713157 2014] [pagespeed:warn] [pid 14388:tid 140202091128640] [mod_pagespeed 1.7.30.4- @14388] RateController: drop deferred fetch of http://10.171.106.248/2014/01/from-a-view-to-a-death-christianity-for-the-dying-from-pz/apple-touch-icon-72x72-precomposed.png on shutdown
[Mon Nov 17 22:43:32.713219 2014] [pagespeed:warn] [pid 14
@two7sclash-zz
two7sclash-zz / gist:5081188dd00e8fc6bfcb
Created November 20, 2014 22:16
top -n 10 -b > top-output.txt
top - 17:03:31 up 1 day, 19:43, 2 users, load average: 4.93, 6.14, 13.40
Tasks: 168 total, 7 running, 159 sleeping, 2 stopped, 0 zombie
%Cpu(s): 85.9 us, 9.6 sy, 0.0 ni, 4.3 id, 0.0 wa, 0.1 hi, 0.0 si, 0.0 st
KiB Mem: 3854824 total, 2021624 used, 1833200 free, 57804 buffers
KiB Swap: 2097148 total, 28000 used, 2069148 free. 737256 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
25824 mysql 20 0 3167808 422624 5896 S 59.4 11.0 2:21.33 mysqld.bin
28268 daemon 20 0 332916 97292 30356 R 17.8 2.5 0:02.83 .php-fpm.b+
28375 daemon 20 0 289900 53064 26156 R 17.8 1.4 0:00.55 .php-fpm.b+
var soundex = function (s) {
var a = s.toLowerCase().split(''),
f = a.shift(),
r = '',
codes = {
a: '', e: '', i: '', o: '', u: '',
b: 1, f: 1, p: 1, v: 1,
c: 2, g: 2, j: 2, k: 2, q: 2, s: 2, x: 2, z: 2,
d: 3, t: 3,
l: 4,
@two7sclash-zz
two7sclash-zz / cengage_convert.rb
Last active September 26, 2016 15:38 — forked from rharriso/cengage_convert.rb
methods for converting filenames
require 'fileutils'
require 'securerandom'
#
# all files must match cengage file names
#
def cengagify_files(folder_path)
Dir.glob("#{folder_path}/**/*").each do |f|
# skip directories and simple names
next if File.directory?(f)
uname -s identifies a Cygwin environment.
uname -m identifies an i686 environment.
Found Cygwin/MSYS G++ compiler: i686-pc-cygwin-g++
Found MinGW G++ compiler: i686-w64-mingw32-g++
Writing config.mk
Build info: none
rm -fr build
mkdir -p build/mingw/
touch build/mingw/.mkdir
Copying src/shared/PrecompiledHeader.h to build/mingw/PrecompiledHeader.h
@two7sclash-zz
two7sclash-zz / JIRA changeToSubTaskAndLink.groovy
Created May 27, 2016 14:29 — forked from cben0ist/JIRA changeToSubTaskAndLink.groovy
Jira script runner : change task to SubTask and link to parent