Skip to content

Instantly share code, notes, and snippets.

Gavin Williams fatmcgav

Block or report user

Report or block fatmcgav

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View end.gcode
;End GCode begin
M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it)
G90 ;absolute positioning
G92 E0
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z235 E-1 F80 ;move Z up a bit and retract filament even more
G1 X0 F3000 ;move X to min endstops, so the head is out of the way
G1 Y250 F3000 ;so the head is out of the way and Plate is moved forward
M84 ;steppers off
View keybase.md

Keybase proof

I hereby claim:

  • I am fatmcgav on github.
  • I am fatmcgav (https://keybase.io/fatmcgav) on keybase.
  • I have a public key ASD0XcaFCZiX-Mks82jnrcO9eIfchDmtmhBh4-QHHBB5tAo

To claim this, I am signing this object:

@fatmcgav
fatmcgav / padrino-grape-exception.log
Created Nov 3, 2017
PadrinoGrape with Padrino 0.14
View padrino-grape-exception.log
$ be padrino s
DEVEL - LOADING (0.0033s) /Users/gavinw/scratch/padrino-grape-example/api/api.rb
DEVEL - Removed constant Api from Object
DEVEL - Cyclic dependency reload for NoMethodError: undefined method `set_load_paths' for Padrino:Module
ERROR - NoMethodError - undefined method `set_load_paths' for Padrino:Module:
/Users/gavinw/.rvm/gems/ruby-2.4.0/bundler/gems/padrino-grape-e1973a964253/lib/padrino-grape/extend.rb:20:in `require_dependencies'
/Users/gavinw/.rvm/gems/ruby-2.4.0/bundler/gems/padrino-grape-e1973a964253/lib/padrino-grape/extend.rb:20:in `require_dependencies': undefined method `set_load_paths' for Padrino:Module (NoMethodError)
from /Users/gavinw/.rvm/gems/ruby-2.4.0/bundler/gems/padrino-grape-e1973a964253/lib/padrino-grape/extend.rb:26:in `setup_application!'
from /Users/gavinw/.rvm/gems/ruby-2.4.0/bundler/gems/padrino-grape-e1973a964253/lib/padrino-grape/extend.rb:55:in `included'
from /Users/gavinw/scratch/padrino-grape-example/api/api.rb:2:in `includ
@fatmcgav
fatmcgav / failed-padrino-start.log
Last active Oct 29, 2017
Padrino Grape routes example
View failed-padrino-start.log
$ be padrino s
DEVEL - LOADING (0.0054s) /Users/gavinw/Work/src/aurora/api/base.rb
DEVEL - Removed constant Aurora::API::Base from Aurora::API
DEVEL - Cyclic dependency reload for NameError: uninitialized constant Aurora::API::V1
DEVEL - LOADING (0.0090s) /Users/gavinw/Work/src/aurora/api/v1.rb
DEVEL - Removed constant Aurora::API::V1 from Aurora::API
DEVEL - Cyclic dependency reload for NameError: uninitialized constant Aurora::API::V1::Test
DEVEL - LOADING (0.0109s) /Users/gavinw/Work/src/aurora/api/v1/test.rb
DEVEL - Cyclic dependency reload for NameError: uninitialized constant Aurora::API::V1
INFO - (0.000271s) PRAGMA foreign_keys = 1
View librarianp-stack.trace
[Librarian] Resolving poolski-beats (< 1.0, >= 0) <https://github.com/SugarFactory/puppet-beats.git#0.8.1>
[Librarian] Checking manifests
[Librarian] --- No output
[Librarian] --- No output
[Librarian] --- No output
[Librarian] --- No output
[Librarian] --- No output
[Librarian] --> origin
[Librarian] --> origin/HEAD -> origin/master
[Librarian] --> origin/beta
@fatmcgav
fatmcgav / calling-class-java.pp
Last active Jul 12, 2016
Puppet Oracle Java RPM installation from Puppet fileserver source
View calling-class-java.pp
$java_major_version = '8'
$java_minor_version = '25'
$java_se = 'jdk'
$package_source = 'puppet:///packages/java'
class { '::base::software::java':
maj_version => $java_major_version,
min_version => $java_minor_version,
se => $java_se,
source => $package_source
@fatmcgav
fatmcgav / microservice::config_snippet.pp
Last active May 16, 2016
Config_snippet defined type
View microservice::config_snippet.pp
define microservice::config_snippet(
$file = $title,
$module = $caller_module_name,
$order = 'nil',
$template = true
) {
# Validate params
validate_string($file)
validate_bool($template)
@fatmcgav
fatmcgav / module_data_backend.rb.patch
Created May 16, 2016
Module_data_backend patch for scope issue
View module_data_backend.rb.patch
diff --git a/lib/hiera/backend/module_data_backend.rb b/lib/hiera/backend/module_data_backend.rb
index 8bed934..6987209 100644
--- a/lib/hiera/backend/module_data_backend.rb
+++ b/lib/hiera/backend/module_data_backend.rb
@@ -61,22 +62,33 @@ class Hiera
found = false
Hiera.debug("Looking up %s in Module Data backend" % key)
+ Hiera.debug("Module = #{scope['module']}")
+ Hiera.debug("Module_name = #{scope["module_name"]}")
@fatmcgav
fatmcgav / clc-test.tf
Created Mar 4, 2016
Terraform provisioner
View clc-test.tf
#
## Testing Terraform CLC support
#
# Setup CLC Terraform provider
provider "clc" {
username = "xxx"
password = "xxx"
account = "IAST"
}
@fatmcgav
fatmcgav / Puppet agent error
Last active Feb 15, 2016
Invalid relationship when using hiera_resources
View Puppet agent error
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid relationship: Cs_group[g_nfs] { notify => Cs_commit['add_drbd_nfs'] }, because Cs_commit['add_drbd_nfs'] doesn't seem to be in the catalog
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
You can’t perform that action at this time.