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
[frameos-experimental] | |
gpgcheck=1 | |
gpgkey=http://mirror.frameos.org/RPM-GPG-KEY-FrameOS-5 | |
baseurl=http://mirror.frameos.org/frameos/6/experimental/x86_64 | |
name=FrameOS Experimental Repo | |
enabled=1 |
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
description "IBM/Lenovo trackpoint sentivity adjustment" | |
start on runlevel 2 | |
script | |
SYS_FILE="/sys/devices/platform/i8042/serio1/sensitivity" | |
if test -f $SYS_FILE; then | |
sudo echo -n 200 > $SYS_FILE | |
else | |
logger "Trackpoint sensitivity couldn't be adjusted." |
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 | |
# | |
# | |
#[Macoy] original script taken from: | |
# [Macoy]http://www.macgeekery.com/user/unixgeek | |
# [Macoy] this script revised by macoy [http://macoy.wordpress.com] | |
# Usage: perl vncpasswd.pl [password] | |
# [Macoy]$ perl vncpass_macoy.pl [vnc_password] > startvnc.sh | |
# [Macoy]$ sh startvnc.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
require 'rubygems' | |
require 'dbus' | |
require 'pp' | |
bus = DBus::SessionBus.instance | |
service = bus.service 'org.mpris.MediaPlayer2.spotify' | |
obj = service.object '/org/mpris/MediaPlayer2' | |
obj.introspect | |
player = obj["org.mpris.MediaPlayer2.Player"] |
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 ruby | |
require 'tmpdir' | |
require 'fileutils' | |
require 'thread' | |
def progress_loop(thread , msg = "Working... " , step_lag = 0.1) | |
$stdout.sync = true | |
line_reset = "\r\e[0K" + msg | |
while thread.status | |
print line_reset + "|" |
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
default kickstart | |
prompt 1 | |
timeout 60 | |
display boot.msg | |
F1 boot.msg | |
F2 options.msg | |
F4 param.msg | |
F5 rescue.msg | |
label local |
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 | |
# | |
# anaconda: The Red Hat Linux Installation program | |
# | |
# (in alphabetical order...) | |
# | |
# Brent Fox <bfox@redhat.com> | |
# Mike Fulbright <msf@redhat.com> | |
# Jakub Jelinek <jakub@redhat.com> | |
# Jeremy Katz <katzj@redhat.com> |
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
bash -c ' | |
if [ ! -f /usr/bin/chef-client ]; then | |
cd /tmp | |
rpm -Uvh http://rbel.frameos.org/rbel6 | |
yum install -y ruby rubygem-chef ntp | |
fi | |
mkdir -p /etc/chef | |
( |
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
bash -c ' | |
if [ ! -f /usr/bin/chef-client ]; then | |
cd /tmp | |
rpm -Uvh http://rbel.frameos.org/rbel5 | |
yum install -y ruby rubygem-chef | |
fi | |
# install ntp, clock is important | |
yum install ntp |
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
require 'rubygems' | |
require 'rbvmomi' | |
vim = RbVmomi::VIM.connect :host => '10.60.1.71', :user => 'root', :password => 'temporal', :insecure => true | |
# get current time | |
vim.serviceInstance.CurrentTime | |
# get datacenter | |
dc = vim.serviceInstance.find_datacenter |