This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import string | |
from argparse import ArgumentParser | |
def create_parser(args=sys.argv[1:]): | |
parser = ArgumentParser() | |
parser.add_argument("--pid", "-p", type=int, help="the PID number of the process") | |
parser.add_argument("--string", "-s", help="Search string") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Cinnamon Ice cream | |
### Ingredients: | |
caster sugar 110 g | |
cinnamon stick 1 pc | |
cream 500 ml | |
egg yolks 5 | |
ground cinnamon 2 tbs | |
milk 250 ml |
title | date | draft | tags |
---|---|---|---|
Falafel |
2020-05-30 15:49:57 +0200 |
true |
![alt text][banner]
Enhet | Ingrediens
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$the_cow = <<EOC | |
$thoughts | |
$thoughts .':ccoc..,. | |
$thoughts '0KKKXXNXXXXXO. | |
$thoughts .k000KKKXXXXXXXXKO, | |
$thoughts ;O0KK0KKKKKKXXXXKKK0: | |
$thoughts odkkkxxkkkOO00KKK000KO. | |
$thoughts $thoughts. cKkxxddoodxkkkOOOOOOOkO0xO; | |
$thoughts ddKOxdoddoddxOOkkOOOOOOOOk00Kl | |
$thoughts :Okxooooollllooxdodoxxxxxxk0k0k |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Domain Search Option Format generator for Unifi Security Gateway | |
# Usage: python3 dhcp_option_119.py example.com example.net | |
import sys | |
hexes = [] | |
for domain in sys.argv[1:]: | |
for label in domain.split('.'): | |
hexes.append('%02x' % len(label)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# | |
# Description: Expose iprometheus metrics from zypper updates and patches | |
# | |
# Author: Jonas Forsberg <[email protected]> | |
set -u -o pipefail | |
tempfile=$(mktemp /tmp/checkupdate.XXXXXX) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3 | |
# Install hpOveView SDK and ansible | |
RUN pip3 install --no-cache-dir hpOneView ansible | |
# install ansible oneview module | |
WORKDIR /root | |
ENV ONEVIEW_ANSIBLE_MODULE_VERSION 3.1.0 | |
ENV ANSIBLE_LIBRARY /root/oneview-ansible-${ONEVIEW_ANSIBLE_MODULE_VERSION}/library |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:2.7 | |
#install ansible | |
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367 && \ | |
echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" > /etc/apt/sources.list.d/ansible.list && \ | |
apt-get update && \ | |
apt-get install --no-install-recommends -y \ | |
ansible && \ | |
rm -rf /var/lib/apt/lists/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql < commands.sql | sed 's/\t/","/g;s/^/"/;s/$/"/;s/\n//g' > output.csv |
NewerOlder