Skip to content

Instantly share code, notes, and snippets.

View elliotboney's full-sized avatar

Elliot Boney elliotboney

View GitHub Profile
@elliotboney
elliotboney / start.gcode
Created August 20, 2017 23:26
My AnetA8 Start gcode for Simplify3D
;
; START Elliot Custom
;
M155 S5 ; turn on auto temp reporting
G21 ;metric values
M117 Setting Temps to [extruder0_temperature]/[bed1_temperature]...
M104 S[extruder0_temperature] T0; Setting Extruder Temp
M145 B[bed1_temperature] H[extruder0_temperature] ; send temps to LCD
M117 Waiting for Tip and Bed Temps...
M190 S[bed1_temperature]; Wait for bed
@elliotboney
elliotboney / fontList.jsx
Created August 20, 2017 23:23
Creates a doc and lists all fonts seen by illustrator using a string of text
/**
* @@@BUILDINFO@@@ fontList.jsx !Version! Wed Jul 27 2016 14:10:20 GMT-0500
*/
// script.name = fontList.jsx;
// script.description = creates a document and makes a list of all fonts seen by Illustrator;
// script.requirements = none; // runs on CS4 and newer;
// script.parent = CarlosCanto // 02/17/2013;
// script.elegant = false;
#target illustrator
@elliotboney
elliotboney / Simplify3d_to_octoprint.sh
Created August 3, 2017 19:01
Allows sending files directly from simplify3d to octoprint
# In Simplify3D go to:
# - Edit Process Settings -> Scripts
# At the very bottom there is a box titled "Post Processing"
# Add the following command line to the box titled "Addidional Terminal Commands for Post Processing"
curl -k -H "X-Api-Key: 1111111222222233333444455555" -F "select=false" -F "print=false" -F "file=@[output_filepath]" "http://octopi.local/api/files/local"
@elliotboney
elliotboney / cookie.js
Created June 7, 2016 23:06 — forked from blankyao/cookie.js
cookie
@elliotboney
elliotboney / uninstall-foreign-fonts.sh
Created December 4, 2015 13:12 — forked from jm3/uninstall-foreign-fonts.sh
uninstall the 162 non-English fonts that Apple installs that clog up Photoshop's font menu.
#!/bin/sh
# jm3.net
# uninstall the 162 non-English fonts that Apple installs that clog up Photoshop's font menu.
# ========================
## RUN AT YOUR OWN RISK ##
# ========================
# if this formats your hard drive or deletes your fonts or changes the sex
# of your dog, I'm super sorry, but there's nothing I can do.
<?php
// Remove duplicates from a php array
$array = array_unique($array, SORT_REGULAR);
/* I use Stylish (a chome addin) to set these styles
* URLs on the domain workflowy
*/
.next-row {
border: 2px solid #46A546 !important;
border-top-left-radius:0.5em;
background-color: #CCFFCC !important;
}
/* I use Stylish (a chome addin) to set these styles
* URLs on the domain workflowy
*/
.next-row {
border: 2px solid #46A546 !important;
border-top-left-radius:0.5em;
background-color: #CCFFCC !important;
}
@elliotboney
elliotboney / createcsv.php
Created July 3, 2014 02:03
Create csv file from php array
<?php
function generateCsv($data, $delimiter = ',', $enclosure = '"') {
$handle = fopen('php://temp', 'r+');
foreach ($data as $line) {
fputcsv($handle, $line, $delimiter, $enclosure);
}
rewind($handle);
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
@elliotboney
elliotboney / getparams.php
Last active August 29, 2015 14:03
Create matching variable names to $_GET parameters
<?php
$expected=array('module','act','gal_id','page_id','view','reply','post_id');
foreach($expected as $key){
if(!empty($_GET[$key])){
${key}=$_GET[$key];
} else{
${key}=NULL;
}
}
?>