Skip to content

Instantly share code, notes, and snippets.

@daharon
daharon / chef_test.py
Created July 27, 2011 17:06
Trying to search with PyChef.
#!/usr/bin/env python
from chef import ChefAPI, Search, Node
host = 'http://10.1.1.110:4000'
key = '/tmp/daharon.office.pem'
user = 'daharon'
with ChefAPI(host, key, user):
@enjalot
enjalot / _.md
Created September 10, 2012 18:13 — forked from anonymous/inlet.js
just another inlet to tributary
@ChromeOrange
ChromeOrange / gist:3cb3a16a6560795b972d
Created September 18, 2014 00:20
Add custom order status to WooCommerce 2.2, add to theme functions.php
/**
* Add custom status to order list
*/
add_action( 'init', 'register_custom_post_status', 10 );
function register_custom_post_status() {
register_post_status( 'wc-backorder', array(
'label' => _x( 'Back Order', 'Order status', 'woocommerce' ),
'public' => true,
'exclude_from_search' => false,
'show_in_admin_all_list' => true,
# Script for converting a HF Diffusers saved pipeline to a Stable Diffusion checkpoint.
# *Only* converts the UNet, VAE, and Text Encoder.
# Does not convert optimizer state or any other thing.
# Written by jachiam
import argparse
import os.path as osp
import torch