Skip to content

Instantly share code, notes, and snippets.

View worgarside's full-sized avatar
👾

Will Garside worgarside

👾
View GitHub Profile
@worgarside
worgarside / Snappy.md
Created September 21, 2019 16:17
This is how to add the ability to use snappy compression to your Lambda Function

How to add Snappy Compression to your Lambda Function

  1. Create an EC2 with Amazon Linux 2 and SSH in

  2. Install Packages

sudo yum install python3-devel python3-pip snappy-devel gcc gcc-c++

Useful Setup Scripts

@worgarside
worgarside / ! EC2 Reverse SSH Tunnel Addon.md
Last active October 17, 2019 08:56
Access local web server through EC2 with custom domain

EC2 Reverse SSH Tunnel Addon

@worgarside
worgarside / generator.py
Created April 2, 2019 08:08
Random Account & Transaction Generator
from json import dump
from random import randint, choices, random
NUM_OF_ACCOUNTS = 10
NUM_OF_TXS = randint(30, 40)
accounts = []
transactions = []
for i in range(1, NUM_OF_ACCOUNTS + 1):
This file has been truncated, but you can view the full file.
2019-02-09 14:45:46,070 - serial.log is currently not enabled, you can enable it via Settings > Serial Connection > Log communication to serial.log
2019-02-09 14:47:55,541 - serial.log is currently not enabled, you can enable it via Settings > Serial Connection > Log communication to serial.log
2019-02-09 14:52:22,570 - serial.log is currently not enabled, you can enable it via Settings > Serial Connection > Log communication to serial.log
2019-02-09 14:53:13,031 - serial.log is currently not enabled, you can enable it via Settings > Serial Connection > Log communication to serial.log
2019-02-09 14:58:53,273 - serial.log is currently not enabled, you can enable it via Settings > Serial Connection > Log communication to serial.log
2019-02-09 14:59:18,068 - Enabling serial logging
2019-02-09 14:59:19,380 - Send: M105
2019-02-09 14:59:19,387 - Recv: ok T:25.9 /0.0 B:24.8 /0.0 T0:25.9 /0.0 @:0 B@:0 P:27.1 A:33.7
2019-02-09 14:59:24,382 - Send: M105
2019-02-09 14:59:24,390 - Recv: ok T:25.7 /0.0 B:25.2 /0.0 T0:25.
This file has been truncated, but you can view the full file.
; generated by Slic3r Prusa Edition 1.41.0+win64 on 2019-02-09 at 14:21:03
;
; external perimeters extrusion width = 0.45mm
; perimeters extrusion width = 0.45mm
; infill extrusion width = 0.45mm
; solid infill extrusion width = 0.45mm
; top infill extrusion width = 0.40mm
; support material extrusion width = 0.35mm
2019-02-09 09:00:03,974 - octoprint.util.comm - INFO - Printer reports firmware name "Prusa-Firmware 3.4.1 based on Marlin"
2019-02-09 09:06:34,963 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-02-09 09:09:41,137 - octoprint.server.api.system - INFO - Performing command for core:restart_safe: sudo service octoprint restart
2019-02-09 09:09:41,580 - octoprint.server - INFO - Shutting down...
2019-02-09 09:09:41,864 - octoprint.events - INFO - Processing shutdown event, this will be our last event
2019-02-09 09:09:41,867 - octoprint.events - INFO - Event loop shut down
2019-02-09 09:09:41,869 - octoprint.server - INFO - Goodbye!
2019-02-09 09:09:45,582 - octoprint.startup - INFO - ******************************************************************************
2019-02-09 09:09:45,584 - octoprint.startup - INFO - Starting OctoPrint 1.3.10
2019-02-09 09:09:45,585 - octoprint.startup - INFO - Starting in SAFE MODE. Third party plugins will be disabled!
This file has been truncated, but you can view the full file.
2019-02-06 22:26:53,982 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2019-02-06 22:26:53,991 - octoprint.server - INFO - --- Log roll over detected ---------------------------------------------------
2019-02-06 22:26:53,991 - octoprint.server - INFO - OctoPrint 1.3.10
2019-02-06 22:26:53,996 - octoprint.plugin.core - INFO - 22 plugin(s) registered with the system:
| Action Command Prompt Support (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/action_command_prompt
| Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/announcements
| Anonymous Usage Tracking (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/tracking
| Application Keys Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/appkeys
| Backup & Restore (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/backup
| Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/pl