I hereby claim:
- I am kalmanolah on github.
- I am kalman (https://keybase.io/kalman) on keybase.
- I have a public key whose fingerprint is 70E8 BDAD B2D5 3F2C 1B05 CF52 546B 0CF0 E442 45DD
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| """ | |
| This script prints some info about the currently playing song, in a pretty way. | |
| @author Kalman Olah | |
| """ | |
| import cgi | |
| import dbus | |
| import shlex |
| #!/usr/bin/env python3 | |
| # @python3 | |
| # @author Kalman Olah <[email protected]> | |
| """pdoc - a puppet documentation generator thingy.""" | |
| import os | |
| import re | |
| import fnmatch | |
| import click | |
| from datetime import datetime |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| function uploadFileContentsViaFtp( | |
| $sftp = false, | |
| $host, | |
| $port, | |
| $user, | |
| $password, | |
| $folder, | |
| $file_name, | |
| $file_contents |
| function generateColor(mix, mixColor) { | |
| if (!mixColor) { | |
| mixColor = { | |
| red: 255, | |
| green: 255, | |
| blue: 255 | |
| }; | |
| } | |
| var red = Math.floor((Math.random()*256)), |
| #!/bin/bash | |
| # Bash script for installing and running the latest version | |
| # of puppet on a machine running debian wheezy | |
| # Set some variables | |
| puppet_server="puppet.example.com" | |
| sleep_time="120" | |
| # Add PuppetLabs repo | |
| cat > /etc/apt/sources.list.d/puppetlabs.list << EOL |
| function formatTime(secs, format) { | |
| if (!format) { | |
| format = '%hh %mm %ss'; | |
| } | |
| var hours = ("0" + Math.floor(secs / 3600)).slice(-2), | |
| minutes = ("0" + Math.floor((secs % 3600) / 60)).slice(-2), | |
| seconds = ("0" + (secs % 60)).slice(-2); | |
| return format |
| #!/bin/bash | |
| # What if He-Man used Postgres? | |
| _he_man_autocomplete() { | |
| COMPREPLY=("the Power of postGRESQL...") | |
| return 0 | |
| } | |
| By() { | |
| if [[ $EUID -ne 0 ]]; then |
| #!/bin/bash | |
| # Foreman repo | |
| echo "deb http://deb.theforeman.org/ wheezy 1.3" > /etc/apt/sources.list.d/foreman.list | |
| wget -q http://deb.theforeman.org/foreman.asc -O- | apt-key add - | |
| # PuppetLabs repo | |
| cat > /etc/apt/sources.list.d/puppetlabs.list << EOL | |
| deb http://apt.puppetlabs.com wheezy main devel dependencies | |
| deb-src http://apt.puppetlabs.com wheezy main devel dependencies |
| <?php | |
| namespace Your\ExampleBundle\Twig; | |
| use Symfony\Component\Translation\TranslatorInterface; | |
| /** | |
| * Twig extension for translating arrays in Symfony2 | |
| * Works just like the regular 'trans' filter, but takes an array as input instead | |
| * | |
| * your.examplebundle.translation_extension: |