-
This is a numbered list.
-
I'm going to include a fenced code block as part of this bullet:
Code More Code
This file contains 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/perl | |
use strict; | |
use warnings; | |
use Irssi; | |
our $VERSION = 0.1; | |
our %IRSSI = ( | |
authors => 'Fredrik "Demonen" Vold', | |
contact => '[email protected]', | |
name => 'mark', |
This file contains 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/python | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected]) | |
# The author disclaims copyright to this source code. | |
# Mirror from http://s3.jspenguin.org/ssltest.py | |
import sys | |
import struct | |
import socket | |
import time |
This file contains 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
#include <Python.h> | |
/***********************************************************/ | |
/* define logging function and logtypes for python.logging */ | |
/* by H.Dickten 2014 */ | |
/***********************************************************/ | |
enum logtypes {info, warning, error, debug}; | |
static void log_msg(int type, char *msg) | |
{ |
This file contains 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 bash | |
progname=$(basename $0) | |
version="1.0 (2014-08-17)" | |
step=2 | |
function create_hash { | |
openssl dgst -sha1 -binary <<< "$1" | xxd -p | |
} |
Place the service file (or a link to it) in /etc/systemd/system/ Place the watchdogged.py file somewhere ( and change the ExecStart portion in the .service to point at the file )
then do systemctl daemon-reload
followed by systemctl start watchdogged.service
After this you can watch the progress using journalctl --follow -u watchdogged.service
change the PROBABILITY variable to something else to watch it faster/later or succeed.
This file contains 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 State design pattern. | |
In Python this is done dynamically by changing the __class__ attribute. | |
Author : Anand B Pillai <[email protected]> | |
License: Public Domain | |
Ref: http://harkablog.com/dynamic-state-machines.html |
This file contains 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
# For creating the lambda functions, see instructions here: https://github.com/pjodouin/ansible-lambda | |
# Run this playbook with: | |
# ansible-playbook cloudwatch_events.yml --extra-vars debug=True | |
# Ansible CloudWatch Event module PR: https://github.com/ansible/ansible-modules-extras/pull/2101 | |
# Ansible Lambda modules PR: https://github.com/ansible/ansible-modules-extras/pull/1890 | |
--- | |
- name: CloudWatch Events | |
hosts: localhost | |
connection: local | |
gather_facts: False |
OlderNewer