Skip to content

Instantly share code, notes, and snippets.

John Bond b4ldr

Block or report user

Report or block b4ldr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View common.yaml
hosts:
- database
- some_other_host
View gist:7afdf3f46feb424ce440acb0feca2aed
debian-9-x64 14:16:16$ puppet module install puppetlabs-concat -v 6.1.0
Notice: Preparing to install into /etc/puppetlabs/code/environments/production/modules ...
Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Installing -- do not interrupt ...
/etc/puppetlabs/code/environments/production/modules
└─┬ puppetlabs-concat (v6.1.0)
├── puppetlabs-stdlib (v6.0.0)
└── puppetlabs-translate (v2.0.0)
debian-9-x64 executed in 14.43 seconds
View common.yaml
profile::foo::bar::param foobar
View ssh_oom.pp
systemd::dropin_file { 'ssh.conf':
unit => 'ssh.service',
content => 'OOMScoreAdjust=0\n',
notify => Service['ssh'],
}
View gist:148b73167c5efa2df3e305f053831dce
ssh.johnbond.org:~ [ ./nmap/bin/nmap -PN -p 53 --script dns-client-subnet-scan --script-args dns-client-subnet-scan.domain=www.wikimedia.org 208.80.154.238
Starting Nmap 7.70SVN ( https://nmap.org ) at 2019-05-16 19:19 UTC
Nmap scan report for ns0.wikimedia.org (208.80.154.238)
Host is up (0.026s latency).
PORT STATE SERVICE
53/tcp open domain
| dns-client-subnet-scan:
| www.wikimedia.org
| 103.102.166.224
View gist:408b208022e81a59c67d181fe2621480
/usr/bin/ld: libpcap/libpcap.a(pcap-rdmasniff.o): in function `rdmasniff_read':
/home/jbond/git/nmap/libpcap/./pcap-rdmasniff.c:125: undefined reference to `ibv_get_cq_event'
/usr/bin/ld: /home/jbond/git/nmap/libpcap/./pcap-rdmasniff.c:134: undefined reference to `ibv_ack_cq_events'
/usr/bin/ld: /home/jbond/git/nmap/libpcap/./pcap-rdmasniff.c:146: undefined reference to `ibv_wc_status_str'
/usr/bin/ld: libpcap/libpcap.a(pcap-rdmasniff.o): in function `rdmasniff_activate':
/home/jbond/git/nmap/libpcap/./pcap-rdmasniff.c:198: undefined reference to `ibv_open_device'
/usr/bin/ld: /home/jbond/git/nmap/libpcap/./pcap-rdmasniff.c:205: undefined reference to `ibv_alloc_pd'
/usr/bin/ld: /home/jbond/git/nmap/libpcap/./pcap-rdmasniff.c:212: undefined reference to `ibv_create_comp_channel'
View __init__.py
class RollingRestart():
def depool():
def check depool()
def restart()
supprted_damons = {
View crapbot.pl
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '0.01';
%IRSSI = (
authors => 'John Bond',
contact => 'irssi@johnbond.org',
name => 'wikimedia-ops script',
description => 'Script to clean ops channle' .
View standard.pp
class profile::standard (
Boolean $has_default_mail_relay = lookup('profile::standard::has_default_mail_relay', {'default_value' => true}),
Boolean $has_admin = lookup('profile::standard::has_admin', {'default_value' => true}),
) {
class {'standard':
has_default_mail_relay => $has_default_mail_relay
has_admin => $has_admin
}
}
You can’t perform that action at this time.