Skip to content

Instantly share code, notes, and snippets.

@bryant988
bryant988 / zillow.js
Last active June 18, 2024 14:38
Zillow Image Downloader
/**
* NOTE: this specifically works if the house is for sale since it renders differently.
* This will download the highest resolution available per image.
*/
/**
* STEP 1: Make sure to *SCROLL* through all images so they appear on DOM.
* No need to click any images.
@agent86ix
agent86ix / custom_end.gcode
Last active August 6, 2023 13:52
Wanhao i3 Plus Gcode
; Reference - https://www.mpselectmini.com/starting_ending_g-code_scripts
M400 ; wait for pending commands to finish
M104 S0 ; turn off hotend/extruder heater
M140 S0 ; turn off bed heater
G91 ; set to relative positioning
G1 E-2 F300 ; retract the filament a bit before lifting the nozzle to release some of the pressure
G1 Z1 ; raise Z 1mm from current position
G1 E-2 F300 ; retract filament even more
G90 ; set to absolute positioning
G1 X20 ; move X axis close to tower but hopefully far enough to keep the fan from rattling
@joshgerdes
joshgerdes / Wanhao_Cura_Profile16.ini
Last active March 31, 2022 17:01
Monoprice Maker Select Plus (Wanhao i3 Plus) Setup
[profile]
layer_height = 0.16
wall_thickness = 1.2
retraction_enable = True
solid_layer_thickness = 1.2
fill_density = 10
nozzle_size = 0.4
print_speed = 50
print_temperature = 200
print_temperature2 = 0
@brailsmt
brailsmt / stat_minmax.rb
Last active June 11, 2016 18:52
Print min/max values of a given stat
#!/usr/bin/env ruby
require 'pp'
max_possible = {
:ghost => [25, 10],
:class => [25, 10],
:helm => [46, 19],
:gloves => [41, 17],
:chest => [61, 25],
@cornman0101
cornman0101 / Lightweight_Singleuse.h
Created June 2, 2016 09:51
macros for destiny infusion calculator
void statFinal(int defense_initial, int stat_initial, int stat_min_max[2],int defense_final);
float fitValue(int defense);
void statFinal(int defense_initial, int stat_initial, int stat_min_max[2], int defense_final=335)
{
stat_min_max[0] = floor((stat_initial+1.0)*fitValue(defense_final)/fitValue(defense_initial)); //max
stat_min_max[1] = floor((stat_initial)*fitValue(defense_final)/fitValue(defense_initial)); //min
};
@pirafrank
pirafrank / uninstall_office_2016.sh
Last active March 21, 2024 14:12
Uninstall Office 2016 from OS X completely
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo -e "
ROOT PRIVILEDGES NEEDED!
You have to run this script as root.
Aborting...
"
exit 1
else
@mdwheele
mdwheele / yosemite-sound-issues.md
Created October 22, 2014 00:25
Fix Yosemite Bluetooth Sound Issues
  1. Run the following in your terminal.
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Max (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool Min (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool" 80
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Max" 80
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Min" 80
@JosefJezek
JosefJezek / cisco-anyconnect-profile.md
Created July 2, 2014 11:00
Cisco AnyConnect VPN Profile

Cisco AnyConnect VPN Profile

Router IOS

webvpn import svc profile profile-example usbflash0:example.xml
webvpn context ctx-example
policy group vpn-group-example
svc profile profile-example