Skip to content

Instantly share code, notes, and snippets.

View elliotboney's full-sized avatar
😁
vibin

Elliot Boney elliotboney

😁
vibin
View GitHub Profile
@elliotboney
elliotboney / simple_args_parsing.sh
Created July 17, 2018 17:53 — forked from jehiah/simple_args_parsing.sh
a simple way to parse shell script arguments
#!/bin/sh
#
# a simple way to parse shell script arguments
#
# please edit and use to your hearts content
#
ENVIRONMENT="dev"
@elliotboney
elliotboney / fontList.jsx
Created November 29, 2017 01:24
List all available fonts in Adobe Illustrator using example text. I use it for testing how words look in all my fonts.
// 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 = eboney // 11/28/2017;
// script.elegant = false;
#target illustrator
#targetengine main
var edgeSpacing = 10;
var columnSpacing = 195;
@elliotboney
elliotboney / _visibility_classes.scss
Last active November 15, 2017 14:04
Missing visible-** and hidden-** in Bootstrap v4
// Restore Bootstrap 4 alpha "hidden" utility classes.
@each $bp in map-keys($grid-breakpoints) {
.hidden-#{$bp}-up {
@include media-breakpoint-up($bp) {
display: none !important;
}
}
.hidden-#{$bp}-down {
@include media-breakpoint-down($bp) {
display: none !important;
@elliotboney
elliotboney / raspberry-pi-chroot-armv7-qemu.md
Created November 5, 2017 20:44 — forked from jkullick/raspberry-pi-chroot-armv7-qemu.md
Chroot into Raspberry Pi ARMv7 Image with Qemu
# install dependecies
apt-get install qemu qemu-user-static binfmt-support

# download raspbian image
wget https://downloads.raspberrypi.org/raspbian_latest

# extract raspbian image
unzip raspbian_latest
@elliotboney
elliotboney / pins_ANET_10.h
Created September 5, 2017 19:02
My latest pins conf for Marlin and my Anet A8
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2017 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@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.