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 / Jenkins_Authenticate_and_use_Crumb_curl.sh
Created January 10, 2019 15:17
Using cURL to authenticate and using Jenkins' Crumb identifier.
#!/bin/bash
# CloudBees CSRF Explained
# => https://support.cloudbees.com/hc/en-us/articles/219257077-CSRF-Protection-Explained
# How to install Jenkins Plugins via the API
# => https://stackoverflow.com/questions/9765728/how-to-install-plugins-in-jenkins-with-the-help-of-jenkins-remote-access-api
# => https://gist.github.com/basmussen/8182784
# Using Jenkins' Crumb
# => https://gist.github.com/dasgoll/455522f09cb963872f64e23bb58804b2
@FilBot3
FilBot3 / w3css_JS_change_element_value.html
Created January 9, 2019 04:47
Using w3css, JavaScript and HTML5 change the values of an HTML Element.
<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<body>
<p>Ammo: <text id="ammo">20</text></p>
<button class="w3-button w3-circle w3-red" onclick="decrement_ammo('ammo')">-</button>
<button class="w3-button w3-circle w3-green" onclick="increment_ammo('ammo')">+</button>
<script>
function decrement_ammo(element_id) {
<!DOCTYPE html>
<html>
<head>
<title>Phillip Dudley - Savage Worlds Character Sheet</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
</head>
<body>
<!-- Sidebar is hidden by default because of the style="display:none;" setting.-->
@FilBot3
FilBot3 / gist:8d1396ef64f91492cc816aadfcb366aa
Created December 19, 2018 21:47 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
2018-11-08_17:10:55.65744 ElasticSearch pre-start script started.
2018-11-08_17:10:55.65779 Failed to fix unicast host config: undefined method `[]' for nil:NilClass
2018-11-08_17:10:55.65781 Exiting cleanly anyway to allow runit to continue.
2018-11-08_17:10:57.45881 [2018-11-08T11:10:57,456][WARN ][o.e.c.l.LogConfigurator ] ignoring unsupported logging configuration file [/var/opt/chef-backend/elasticsearch/config/logging.yml], logging is configured via [/var/opt/chef-backend/elasticsearch/config/log4j2.properties]
2018-11-08_17:10:57.49387 [2018-11-08T11:10:57,489][WARN ][o.e.b.Natives ] unable to load JNA native support library, native methods will be disabled.
2018-11-08_17:10:57.49397 java.lang.UnsatisfiedLinkError: /tmp/jna-414996365/jna8365826171152675773.tmp: /tmp/jna-414996365/jna8365826171152675773.tmp: failed to map segment from shared object: Operation not permitted
2018-11-08_17:10:57.49399 at java.lang.ClassLoader$NativeLibrary.load(Native Method) ~[?:1.8.0_144]
2018-11-08_17:10:57
@FilBot3
FilBot3 / phil_ruby_dsl_example_01.rb
Created September 24, 2018 02:52
An example of a Ruby DSL for my reference.
#!/usr/bin/env ruby
module PhilDsl
def self.spork(&block)
if block_given?
if block.arity == 1
yield self
else
instance_eval(&block)
end
@FilBot3
FilBot3 / vagrant-openstack-provider_errors_00.log
Created September 17, 2018 15:23
Errors with vagrant-openstack-provider v0.13.0
$ rake vagrant:os:cmd["up"]
vagrant up
2018-09-17 10:18 | INFO | Authenticating on Keystone
2018-09-17 10:18 | INFO | Authentication on project TEAMORG with user user01
2018-09-17 10:18 | DEBUG | request => method : POST
2018-09-17 10:18 | DEBUG | request => url : http://10.144.12.11:5000/v3/auth/tokens
2018-09-17 10:18 | DEBUG | request => headers : {:content_type=>:json, :accept=>:json}
2018-09-17 10:18 | DEBUG | request => body : {"auth":{"identity":{"methods":["password"],"password":{"user":{"name":"user01","domain":{"name":"northamerica.company.net"},"password":"****"}}},"scope":{"project":{"name":"TEAMORG","domain":{"name":"northamerica.company.net"}}}}}
@FilBot3
FilBot3 / ruby_bundler_chef_example.rb
Last active September 17, 2018 00:26
Examples of how I use Bundler in my Ruby files taking pointers from how ChefDK calls their gems.
# Using Bundler in a Ruby Script
# => https://bundler.io/v1.16/guides/bundler_setup.html
#
# Trying to run the same setup that I do on my MacOS, and Linux boxes where
# I use Bundler, but in a Ruby Script using a Gemfile to specify the versions
# I want when I might have multiple versions of the same library.
#
# I stole this from the Chef-DK and how they call their Gem dependencies, but
# I like this method as its using bundler and a Gemfile to lock down all the
# dependencies rather than putting them all in my "binary" file.
require 'aws-sdk'
ec2_cmeng = Aws::EC2::Client.new(
profile: 'cmprod',
region: 'ca-central-1'
)
ami_snapshot_id = ARGV[0]
if ENV['AWS_REGION'] == 'ca-central-1'
@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