Skip to content

Instantly share code, notes, and snippets.

View FilBot3's full-sized avatar
๐Ÿ˜€
Working hard

FilBot3 FilBot3

๐Ÿ˜€
Working hard
View GitHub Profile
user01@inspircdserver01.local.net:~ ( inspircdserver01.local.net )
09:30:27 $ sudo systemctl status inspircd
* inspircd.service - InspIRCd IRC Daemon
Loaded: loaded (/etc/systemd/system/inspircd.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Aug 01 09:30:27 inspircdserver01.local.net inspircd[22190]: (C) InspIRCd Development Team.
Aug 01 09:30:27 inspircdserver01.local.net inspircd[22190]: Developers:
Aug 01 09:30:27 inspircdserver01.local.net inspircd[22190]: Brain, FrostyCoolSlug, w00t, Om, Special, peavey
Aug 01 09:30:27 inspircdserver01.local.net inspircd[22190]: aquanight, psychon, dz, danieldg, jackmcbarn
@FilBot3
FilBot3 / go_get_strace_output.sh
Created September 20, 2016 13:33
GO GET strace output
execve("/usr/local/go/bin/go", ["go", "get", "-v", "-x", "golang.org/x/crypto/bcrypt"], [/* 32 vars */]) = 0
brk(0) = 0x2633000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcaa9760000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=45533, ...}) = 0
mmap(NULL, 45533, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fcaa9754000
close(3) = 0
open("/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240l\0\0\0\0\0\0"..., 832) = 832
---
owner: "Phillip Dudley"
initialized: "2012-10-31 15:50:13.793654 +0000 UTC"
time_data:
- action: "start"
time: "2012-10-31 15:50:13.793654 +0000 UTC"
- action: "stop"
time: "2012-10-31 16:00:00.000000 +0000 UTC"
@FilBot3
FilBot3 / rbenv_ruby_gem_failed_gem_install_tk.sh
Last active September 25, 2016 23:33
rbenv installed/built Ruby 2.3.1 unable to install tk gem
predatorian@reincarnate:~/Downloads/ruby-2.3.1
$ RBENV_VERSION=2.3.1 gem install tk
Building native extensions. This could take a while...
ERROR: Error installing tk:
ERROR: Failed to build gem native extension.
current directory: /home/predatorian/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/tk-0.1.1/ext/tk
/home/predatorian/.rbenv/versions/2.3.1/bin/ruby -r ./siteconf20160925-4025-nw2gr5.rb extconf.rb
check functions.checking for ruby_native_thread_p() in ruby.h... yes
checking for rb_errinfo() in ruby.h... yes
@FilBot3
FilBot3 / vault-server.hcl
Last active December 10, 2021 16:54
HashiCorp Vault SystemD Service Unit file
backend "file" {
path = "/opt/HashiCorp/Vault/secrets"
}
listener "tcp" {
address = "127.0.0.1:8200"
tls_disable = 1
}
@FilBot3
FilBot3 / mkpypasswd.py
Created October 24, 2016 14:04
Generate a SHA512 Password Hash using Python3's Password Prompt and Crypt Library.
#!/usr/bin/env python
#
# This will not work on Windows because Windows naturally lacks the encryption
# and security libraries that GNU/Linux does. Ie. does not natively have
# OpenSSL installed and its development libraries.
#
import getpass
import crypt
@FilBot3
FilBot3 / ruby_attr_lessons.rb
Created October 26, 2016 15:16
Ruby's Accessor Methods
#!/usr/bin/env ruby
#
# RubyDocs: http://ruby-doc.org/core-2.3.1/Module.html#method-i-attr_accessor
#
module RubyLearning
class AttrAccessor
attr_accessor :name
end
@FilBot3
FilBot3 / ruby_module_example.rb
Created November 15, 2016 16:54
An Example of Ruby's Module and a method not in a class.
module TestStuff
def self.fart_a_bunch
puts "Fart Fart Fart Fart"
end
end
TestStuff.fart_a_bunch
@FilBot3
FilBot3 / CentOS_6_VBox_GuestAdditions.sh
Created November 15, 2016 22:03
Building CentOS 6 Virtualbox Guest Additions
#!/bin/bash
# Comment to turn off verbosity.
set -x
yum install -y kernel-devel-`uname -r`
cd /usr/src/kernels/`uname -r`/include/drm/
ln -s /usr/include/drm/drm.h drm.h
ln -s /usr/include/drm/drm_sarea.h drm_sarea.h
ln -s /usr/include/drm/drm_mode.h drm_mode.h
@FilBot3
FilBot3 / elk_logstash_jdbc.conf
Last active December 7, 2016 16:24
ELK LogStash config for JDBC log gathering
input {
jdbc {
jdbc_driver_library => "/var/sqljdbc_4.1/enu/sqljdbc41.jar"
jdbc_driver_class => "com.microsoft.sqlserver.jdbc.SQLServerDriver"
jdbc_connection_string => "jdbc:sqlserver://DATABSESERVER;user=USER;password=PASSWORD;"
jdbc_user => "USER"
# parameters => { "DATE" => "2016-10-19" }
schedule => "* * * * *"
#clean_run => true
statement => "SELECT ID,Date,Level,Application,Logger,Message,MachineName,UserName,CallSite,Thread,Exception,Stacktrace,Client FROM [service_Cloud].[dbo].[service_Log] WHERE ID > :sql_last_value and (Level <> 'Debug' AND Level <> 'Info' OR Logger LIKE '%Metric%')"