Skip to content

Instantly share code, notes, and snippets.

View shtrom's full-sized avatar
💭
When you're coding, noone needs to see your mouth.

Olivier Mehani shtrom

💭
When you're coding, noone needs to see your mouth.
View GitHub Profile
@shtrom
shtrom / openldap_passwd.py
Last active December 6, 2017 02:34 — forked from rca/openldap_passwd.py
Python hashing and test functions for user passwords stored in OpenLDAP.
#!/usr/bin/env python
"""
http://www.openldap.org/faq/data/cache/347.html
As seen working on Ubuntu 12.04 with OpenLDAP 2.4.28-1.1ubuntu4
Author: Roberto Aguilar <[email protected]>
"""
import hashlib
import os
@shtrom
shtrom / openpgp.txt
Created May 10, 2016 06:28
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:4435cf6a7c8ddd9be2def5f9f012a6e298c66655]

Keybase proof

I hereby claim:

  • I am shtrom on github.
  • I am shtrom (https://keybase.io/shtrom) on keybase.
  • I have a public key whose fingerprint is 4435 CF6A 7C8D DD9B E2DE F5F9 F012 A6E2 98C6 6655

To claim this, I am signing this object:

@shtrom
shtrom / graphite-web.rc
Created July 30, 2012 07:38
ArchLinux rc.d script for AUR package graphite-web
#!/bin/bash
daemon_name=graphite-web
. /etc/rc.conf
. /etc/rc.d/functions
get_pid() {
echo `ps ax | grep [c]arbon-cache.py | awk '{ print $1; }'; \
ps ax | grep [u]wsgi-graphite.yaml | awk '{ print $1; }'`