I hereby claim:
- I am abondis on github.
- I am abondis (https://keybase.io/abondis) on keybase.
- I have a public key ASD762t1Pnyk5EnGeKhbVWmbedxfZeFl2QJMqGgeqnp9BAo
To claim this, I am signing this object:
| import csv | |
| import datetime | |
| tpl = """BEGIN:VCALENDAR | |
| BEGIN:VTODO | |
| SUMMARY:{summary} | |
| DUE;TZID=America/Toronto:{due}T000001 | |
| CLASS:PRIVATE | |
| END:VTODO | |
| END:VCALENDAR""" |
I hereby claim:
To claim this, I am signing this object:
| # SSH config | |
| # Not the best, but should be enough for my needs | |
| - name: add a marker to replace later | |
| lineinfile: | |
| insertafter: "{{ sftp_config[[0, item|int -1]|max] }}" | |
| dest: /etc/ssh/sshd_config | |
| line: "{{ sftp_config[item|int] }}" | |
| with_sequence: start=0 count=4 |
| from subprocess import check_output, CalledProcessError | |
| def call_me(cmd, *args, **kwargs): | |
| cmd_list = [cmd] | |
| def wrap(*args, **kwargs): | |
| cmd_list.extend(args) | |
| try: | |
| return 0, check_output(cmd_list, **kwargs) |
| from mock import MagicMock, patch | |
| import sys | |
| restful = MagicMock(autospec=True) | |
| attrs = {'__init__': lambda *args, **kwargs: None} | |
| bases = (object,) | |
| Res = type('Resource', bases, attrs) | |
| restful.Resource = Res | |
| with patch.dict( |
I hereby claim:
To claim this, I am signing this object:
| [receive] | |
| denyCurrentBranch = warn |
| from dulwich.repo import Repo | |
| r = Repo('/tmp/bunchofrepos/montestgit/') | |
| t = r['HEAD'].tree | |
| T = r.tree(t) | |
| truc_entry = T.lookup_path(r.get_object, 'blah/truc') | |
| truc_tree = r.tree(truc_entry[1]) | |
| truc_tree.entries() | |
| truc_tree['new_filename.txt'] = truc_tree['bidule.text'] | |
| truc_tree.entries() | |
| del truc_tree['bidule.text'] |
| body { | |
| width: 100%; | |
| *zoom: 1; } | |
| body:before, body:after { | |
| content: ""; | |
| display: table; } | |
| body:after { | |
| clear: both; } | |
| header#top { |
| topmenu { | |
| @include column(12); | |
| float: right; | |
| ul{ | |
| @include column(9); | |
| float: right; | |
| padding:0; | |
| li { | |
| @include column(1); | |
| display: inline; |