Skip to content

Instantly share code, notes, and snippets.

View FilBot3's full-sized avatar
😀
Working hard

FilBot3 FilBot3

😀
Working hard
View GitHub Profile
@FilBot3
FilBot3 / ruby_rbenv_config.log
Created January 2, 2017 17:33
Ruby rbenv failing to build Ruby 2.4.0 on Solus 2017.01.01.0 64-bit (1.2.1)
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/home/predatorian/.rbenv/versions/2.4.0
## --------- ##
## Platform. ##
predatorian@solus-macbook ~/Documents/clang/json_test $ gcc -I/usr/local/include/yajl/ -I/usr/local/lib/ -o json_test.bin main.c
/tmp/ccYypEnE.o: In function `reformat_null':
main.c:(.text+0x1c): undefined reference to `yajl_gen_null'
/tmp/ccYypEnE.o: In function `reformat_boolean':
main.c:(.text+0x4e): undefined reference to `yajl_gen_bool'
/tmp/ccYypEnE.o: In function `reformat_number':
main.c:(.text+0x8b): undefined reference to `yajl_gen_number'
/tmp/ccYypEnE.o: In function `reformat_string':
main.c:(.text+0xc8): undefined reference to `yajl_gen_string'
/tmp/ccYypEnE.o: In function `reformat_map_key':
@FilBot3
FilBot3 / battletech_a_time_of_war_character_sheet.json
Last active February 15, 2017 05:05
Battletech's A Time of War Character Sheet
{
"personal_data": {
"name": "",
"player": "",
"height": 0,
"weight": 0,
"hair_color": "",
"eye_color": "",
"affiliation": "",
"extra_information": [""]
# mysql --user=zabbix --password --socket=/tmp/mysql.sock --database=controller --execute="SELECT id,expiration_date FROM controller.account ORDER BY id DESC LIMIT 1"
+----+-----------------+
| id | expiration_date |
+----+-----------------+
| 2 | 1487923200000 |
+----+-----------------+
#!/usr/bin/env ruby
#
#
require 'thor'
module HcVault
class Client
def initialize
require 'vault'
@FilBot3
FilBot3 / chef_ingredient_failed_to_downgrade.log
Created April 6, 2017 20:45
Chef-Ingredient failed to downgrade from Chef-Client 12.19 to 12.13
λ chef exec kitchen converge backend-1-centos-72
-----> Starting Kitchen (v1.15.0)
W, [2017-04-06T15:40:47.610329 #18544] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#frozen? defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
W, [2017-04-06T15:40:47.610329 #18544] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#frozen? defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
W, [2017-04-06T15:40:47.610829 #18544] WARN -- : You are setting a key that conflicts with a built-in method VariaModel::Attributes#frozen? defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
W, [2017-04-06T15:40:47.610829 #18544] WARN -- : You are setting a key that conflicts with a built-in
@FilBot3
FilBot3 / 01_generate_html_page.rb
Last active July 18, 2017 19:13
Ruby DSL for generating HTML and adding Tags as well as content.
#!/usr/bin/env ruby
#
# Creating a Ruby DSL
# => https://www.leighhalliday.com/creating-ruby-dsl
#
module Phil
class Html
# :html is the array holding the HTML Data.
# :indents is used to generate pretty XML.
@FilBot3
FilBot3 / Custom_Task_Rakefile.rb
Last active September 18, 2017 13:24
A Custom Rake Task for Rakefiles
#
# Documentation:
# https://lostechies.com/derickbailey/2009/09/17/how-a-net-developer-hacked-out-a-rake-task/
# https://lostechies.com/derickbailey/2009/09/18/an-alternate-way-to-handle-task-dependencies-in-custom-rake-tasks/
require 'rake'
require 'rake/tasklib'
module Phil
class FooTask < Rake::TaskLib
@FilBot3
FilBot3 / logstash_5.6.3_CSV_parse_failure.sh
Created October 11, 2017 19:00
Failure of LogStash 5.6.3 starting and parsing CSV Files.
predatorian3@device01 [13:47:08] ~/Downloads/logstash-5.6.3
$ bin/logstash -f logstash.conf
Sending Logstash's logs to /Users/predatorian3/Downloads/logstash-5.6.3/logs which is now configured via log4j2.properties
[2017-10-11T13:47:57,985][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"/Users/predatorian3/Downloads/logstash-5.6.3/modules/fb_apache/configuration"}
[2017-10-11T13:47:57,990][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"/Users/predatorian3/Downloads/logstash-5.6.3/modules/netflow/configuration"}
[2017-10-11T13:47:58,312][INFO ][logstash.pipeline ] Starting pipeline {"id"=>"main", "pipeline.workers"=>4, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>5, "pipeline.max_inflight"=>500}
[2017-10-11T13:47:58,525][INFO ][logstash.pipeline ] Pipeline main started
[2017-10-11T13:47:58,600][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
^C[2017-10-11
@FilBot3
FilBot3 / dim_ff57_web_console.log
Created December 31, 2017 20:16
Destiny Item Manager in Firefox 57 Web Developer Console on Windows 10
Content Security Policy: Directive ‘frame-src’ has been deprecated. Please use directive ‘child-src’ instead.
DIM v4.31.0 (release) - Please report any errors to https://www.reddit.com/r/destinyitemmanager
main-7b5bdb.js:1:202837
Sync: Storage will not be cleared except by explicit user action.
sync.service.js:21:8
Sync: Error loading from IndexedDBStorage
DOMError { name: "UnknownError", message: "The operation failed for reasons unrelated to the database itself and not covered by any other error code." }
sync.service.js:118:14
i/c</<
sync.service.js:118:14