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
# knife cheat | |
## Search Examples | |
knife search "name:ip*" | |
knife search "platform:ubuntu*" | |
knife search "platform:*" -a macaddress | |
knife search "platform:ubuntu*" -a uptime | |
knife search "platform:ubuntu*" -a virtualization.system | |
knife search "platform:ubuntu*" -a network.default_gateway |
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 -w | |
# | |
# check_ssl_certificate | |
# Nagios script to check ssl certificate expirations | |
# | |
# Copyright (c) 2006-2008 David Alden <[email protected]> | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 |
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
import mysql.connector | |
uuids = [] | |
class MySQLCursorDict(mysql.connector.cursor.MySQLCursor): | |
def _row_to_python(self, rowdata, desc=None): | |
row = super(MySQLCursorDict, self)._row_to_python(rowdata, desc) | |
if row: | |
return dict(zip(self.column_names, row)) | |
return None | |
cnx = mysql.connector.connect(host="localhost", user="glance", passwd="", db="glance") |
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
This is - Win95.CiH ! | |
**************************************************************************** | |
; * The Virus Program Information * | |
; **************************************************************************** | |
; * * | |
; * Designer : CIH Source : TTIT of TATUNG in Taiwan * | |
; * Create Date : 04/26/1998 E-mail : [email protected] * | |
; * Modification Time : 06/01/1998 Version : 1.5 * | |
; * * | |
; * Turbo Assembler Version 5.0 : Tasm /m cih * |
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 | |
import datetime | |
year = 2020 | |
def round_name(week): | |
return { | |
1: 'VHF', | |
2: 'UHF', |
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 python2 | |
# -*- coding: utf-8 -*- | |
################################################## | |
# GNU Radio Python Flow Graph | |
# Title: Wspr Hackrf | |
# Generated: Wed Aug 17 21:55:01 2016 | |
################################################## | |
from gnuradio import audio | |
from gnuradio import blocks |
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
<!-- Rig definition file for use with fldigi | |
Date : 25 July 2012 | |
--> | |
<RIGDEF> | |
<RIG>Kenwood TS-590S</RIG> | |
<PROGRAMMER> | |
Dave Freese, W1HKJ; |
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 | |
# Example how to use relay board with Odroid C1+ | |
# | |
# Installation instructions: | |
# https://github.com/hardkernel/WiringPi2-Python/ | |
# | |
# Pinout: | |
# http://pi4j.com/images/odroid-xu4-shifter-shield-pinout-large.png |
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
mycall LY2EN-3 | |
myloc lat 5443.45N lon 02517.30E | |
<aprsis> | |
passcode -1 | |
server euro.aprs2.net | |
heartbeat-timeout 1m | |
</aprsis> | |
<logging> | |
pidfile /var/run/aprx.pid |
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
[OSEv3:children] | |
masters | |
nodes | |
etcd | |
glusterfs | |
[OSEv3:vars] | |
ansible_ssh_user=centos | |
ansible_become=true | |
enable_excluders=false |
OlderNewer