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
var myApp = angular.module('myApp', []); | |
function MyCtrl($scope) { | |
$scope.name = 'Superhero'; | |
$scope.allGroups = [ | |
'Group One', | |
'Heres a Group', ]; | |
$scope.domainGroups = []; | |
$scope.addToDomain = function (group) { |
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
gem 'paper_trail', '~> 3.0.0.beta', :git => 'git://github.com/airblade/paper_trail.git' |
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
require 'ldap_fluff' | |
class Ldap | |
def self.valid_ldap_authentication?(uid, password) | |
ldap = LdapFluff.new | |
ldap.authenticate? uid, password | |
end | |
def self.ldap_groups(uid) | |
ldap = LdapFluff.new |
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
for /l %%x in (1,1,1000) do ( | |
Dsadd user "cn=bro%%x,ou=bros,dc=jomara,dc=redhat,dc=com", -pwd br01234! -memberof "cn=bros,ou=bropeeps,dc=jomara,dc=redhat,dc=com" | |
) |
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
https://github.com/jdob/sandbox/blob/master/synergy.conf |
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
Client Config | |
scp root@HOSTNAME://etc/candlepin/certs/candlepin-ca.crt /etc/rhsm/ca/headpin.pem | |
Edit the subscription manager conf file | |
hostname = HOSTNAME | |
prefix = /headpin/api | |
baseurl= https://HOSTNAME:8088 | |
repo_ca_cert = %(ca_cert_dir)sheadpin.pem |
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 | |
# clonio | |
# replace /home/jsomara/images with where you're copying your image from | |
# usage sudo sh clonio.sh rhel-6.2-base zoidberg | |
# rhel-6-2-base.img is in /home/jsomara/images/rhel-6-2-base.img | |
# zoidberg.img ends up in /home/jsomara/images | |
# thanks to jeckersb | |
virt-clone -o $1 -n $2 -f /home/jsomara/images/$2.img | |
MAC=$(cat /etc/libvirt/qemu/$2.xml | grep 'mac address' | sed -r "s/^[^']+'([^']+)'.*/\1/") |
NewerOlder