This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import requests, json, sys, re | |
api_org = '2323049' | |
# Read the Management API base64 of the management key and secret. | |
# | |
# Key: yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy | |
# Secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# This Python script will | |
# | |
# - Log into a WordPress installation using supplied credentials. | |
# - Get a single published post using the REST call /wp/v2/posts | |
# - Get a valid nonce from '/wp-admin/post.php?post=xxx&action=edit' | |
# - Use cookie+nonce to retrieve on post in draft status via REST. | |
# | |
# Getting that valid nonce must be performed prior to each WP REST call |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Marlin 3D Printer Firmware | |
* Copyright (C) 2016 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Marlin 3D Printer Firmware | |
* Copyright (C) 2016 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Marlin 3D Printer Firmware | |
* Copyright (C) 2016 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# This will need the investigate module installed via 'pip install investigate' | |
import investigate, json, fileinput, codecs, sys, os, requests, time, re | |
def slice(l, n): | |
n = max(1, n) | |
return [l[i:i + n] for i in range(0, len(l), n)] | |
# Read key, single line | |
with open('api-key.txt', 'r') as k: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_enqueue_scripts', 'doctorial_child_enqueue_styles' ); | |
function doctorial_child_enqueue_styles() { | |
$parent_style = 'parent-style'; | |
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); | |
wp_enqueue_style( 'child-style', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: Doctorial Child theme | |
Description: A Child theme to remove the theme author's credits from the theme's footer | |
Version: 0.1 | |
Template: doctorial | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Make new sites in the network with https URLs | |
Description: Force new sites in a multisite network to use HTTPS as the scheme. | |
Plugin Author: Jan Dembowski | |
This probably should not be necessary and the scheme should be picked up | |
by WordPress. But I could not get my new sites to use https so here I am. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Slic3r 1.2.9 | |
Start G-code | |
M116 ; Wait until target temperatures for extruder and heated bed are reached | |
G28 ; home all axes | |
M117 Printing... | |
G0 Z0.3 ; drop to start height | |
G0 Y3 ; move to edge of print area | |
G0 X50 F5000 ; move to front of bed |
NewerOlder