View solaris_multicast.sh
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
# 172.16.1.2 is the address assigned to interface that should | |
# route/broadcast the packets. | |
sudo /usr/sbin/route -n add -interface 224.0/4 -gateway 172.16.1.2 |
View gist:7629198
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
sw01#show ip mroute | |
IP Multicast Routing Table | |
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected, | |
L - Local, P - Pruned, R - RP-bit set, F - Register flag, | |
T - SPT-bit set, J - Join SPT, M - MSDP created entry, | |
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement, | |
U - URD, I - Received Source Specific Host Report, | |
Z - Multicast Tunnel, z - MDT-data group sender, | |
Y - Joined MDT-data group, y - Sending to MDT-data group | |
V - RD & Vector, v - Vector |
View gist:10213678
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
// Send xterm to machine from Jenkins: | |
def myip='192.168.0.2' | |
def proc = "xterm".execute(["DISPLAY=${myip}:0.0"], new File('/home/jenkins')) | |
proc.waitFor() | |
println "return code: ${proc.exitValue()}" | |
println "stderr: ${proc.err.text}" | |
println "stdout: ${proc.in.text}" |
View gist:10339105
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
https://access.redhat.com/site/solutions/29269 | |
# register the system that is connected to RHN, directly or using a http proxy: | |
rhn_register --nox --proxy=1.2.3.4 | |
# or use | |
subscription-manager register --user --password --auto-allow ? | |
# sync updates from channels | |
reposync -p /somedir --repoid=rhel-x86_64-server-5 -l |
View rpmrebuild.sh
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
yum install rpmrebuild -y | |
mkdir output | |
# If your RPMs do not contain all of the tags defined in this preamble | |
# then use the --change-spec-preamble flag to modify the preamble. | |
cat /usr/lib/rpmrebuild/rpmrebuild_rpmqf.src | |
# Change the RPM's release number to 2. Ignore Distribution and URL. | |
rpmrebuild -p --notest-install \ |
View gist:490ce75c8278aff97526
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
Cisco Adaptive Security Appliance Software Version 9.1(1)4 | |
Device Manager Version 7.1(2) | |
Compiled on Wed 13-Mar-13 07:45 by builders | |
System image file is "disk0:/asa911-4-k8.bin" | |
Config file at boot was "startup-config" | |
asa5505 up 23 hours 25 mins | |
Hardware: ASA5505, 512 MB RAM, CPU Geode 500 MHz, |
View fstab.pp
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
augeas{ '/etc/fstab - nosuid on /sys': | |
context => "/files/etc/fstab", | |
changes => [ | |
"ins opt after /files/etc/fstab/*[file = '/sys']/opt[last()]", | |
"set *[file = '/sys']/opt[last()] nosuid", | |
], | |
onlyif => "match *[file = '/sys']/opt[. = 'nosuid'] size == 0", | |
} | |
augeas{ '/etc/fstab - acl on /sys': |
View gist:d5d8acb420fbf54babfc
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
puppet filebucket --bucket /var/lib/puppet/clientbucket -l get b52b12f6059f118d2db377b92e8458eb |
View KeyExtractor.java
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
/* | |
* Copyright 2011 Andrew Kroh | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
View sshd
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
#%PAM-1.0 | |
# Skip Google Authenticator for the vagrant user: | |
auth [success=1 default=ignore] pam_succeed_if.so user = vagrant | |
auth required pam_google_authenticator.so | |
auth required pam_unix.so | |
auth required pam_sepermit.so | |
auth include password-auth | |
account required pam_nologin.so |
OlderNewer