I will put things I find here as I find them and they are useful.
- How to drawterm remote connection to plan9 box from drawterm
- Unix -> plan9 translations for general stuff.
- getting started guide
- Plan9 IRC Chans
- help with contrib
package DDG::Goodie::WordCount; | |
use DDG::Goodie; | |
use strict; | |
zci answer_type => 'word_count'; | |
zci is_cached => 1; | |
triggers start => 'word count', 'wordcount', 'how many words in'; |
I will put things I find here as I find them and they are useful.
{ | |
"template": "inventory", | |
"mappings": { | |
"host": { | |
"_source": { | |
"enabled": true, | |
"excludes" : ["network.interfaces.*.arp", "kernel.pnp_drivers", "kernel.modules"] | |
}, | |
"dynamic_templates": [ | |
{ |
// Based off example code from Hal Robertson | |
// https://github.com/halrobertson/test-restify-passport-facebook | |
// See discussion: https://groups.google.com/forum/?fromgroups#!topic/passportjs/zCz0nXB_gao | |
var restify = require('restify') | |
// config vars | |
var FB_LOGIN_PATH = '/api/facebook_login' | |
var FB_CALLBACK_PATH = '/api/facebook_callback' | |
var FB_APPID = '<<YOUR APPID HERE>>' |
(defun fib (n) | |
(fib-iter 1 0 n)) | |
(defun fib-iter (a b count) | |
(if (= count 0) | |
b | |
(fib-iter (+ a b) a (- count 1)))) |
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 11, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ |
import urllib, os | |
# if you comment out this line, it will download to the directory from which you run the script. | |
os.chdir('/tmp/test') | |
url = 'http://www.mydomain.com/myfile.txt' | |
urllib.urlretrieve(url) |
usa_00002.dat | |
usa_00002.dat.gz | |
usa_000002.csv | |
filtered.csv |
/** | |
* Copyright 2015 SmartThings | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. You may obtain a copy of the License at: | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed | |
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License |