This file contains hidden or 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
# | |
# OpenSSL example configuration file. | |
# This is mostly being used for generation of certificate requests. | |
# | |
# This definition stops the following lines choking if HOME isn't | |
# defined. | |
HOME = . | |
RANDFILE = $ENV::HOME/.rnd |
This file contains hidden or 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
# | |
# OpenSSL example configuration file. | |
# This is mostly being used for generation of certificate requests. | |
# | |
# This definition stops the following lines choking if HOME isn't | |
# defined. | |
HOME = . | |
RANDFILE = $ENV::HOME/.rnd |
This file contains hidden or 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
#!/bin/bash | |
if [ x"$#" != x"2" ]; then | |
echo "$0 username display" | |
exit 1 | |
fi | |
user=$1; shift | |
display=$1; shift | |
unitfile=/etc/systemd/system/vncserver@:${display}.service |
This file contains hidden or 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
#!/bin/sh | |
yum groupinstall "X Window System" | |
yum install gnome-classic-session gnome-terminal nautilus-open-terminal control-center liberation-mono-fonts | |
# yum install tigervnc-server virt-manager virt-install |
This file contains hidden or 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
#!/bin/sh | |
#hadoop jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar teragen 100000000 teragen/10g1 | |
yarn jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar teragen 100000000 teragen/10g1 | |
yarn jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar terasort teragen/10g1 terasort |
This file contains hidden or 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
[root@node01 ~]# yum repolist | |
Loaded plugins: product-id, subscription-manager | |
repo id repo name status | |
rhel-6-server-optional-rpms Red Hat Enterprise Linux 6 Server - Optional (RPMs) 8163 | |
rhel-6-server-rh-common-rpms Red Hat Enterprise Linux 6 Server - RH Common (RPMs) 89 | |
rhel-6-server-rpms Red Hat Enterprise Linux 6 Server (RPMs) 14526 | |
rhel-6-server-supplementary-rpms Red Hat Enterprise Linux 6 Server - Supplementary (RPMs) 448 | |
rhel-ha-for-rhel-6-server-rpms Red Hat Enterprise Linux High Availability (for RHEL 6 Server) (RPMs) 417 | |
repolist: 23643 | |
[root@node01 ~]# |
This file contains hidden or 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
[root@repository ~]# subscription-manager | |
Usage: subscription-manager MODULE-NAME [MODULE-OPTIONS] [--help] | |
Primary Modules: | |
attach Attach a specified subscription to the registered system | |
list List subscription and product information for this system | |
refresh Pull the latest subscription data from the server | |
register Register this system to the Customer Portal or another subscription management service | |
release Configure which operating system release to use |
This file contains hidden or 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
HOST_IP=172.16.143.89 | |
DEST=/opt/stack | |
LOGFILE=stack.sh.log | |
VERBOSE=True | |
LOG_COLOR=True | |
SCREEN_LOGDIR=${DEST}/logs/screen | |
FLOATING_RANGE=172.16.99.0/24 | |
FIXED_RANGE=172.16.89.0/24 | |
FIXED_NETWORK_SIZE=256 | |
FLAT_INTERFACE=eth0 |
This file contains hidden or 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
-- inspired by: http://forums.macrumors.com/showthread.php?t=1099181 | |
tell application "System Events" | |
tell process "SystemUIServer" | |
tell menu bar 1 | |
set menuExtras to (value of attribute "AXChildren") | |
set airport to -1 | |
repeat with aMenu in menuExtras | |
tell aMenu | |
if value of attribute "AXDescription" contains "Wi-Fi" then | |
set airport to aMenu |
This file contains hidden or 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
-- references: http://apple.stackexchange.com/questions/78793/apple-script-vpn-textbox | |
tell application "System Events" | |
tell current location of network preferences | |
set VPNservice to service "VPN NAME" -- name of the VPN service | |
if exists VPNservice then | |
if current configuration of VPNservice is not connected then | |
connect VPNservice | |
else | |
error "already connected." | |
end if |