Skip to content

Instantly share code, notes, and snippets.

View mrogalsky's full-sized avatar

Max Rogalsky mrogalsky

View GitHub Profile
@zorgsoft
zorgsoft / wp_import.php
Last active May 27, 2022 08:15
MODx Evo module for import posts from Wordpress
<?php
/*
* WP Import, Ver 2015.01.04
* (C) 2015 by ZoRg Soft
* MODx Notes - WP Import модуь для импорта записей из Wordpress
* http://agarkov.org/modx-x/evo-wpimport
*/
$theme = $modx->config['manager_theme'];
$basePath = $modx->config['base_path'];

Offline Python Package Install Notes

Two common cases which make the install of Python packages harder due to networking issues are: a) Install behind a Proxy b) Install without access to the internet

(a) Install behind a Proxy

In the case where the target machine connects to the internet over a network proxy, export the following environment vars, as appropriate - http_proxy and https_proxy. Eg:

@rgdonohue
rgdonohue / README.md
Last active January 11, 2023 21:43
Batch Geocoding Script with GeoPy
@shanealynn
shanealynn / python batch geocoding.py
Last active July 9, 2025 18:35
Geocode as many addresses as you'd like with a powerful Python and Google Geocoding API combination
"""
Python script for batch geocoding of addresses using the Google Geocoding API.
This script allows for massive lists of addresses to be geocoded for free by pausing when the
geocoder hits the free rate limit set by Google (2500 per day). If you have an API key for paid
geocoding from Google, set it in the API key section.
Addresses for geocoding can be specified in a list of strings "addresses". In this script, addresses
come from a csv file with a column "Address". Adjust the code to your own requirements as needed.
After every 500 successul geocode operations, a temporary file with results is recorded in case of
script failure / loss of connection later.
Addresses and data are held in memory, so this script may need to be adjusted to process files line
@mfrederickson
mfrederickson / end.gcode
Last active August 1, 2024 14:03
anet a8 start/end gcode
M104 S0 ; turn off extruder
M140 S0 ; turn off heatbed
M107 ; turn off fan
G91 ; relative positioning
G1 Z25 ; raise head 25mm
G90 ; back to absolute positioning
G1 X0 Y220; home X axis and push Y forward
M84 ; disable motors
@65c22
65c22 / A8EndGcode.gcode
Last active July 25, 2023 18:37
Anet A8 GCODE
M104 S0 ;chauffage de l'extrudeuse éteint
M140 S0 ;chauffe-lit chauffant éteint
G91 ;positionnement relatif
G1 E-1 F300 ;rétracter un peu le filament avant de soulever la buse, pour libérer une partie de la pression
G1 Z+0.5 E-5 X-20 Y-20 F9000 ;déplacez Z un peu et retirez le filament encore plus
G28 X0 Y0 ;déplacez X / Y jusqu'à la butée min, de sorte que la tête soit à l'écart
G90 ;positionnement absolu
G1 Y190 F9000 ;le lit se déplace vers l'avant
M84 ;steppers off
@florianroulet
florianroulet / end code
Created August 26, 2018 12:30
cura3 anet A8 conf
M104 S0 ;chauffage de l'extrudeuse éteint
M140 S0 ;chauffe-lit chauffant éteint
G91 ;positionnement relatif
G1 E-1 F300 ;rétracter un peu le filament avant de soulever la buse, pour libérer une partie de la pression
G1 Z+0.5 E-5 X-20 Y-20 F9000 ;déplacez Z un peu et retirez le filament encore plus
G28 X0 Y0 ;déplacez X / Y jusqu'à la butée min, de sorte que la tête soit à l'écart
G90 ;positionnement absolu
G1 Y190 F9000 ;le lit se déplace vers l'avant
M84 ;steppers off
@jeanfbrito
jeanfbrito / printer.cfg
Last active July 20, 2024 02:42
Anet A8 Plus Klipper configuration
# This file is an example config file for cartesian style printers.
# One may copy and edit this file to configure a new cartesian
# printer.
# DO NOT COPY THIS FILE WITHOUT CAREFULLY READING AND UPDATING IT
# FIRST. Incorrectly configured parameters may cause damage.
# See docs/Config_Reference.md for a description of parameters.
#####################################################################