I hereby claim:
- I am troeger on github.
- I am troeger (https://keybase.io/troeger) on keybase.
- I have a public key ASBw5W4OrhTqXmMKh4E8xJZnwsuNXA_VZySHxiKvMlt7QAo
To claim this, I am signing this object:
#!/usr/bin/env python | |
''' | |
A minimal example for calling the PyPy interpreter from CPython. | |
Derived from pyinteractive.py. | |
This only intended to understand what is going on when. | |
PyPy triggers arbitary C compiler runs in between ... | |
''' | |
source="print 'Hello World'" |
#!/usr/bin/python | |
''' | |
Check status of an Adaptec HW RAID controller and sends an email | |
if something looks bad. | |
Intended for being used as cron job, so no screen output is generated. | |
''' | |
# Configuration section | |
notify_email="root" |
$ENV{'TEXINPUTS'}='.:../../../Common//:../Include/:' . $ENV{'TEXINPUTS'}; | |
$pdflatex="pdflatex -shell-escape -file-line-error --synctex=1 %O %S"; | |
$pdf_mode=1; |
import schlundtech | |
auth={"user":"xxxxxx", "password":"yyyyy", "context":"zzz"} | |
all_domains=schlundtech.domain_info(auth) | |
for domain in all_domains: | |
print("\n{name} (last update: {updated})".format(**domain)) | |
info=schlundtech.zone_info(auth, domain['name']) | |
for rr in info: | |
print("{name}\t\t{type}\t{value}".format(**rr)) |
#!/usr/bin/env python | |
''' | |
Script for emulating the BetterBibtex stable citation key feature. | |
(see https://github.com/retorquere/zotero-better-bibtex) | |
input.bib: A BibLatex export from a Zotero 5 library that has "Extra" field | |
entries for stable BibTex keys ("bibtex: <my_key>"). They end up in the | |
note field of the standard Zotero 5 export. | |
output.bib: A BibTex file where the citation keys from the Extra/note field are |
I hereby claim:
To claim this, I am signing this object:
root@datexis-master2:/data/brick1# gluster volume get fast all | |
Option Value | |
------ ----- | |
cluster.lookup-unhashed on | |
cluster.lookup-optimize on | |
cluster.min-free-disk 10% | |
cluster.min-free-inodes 5% | |
cluster.rebalance-stats off | |
cluster.subvols-per-directory (null) | |
cluster.readdir-optimize off |
An adoption of https://pypy.readthedocs.org/en/release-2.4.x/arm.html
mkdir crosscompiler
cd crosscompiler/
git clone git://github.com/raspberrypi/tools.git --depth 1
cd ..
class Script { | |
process_incoming_request({ request }) { | |
console.log(request.content); | |
return { | |
content:{ | |
"text": request.content.message, | |
"attachments": [{ | |
"author_name": "Grafana", | |
"image_url": request.content.imageUrl, | |
"title": request.content.title |
Lets assume you want to get rid of OSD.2, and none of the "nice" ways worked. | |
- Determine the node where the OSD daemon is running (`kubectl -n rook-ceph get pods -o wide|grep osd.2`) | |
- Enter the toolbox pod, run `ceph osd out 2` | |
- Wait for the cluster to migrate the data away (`ceph status -w`) | |
- Delete the Rook deployment for OSD 2. | |
- Enter the toolbox pod, run: | |
- ceph osd crush remove osd.2 | |
- ceph auth del osd.2 | |
- ceph osd rm 2 |