I hereby claim:
- I am benedicteb on github.
- I am benedebr (https://keybase.io/benedebr) on keybase.
- I have a public key ASDI6tQKX8O_eJklU1PFmBNhNOOYS4nLtcIu3F5j4lMsLAo
To claim this, I am signing this object:
$ dig a benedicte.netlify.app # fra norge | |
; <<>> DiG 9.10.6 <<>> a benedicte.netlify.app | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57382 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1 | |
;; OPT PSEUDOSECTION: | |
; EDNS: version: 0, flags:; udp: 4096 | |
;; QUESTION SECTION: |
#!/usr/bin/env python | |
""" | |
Usage: | |
./find_orphaned_pkgs.py | |
./find_orphaned_pkgs.py | grep -ie libreoffice | xargs rm # Remove all orphaned libreoffice pkgs | |
./find_orphaned_pkgs.py --munki-repo path/to/munki/repo | |
./find_orphaned_pkgs.py --count | |
""" | |
import argparse |
#!/usr/bin/env python | |
# -*- encoding: utf-8 -*- | |
""" | |
This is a script for fixing categories in a munki repo. Call it with the path to | |
your repo. | |
./munki_fix_categories.py fix --munki-repo path/to/munki/repo | |
It will set the same category on items with the same name. If there are items | |
not categorized after the fix and the interactive flag is not disabled the |
I hereby claim:
To claim this, I am signing this object:
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Created on 2016-01-12 11:38 | |
Short script for packaging a pkg into a dmg. | |
@author benediceb | |
""" | |
import sys |
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# vim:fenc=utf-8 | |
# | |
# Copyright © 2015 benedicte <benedicte@natalie> | |
# | |
# Distributed under terms of the MIT license. | |
""" |
#!/usr/bin/env python | |
import re | |
sr_Q = r'Q-value\s*=\s*([0-9\.Ee+\-]+)\s*' | |
sr_mass = r'mass\s*=\s*([0-9\.Ee+\-]+)\s*' | |
sr_E = r'E-threshold\s*=\s*([0-9\.Ee+\-]+)\s*' | |
sr_energies = r'energies\s*=\s*([0-9\.Ee+\-]+)\s*' | |
filename = 'rp030065.tot' | |
infile = open(filename, 'r') |