Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ktosiek on github.
  • I am ktosiek (https://keybase.io/ktosiek) on keybase.
  • I have a public key whose fingerprint is 9D54 75B7 AA3F EE44 0CA6 555A 6063 DE48 8063 F1C0

To claim this, I am signing this object:

{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./date-time.nix
];
# ...
}
gerrit_test_utils: [1] ?- [gerrit_test_utils]. run_tests.
% gerrit_test_utils compiled into gerrit_test_utils 0.00 sec, 1 clauses
true.
% PL-Unit: with_facts .
Warning: /home/tomek/prolog/gerrit_test_utils.pl:16:
PL-Unit: Test multiple_facts: Test succeeded with choicepoint
done
% All 2 tests passed
@ktosiek
ktosiek / gist:f9a5c667a2cba74e8671
Created July 23, 2014 11:46
Fun with object()
In [15]: class A(object):
....: pass
....:
In [16]: a = A()
In [17]: setattr(s, s, 10)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-17-a4e7f439dc1b> in <module>()
- name: create individual file symlinks from {{ this_deployment_scripts_fullname }} to the master
file: >-
dest=/usr/local/bin
src={{ ine_master_symlink }}/usr-local-bin/{{ item | basename }}
state=link
with_fileglob:
- "{{ this_deployment_scripts_fullname }}/usr-local-bin/*"