Skip to content

Instantly share code, notes, and snippets.

View abrader's full-sized avatar

Andrew Brader abrader

  • Portland, OR 97209
View GitHub Profile
@abrader
abrader / types_providers_doc_and_examples.md
Last active June 21, 2017 18:47
Documents and examples for Types and Providers documentation
@abrader
abrader / simp_mod_organization.md
Created May 8, 2017 16:25
OnyxPoint: SIMP Module Organization

onyxpoint-logo

SIMP Module Organization

SIMP Core

  • simp-doc
  • simp-rsync
  • rubygem-simp_cli
  • simp-pupmod
@abrader
abrader / puppet_agent_install.ps1
Created March 7, 2017 03:57
Windows drives me mad
[Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}; $webClient = New-Object System.Net.WebClient; $webClient.DownloadFile("https://pe-201643-master:8140/packages/current/install.ps1", "$env:temp\install.ps1"); & "$env:temp\install.ps1"
@abrader
abrader / enpts_types.md
Last active February 27, 2017 16:00
Endpoints to Types
f5_authn_login
f5_authn_root
f5_echo
f5_add_to_trust
f5_config_sync
f5_device_group
f5_sync_status
f5_traffic_group
f5_traffic_group_stats
@abrader
abrader / f5_postman_workflow.md
Created February 17, 2017 01:18
F5 Endpoints: BIGUP Device Onboarding

F5 Endpoints: BIGIP Device Onboarding

Covered Enpoints in puppetlabs-f5_rest

/mgmt/tm/auth/partition
/mgmt/tm/cm/device
/mgmt/tm/net/self
/mgmt/tm/net/vlan
/mgmt/tm/ltm/profile
/mgmt/tm/ltm/rule
@abrader
abrader / puppet_f5_endpoints.md
Created February 8, 2017 23:51
Puppet F5 Rest Module: Endpoints

F5 Endpoints

Covered Enpoints

/mgmt/tm/ltm/profile
/mgmt/tm/sys/application/service
/mgmt/tm/ltm/rule
/mgmt/tm/ltm/monitor/external
/mgmt/tm/ltm/monitor/gateway-icmp
/mgmt/tm/ltm/monitor/http
@abrader
abrader / smartctl.txt
Created February 7, 2017 01:50
Hades disk output
[root@hades ~]# smartctl -i /dev/sda
smartctl 6.5 2016-05-07 r4318 [x86_64-linux-4.9.6-200.fc25.x86_64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: 6$6
Product: ��@
User Capacity: 3,001,322,180,671,689,960 bytes [3001 PB]
Logical block size: 1234716765 bytes
>> Terminate command early due to bad response to IEC mode page
@abrader
abrader / set_resolv.py
Last active April 3, 2021 01:24
Python resolv.conf setter
#!/usr/bin/env python
def set_resolvers(domain, searches = [], resolvers = []):
try:
with open( '/etc/resolv.conf', 'w' ) as resolvconf:
for server in resolvers:
ns = 'nameserver {0}\n'.format( server ).strip()
print ns
resolvconf.write(ns)
for search in searches:
search = 'search {0}\n'.format( search ).strip()
@abrader
abrader / .gitignore
Created January 12, 2017 15:34
Git Ignore file
*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/test/tmp/
/test/version_tmp/
/tmp/
@abrader
abrader / dbadmins.pp
Created December 14, 2016 16:29
Puppet Practitioner: Lab 4.1
class system::dbadmins {
require mysql::server
mysql_user { 'zack@localhost' :
ensure => present,
max_queries_per_hour => 1200,
}
mysql_user { 'monica@localhost' :
ensure => present,
max_queries_per_hour => 600,