Skip to content

Instantly share code, notes, and snippets.

@littleidea
littleidea / dloq
Last active March 4, 2023 03:26
Dimensions of Learning Organization Questionaire
Items marked with an asterisk (both * or **) are those identified by Yang for the DLOQ-A short
form of the survey. Items with two asterisks may also be used separately as the seven items that
together create a single scale of a learning culture.
Individual level
1. In my organization, people openly discuss mistakes in order to learn from them.
2. In my organization, people identify skills they need for future work tasks.
3.* In my organization, people help each other learn.
4. In my organization, people can get money and other resources to support their learning.
5.* In my organization, people are given time to support learning.
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
Domain Name: DEVOPSINSTITUTE.COM
Registrar: GODADDY.COM, LLC
Whois Server: whois.godaddy.com
def powers_each(line, power)
replacement = []
line.each do |number|
replacement << number ** power
end
replacement
end
def powers_inject(line, power)
@littleidea
littleidea / haskell-mtn-lion.sh
Created August 5, 2012 15:52 — forked from dysinger/haskell-mtn-lion.sh
Install Haskell from Scratch
#!/bin/bash -eux
ARCH=${ARCH:-i386}
CORES=$(sysctl -n hw.ncpu)
GHC=${GHC:-7.4.2}
CABAL=${CABAL:-0.14.0}
PLATFORM=${PLATFORM:-2012.2.0.0}
[[ ! -d /usr/local/src ]] && mkdir -p /usr/local/src
@littleidea
littleidea / gist:3196364
Created July 29, 2012 06:22 — forked from danparsons/gist:3195652
How to stream the London 2012 Olympics

How to stream the London 2012 Olympics

There have been several HOWTOs posted regarding streaming the 2012 Olympics using HTTP / SOCKS proxies via SSH and other similar methods. None of these actually work using the latest Flash on Mountain Lion (with Firefox, Chrome or Safari). Additionally, the third-party streaming sites don't provide BBC's amazing interface, which lets you quickly skip to individual competitors and events. However, setting up an OpenVPN server does work, with some tweaks. You'll get the exact same UX that people in England receive.

.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "8"
vcpu.hotadd = "FALSE"
vhv.enable = "TRUE"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsilogic"
memsize = "2048"
mem.hotadd = "TRUE"
scsi0:0.present = "TRUE"
(.venv)localhost :: ~/git/horizon ‹master*› » python manage.py
Usage: manage.py subcommand [options] [args]
Options:
-v VERBOSITY, --verbosity=VERBOSITY
Verbosity level; 0=minimal output, 1=normal output,
2=verbose output, 3=very verbose output
--settings=SETTINGS The Python path to a settings module, e.g.
"myproject.settings.main". If this isn't provided, the
DJANGO_SETTINGS_MODULE environment variable will be
vagrant@vagrant-ubuntu-precise:/etc/collectd/plugins$ ps auxwww | grep Z
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
www-data 23252 0.0 0.0 0 0 ? Z 16:38 0:00 [apache2] <defunct>
www-data 23253 0.0 0.0 0 0 ? Z 16:38 0:00 [apache2] <defunct>
www-data 23254 0.0 0.0 0 0 ? Z 16:38 0:00 [apache2] <defunct>
www-data 23255 0.0 0.0 0 0 ? Z 16:38 0:00 [apache2] <defunct>
www-data 23256 0.0 0.0 0 0 ? Z 16:38 0:00 [apache2] <defunct>
www-data 23257 0.0 0.0 0 0 ? Z 16:38 0:00 [apache2] <defunct>
www-data 23258 0.0 0.0 0 0 ? Z 16:38 0:00 [apache2] <defunct>
www-data 23259 0.0 0.0 0 0 ? Z 16:38 0:00 [apache2] <defunct>
@littleidea
littleidea / why
Created June 22, 2012 18:57
collectd fails to restart
vagrant@vagrant-ubuntu-precise:~$ sudo /usr/sbin/invoke-rc.d collectd restart
Restarting statistics collection and monitoring daemon: collectdInitializing keystone plugin
Initializing nova plugin
Initializing glance plugin
. . . . . . . . . . . . . . . .
WARNING: collectd might still be running.
In large setups it might take some time to write all pending data to
the disk. You can adjust the waiting time in /etc/default/collectd.
invoke-rc.d: initscript collectd, action "restart" failed.
routes.middleware: DEBUG: Route path: '{path_info:.*}', defaults: {'controller': <keystone.service.PublicRouter object at 0x7502190>}
routes.middleware: DEBUG: Match dict: {'controller': <keystone.service.PublicRouter object at 0x7502190>, 'path_info': '/tokens'}
routes.middleware: DEBUG: Matched POST /tokens
routes.middleware: DEBUG: Route path: '/tokens', defaults: {'action': u'authenticate', 'controller': <keystone.service.TokenController object at 0x7502ad0>}
routes.middleware: DEBUG: Match dict: %s
keystone.common.wsgi: DEBUG: arg_dict: {}
root: DEBUG: TOKEN_REF {'metadata': {'is_admin': '1', 'roles': ['keystone_admin']}, 'expires': datetime.datetime(2012, 3, 24, 19, 18, 19, 799644), 'user': {'id': 'foo', 'name': 'FOO'}, 'tenant': {'enabled': True, 'id': 'bar', 'name': 'BAR', 'extra': {'extra': {'extra': {'extra': {'extra': {'extra': {'extra': {'extra': {'extra': {'extra': {'extra': {'extra': {'extra': {'extra': {'extra': {'extra': {'extra': {'extra': {'extra': {'extra': {'extra': {'extra': {'extra': {'e