Skip to content

Instantly share code, notes, and snippets.

View test-ipp-issue.py
# pylint: disable=W0621
"""Asynchronous Python client for IPP."""
import asyncio
from pyipp import IPP
async def main():
"""Show example of connecting to your IPP print server."""
async with IPP("ipp://HP79EC40.local:631/ipp/printer") as ipp:
@ctalkington
ctalkington / main.yaml
Last active Dec 24, 2019
WLED GH Actions WIP
View main.yaml
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
env:
@ctalkington
ctalkington / bulb_75w_rgbw_qpw06.yaml
Last active Aug 24, 2021
Merkury A21 75W Bulb ESPHome Config (requires v1.14+)
View bulb_75w_rgbw_qpw06.yaml
esphome:
name: bulb_75w_rgbw_qpw06
platform: ESP8266
board: esp01_1m
wifi:
ssid: 'YOURWIFISSID'
password: 'YOURWIFIPASSWORD'
logger:
View keybase.md

Keybase proof

I hereby claim:

  • I am ctalkington on github.
  • I am ctalkington (https://keybase.io/ctalkington) on keybase.
  • I have a public key ASCX5Kq7AzpGKw26Dbyn4XkXAoNTo4jRi3rCS7XP0_IxIAo

To claim this, I am signing this object:

@ctalkington
ctalkington / lock-plugin-updates.php
Last active Oct 19, 2016
Block WordPress Plugin Updates - best placed in wp-content/mu-plugins/
View lock-plugin-updates.php
<?php
/*
Plugin Name: Lock Plugin Updates
Description: Allow blocking plugins from being updated.
Version: 1.0.0
Author: Example
Author URI: https://www.example.com/
@author John Doe
*/
@ctalkington
ctalkington / functions.styl
Created Nov 4, 2014
Foundation 5 - Stylus Functions
View functions.styl
// This is the default html and body font-size for the base rem value.
$rem-base ?= 16px;
// CT: Stylus Compat
sif($res, $t, $f) {
return ($res) ? $t : $f;
}
// CT: Stylus Compat
nth($hash, $index) {
View components-modules-plesk-language-en_us-plesk.php
<?php
// Errors
$lang['Plesk.!error.simplexml_required'] = "The simplexml extension is required for this module.";
$lang['Plesk.!error.api.internal'] = "An internal error occurred, or the server did not respond to the request.";
$lang['Plesk.!error.server_name.empty'] = "You must enter a Server Label.";
$lang['Plesk.!error.host_name.valid'] = "The Hostname appears to be invalid.";
$lang['Plesk.!error.ip_address.valid'] = "The IP address appears to be invalid.";
$lang['Plesk.!error.port.format'] = "The port number must be a number.";
@ctalkington
ctalkington / app-controllers-billing.php
Last active Aug 29, 2015
Blesta - Patch for Forum Post #3280
View app-controllers-billing.php
<?php
/**
* Admin Billing Management
*
* @package blesta
* @subpackage blesta.app.controllers
* @copyright Copyright (c) 2010, Phillips Data, Inc.
* @license http://www.blesta.com/license/ The Blesta License Agreement
* @link http://www.blesta.com/ Blesta
*/
@ctalkington
ctalkington / index.js
Created Sep 3, 2013
ref ctalkington/node-archiver #44
View index.js
var fs = require('fs')
var path = require('path')
var zlib = require('zlib')
var ls = require('ls-stream')
var archiver = require('archiver')
var lazystream = require('lazystream')
module.exports = streamFolder
function streamFolder(dir) {
@ctalkington
ctalkington / package.json
Last active Dec 18, 2015
ref ctalkington/node-archiver #29
View package.json
{
"name": "test",
"dependencies" : {
"formidable": "~1.0.14",
"prettysize": "~0.0.2",
"archiver": "~0.4.3"
}
}