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
// ==UserScript== | |
// @name WordPress topic redirect | |
// @namespace WordPress_topic_redirect | |
// @description Forces https, adds view=all to topic urls and redirects if needed. | |
// @version 1 | |
// @grant none | |
// @run-at document-start | |
// @include *://*wordpress.org/support/topic/* | |
// @include https://wordpress.org/support/plugin/* | |
// @include https://wordpress.org/support/theme/* |
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 | |
// Queue up the child theme CSS | |
add_action( 'wp_enqueue_scripts', 'cleanretina_child_enqueue_styles' ); | |
function cleanretina_child_enqueue_styles() { | |
$parent_style = 'parent-style'; | |
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); |
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 | |
// Queue up the child theme CSS | |
add_action( 'wp_enqueue_scripts', 'cleanretina_child_enqueue_styles' ); | |
function cleanretina_child_enqueue_styles() { | |
$parent_style = 'parent-style'; | |
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); |
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 | |
import os, sys, json | |
from time import sleep | |
from urllib2 import Request, urlopen, URLError, HTTPError | |
# From https://stackoverflow.com/questions/3462784/check-if-a-string-matches-an-ip-address-pattern-in-python | |
def validate_ip(s): | |
a = s.split('.') | |
if len(a) != 4: |
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, time, json, fileinput, codecs, sys, os | |
def slice(l, n): | |
n = max(1, n) | |
return [l[i:i + n] for i in range(0, len(l), n)] |
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
#!/usr/bin/python | |
import urllib2, json, fileinput, sys, os, time | |
from datetime import datetime | |
from time import gmtime, strftime | |
# Read key, single line | |
with open('api-key.txt', 'r') as k: | |
api_key = k.read().rstrip() |
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
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 |
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. |