TODO: Write a project description
TODO: Describe the installation process
module.exports = function (grunt) { | |
'use strict'; | |
// grunt-contrib-watchのlivereloadオプションでlivereload | |
grunt.initConfig({ | |
watch: { | |
html: { | |
files: '**/*.html', | |
tasks: [], |
from Products.DataCollector.plugins.CollectorPlugin import SnmpPlugin | |
from Products.DataCollector.plugins.CollectorPlugin import GetTableMap | |
class MyPlugin(SnmpPlugin): | |
relname = 'myrelation' | |
modname = 'ZenPacks.example.MyStuff' | |
snmpGetTableMaps = ( | |
GetTableMap('sometable', |
# | |
# COMMAND Example | |
# | |
/ExampleDeviceClass/ExampleCommandTemplate: | |
datasources: | |
echo: | |
type: COMMAND | |
commandTemplate: 'echo "OK|val1=123 val2=987.6' | |
parser: Nagios | |
severity: info |
$coupon_code = 'UNIQUECODE'; // Code | |
$amount = '10'; // Amount | |
$discount_type = 'fixed_cart'; // Type: fixed_cart, percent, fixed_product, percent_product | |
$coupon = array( | |
'post_title' => $coupon_code, | |
'post_content' => '', | |
'post_status' => 'publish', | |
'post_author' => 1, | |
'post_type' => 'shop_coupon' |
#!/bin/bash | |
HOST=$(hostname) | |
function install_postfix() { | |
echo | sudo debconf-set-selections <<__EOF | |
postfix postfix/root_address string | |
postfix postfix/rfc1035_violation boolean false | |
postfix postfix/mydomain_warning boolean | |
postfix postfix/mynetworks string 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
As configured in my dotfiles.
start new:
tmux
start new with session name:
# This shell script is intended to be sourced into your shell. It adds | |
# Default Zenoss server settings. | |
[ -z "$ZENOSS_URL" ] && export ZENOSS_URL="http://localhost:8080" | |
[ -z "$ZENOSS_USERNAME" ] && export ZENOSS_USERNAME="admin" | |
[ -z "$ZENOSS_PASSWORD" ] && export ZENOSS_PASSWORD="zenoss" | |
# Generic call to make Zenoss JSON API calls easier on the shell. | |
zenoss_api () { | |
ROUTER_ENDPOINT=$1 |
/** | |
* Add the field to the checkout | |
**/ | |
add_action('woocommerce_after_order_notes', 'my_custom_checkout_field'); | |
function my_custom_checkout_field( $checkout ) { | |
echo '<div id="my_custom_checkout_field"><h3>'.__('My Field').'</h3>'; | |
/** |