- LinkedList implementing the Iterator interface: http://php.net/manual/en/class.iterator.php
- Node $root
# This allows overriding nixpkgs by passing `--arg pkgs ...` | |
{ pkgs ? import ./devtools/lib/nix/nixpkgs.nix {} | |
, lib ? pkgs.lib | |
}: | |
with pkgs; | |
with lib; | |
let |
emacs = { | |
buildOrg = {emacs ? emacs25-nox, init ? ./init.org}: | |
runCommand "init.el" | |
{ buildInputs = [ emacs ]; } | |
'' | |
mkdir -p $out; | |
ln -s "${init}" ./init.org; | |
emacs -Q --script "${./assets/org-build.el}" -f make-init-el; | |
cp init.el $out; | |
''; |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
{ config, lib, pkgs, ... }: | |
let | |
inherit (lib) mkIf mkMerge mkThenElse; | |
cfg = config.r6d.config-generator; | |
computers = config.r6d.computers; | |
profiles = config.r6d.profiles; | |
in | |
{ |
2017-01-29 22:46:29.208 1863 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-save -c execute /nix/store/gqs7kinmfnx5pznj20swm1l3g0gbxysv-python2.7-oslo.concurrency-3.14.0/lib/python2.7/site-packages/oslo_concurrency/processutils.py:344 | |
2017-01-29 22:46:29.214 1863 DEBUG oslo_concurrency.processutils [-] u'sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-save -c' failed. Retrying. execute /nix/store/gqs7kinmfnx5pznj20swm1l3g0gbxysv-python2.7-oslo.concurrency-3.14.0/lib/python2.7/site-packages/oslo_concurrency/processutils.py:426 | |
---- | |
2017-01-29 22:46:30.713 1863 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-save -c execute /nix/store/gqs7kinmfnx5pznj20swm1l3g0gbxysv-python2.7-oslo.concurrency-3.14.0/lib/python2.7/site-packages/oslo_concurrency/processutils.py:344 | |
2017-01-29 22:46:30.718 1863 DEBUG oslo_concurrency.processutils [-] u'sudo nova-rootwrap /etc/nova/root |
#!/bin/bash | |
${1:=8000} | |
python -m SimpleHTTPServer "$@" |
#!/bin/bash | |
bottle=12.5 | |
empty=0.95 | |
s=6.95 | |
i=1 | |
tabspace=" " | |
defmax=5 | |
if [ -z $1 ]; then | |
max=$defmax |
# vim:ts=4 | |
import re | |
def domain_liveleak_com(dt): | |
if dt.hour < 8 or dt.hour > 18: | |
return True | |
if dt.weekday > 4: | |
return True |
<?php | |
/** | |
* In reality we should be creating our getters, setters, etc, but for the | |
* truely lazy among us... | |
* | |
* @param string $method | |
* @param array $arguments | |
* @return void | |
* @author Travis Black | |
*/ |