Skip to content

Instantly share code, notes, and snippets.

View ayan4m1's full-sized avatar
💀
Kill Me Please

ayan4m1

💀
Kill Me Please
View GitHub Profile
@ayan4m1
ayan4m1 / ffcp.ini
Created July 28, 2019 19:08
Printer configuration for Slic3r for FlashForge Creator Pro
# generated by Slic3r 1.3.0 on
bed_shape = -112.5x-72.5,112.5x-72.5,112.5x72.5,-112.5x72.5
before_layer_gcode = T0;\nM109 S[bed_temperature] T0; set bed temperature\nM104 S[temperature_0] T0; set extruder temperature
between_objects_gcode =
end_gcode = M73 P100 ; end build progress\nG162 X Y F2500; home X and Y axes\nM18; disable all stepper motors\nM109 S0 T0; set bed temperature to 0\nM104 S0 T0; set extruder temperature to 0
extruder_offset = 50x0,0x0
gcode_flavor = sailfish
has_heatbed = 1
host_type = octoprint
layer_gcode =
@ayan4m1
ayan4m1 / .bashrc
Created September 3, 2019 11:54
bash aliases
alias git-recent-branches="git for-each-ref --sort=committerdate refs/heads/"
alias git-update-master="git fetch --all && git checkout master && git rebase upstream/master && git push origin master"
alias gfa="git fetch --all"
alias gco="git checkout"

How to adjust PG/VG ratio

One of the more common questions that comes up when talking about short fills is how to reach a given PG/VG ratio. The short fill bottle has a VG/PG ratio, and you might have your nicotine in PG, VG, or some combination of the two. Let’s work through a few examples to see how you can easily get your desired final ratio.

Example 1: All-PG or all-VG nicotine

We’ll start with the simplest case first. Let’s say you have a 60ml short fill bottle with 45ml of 70/30 VG/PG liquid in it to start. Your nicotine is 100% PG.

In this scenario, you cannot end up with a 70/30 finished product unless you pre-mix your nicotine to also be 70/30 or remove some of the flavor base from the short fill bottle.

Pterodactyl on CentOS 7

# remove wifi card firmwares
yum remove -y iwl*-firmware
yum update -y

# install extra repos and yum-config-manager
yum install -y epel-release yum-utils http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --disable remi-php54
// ==UserScript==
// @name FastTech Stock Checker
// @namespace http://phreak.space/
// @version 0.0.2
// @description Show the stock info on the FastTech search page.
// @author ayan4m1 <andrew@bulletlogic.com>
// @match https://www.fasttech.com/search*
// @match https://www.fasttech.com/category/*
// @require https://code.jquery.com/jquery-3.3.1.min.js
// @require https://gist.githubusercontent.com/BrockA/2625891/raw/9c97aa67ff9c5d56be34a55ad6c18a314e5eb548/waitForKeyElements.js
  1. Ensure display (rainbow ribbon cable) is connected
  2. Ensure bowden tube is secured to hotend and extruder collet with clips
  3. Ensure screws holding the Z-coupler to the Z leadscrew are one turn from tight
  4. Ensure Z axis moves freely - check for "bind points" near the top and bottom of the leadscrew
  5. Ensure the X and Y axes move freely across their entire range of motion with no snagging of cables
  6. Ensure that the gantry is level and frame is tight
  7. Ensure that the X and Y belts are tight - they should be like a guitar string. If a belt is loose, locate the belt tensioner (X axis, on the right side) and loosen (do not remove) the two bolts that attach the tensioner to the gantry. Then pull the tensioner to the right until the belt is taut and tighten both bolts while still holding the tensioner in place.
  8. Tighten all four bed adjustment screws so that the bed is as low (i.e. far away from the nozzle) as possible
  9. Ensure that the Z and X endstops are connected!!!
  10. Place the build mat on the b
* AppleSkin - Adds saturation info to hunger bar
* Biomes O' Plenty - Tons of new biomes
* Chameleon - Library
* Chisel - Adds a ton of blocks
* Clumps - clumps XP orbs
* Corail Tombstone - "death chest"
* CraftTweaker2
* CTM - Library
* FoamFix - Performance
* Inventory Tweaks - Auto replace broken tools and auto-sort chests/inventory
#include <Arduino.h>
#include <ESP8266WiFi.h>
#define WIFI_SSID "bar"
#define WIFI_PSK "changeme"
#define IFTTT_WEBHOOK_URL "https://maker.ifttt.com/trigger/YOUR EVENT NAME HERE/with/key/YOUR KEY HERE"
#define IFTTT_WEBHOOK_HOST "maker.ifttt.com"
#define IFTTT_WEBHOOK_PORT 80
#define HTTP_TIMEOUT 5 // 5 seconds