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
[root@hpc-dl160a-01 configuration]# ldapsearch -h $(hostname) -x -D "uid=admin,cn=users,cn=accounts,dc=mw,dc=lab,dc=eng,dc=bos,dc=redhat,dc=com" -w admin-123 -b "uid=batchuser,cn=users,cn=accounts,dc=mw,dc=lab,dc=eng,dc=bos,dc=redhat,dc=com" | |
# extended LDIF | |
# | |
# LDAPv3 | |
# base <uid=batchuser,cn=users,cn=accounts,dc=mw,dc=lab,dc=eng,dc=bos,dc=redhat,dc=com> with scope subtree | |
# filter: (objectclass=*) | |
# requesting: ALL | |
# | |
# batchuser, users, accounts, mw.lab.eng.bos.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
[root@hpc-dl160a-01 configuration]# ldapsearch -h $(hostname) -x -D "uid=admin,cn=users,cn=accounts,dc=mw,dc=lab,dc=eng,dc=bos,dc=redhat,dc=com" -w admin-123 -b "cn=loader,cn=roles,cn=accounts,dc=mw,dc=lab,dc=eng,dc=bos,dc=redhat,dc=com" | |
# extended LDIF | |
# | |
# LDAPv3 | |
# base <cn=loader,cn=roles,cn=accounts,dc=mw,dc=lab,dc=eng,dc=bos,dc=redhat,dc=com> with scope subtree | |
# filter: (objectclass=*) | |
# requesting: ALL | |
# | |
# loader, roles, accounts, mw.lab.eng.bos.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
$ ps -ef | |
$ docker build -t dummy . && docker run -it dummy | |
$ while true; do | |
$ kubectl get pods | |
$ sleep 5 | |
$ done |
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
$ ps -ef | |
$ docker build -t dummy . && docker run -it dummy | |
while true; do | |
kubectl get pods | |
sleep 5 | |
done |
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
#!/bin/bash | |
export FUSE_VERSION=jboss-fuse-6.2.0.redhat-133 | |
export JDG_VERSION=`mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\[' | grep -v 'Download'` | |
export CAMEL_JBOSSDATAGRID_VERSION=`mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=version.camel-jbossdatagrid | grep -v '\[' | grep -v 'Download'` | |
if [ -z "$FUSE_INSTALL_PATH" ]; then | |
echo "The variable FUSE_INSTALL_PATH is not set. Exiting..." | |
exit | |
fi |
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
CREATE OR REPLACE FUNCTION my_sum(x int, y int, OUT sum int) AS 'SELECT x+y' LANGUAGE SQL; |
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
@RunWith(Arquillian.class) | |
public class StoreProcedureTest { | |
@PersistenceContext(name="primary") | |
protected EntityManager em; | |
@Deployment | |
public static Archive<?> createDeployment() { | |
JavaArchive archive = ShrinkWrap.create(JavaArchive.class) | |
.addAsResource("sp.sql","import.sql") | |
.addAsResource("META-INF/persistence.xml","META-INF/persistence.xml") | |
.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml"); |
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
@RunWith(Arquillian.class) | |
public class AttributeConverterTest { | |
@EJB | |
PersonService personService; | |
@Deployment | |
public static Archive<?> createDeployment() { | |
JavaArchive archive = ShrinkWrap.create(JavaArchive.class) | |
.addAsResource("META-INF/persistence.xml","META-INF/persistence.xml") |
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
@RunWith(Arquillian.class) | |
public class LocalDateTimeTest { | |
@EJB | |
PersonService personService; | |
@Deployment | |
public static Archive<?> createDeployment() { | |
JavaArchive archive = ShrinkWrap.create(JavaArchive.class) | |
.addAsResource("META-INF/persistence.xml","META-INF/persistence.xml") |
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
#!/bin/sh | |
## | |
set -e | |
machine=L103736 | |
subscription_pool_id=8a85f9815691b057015693f571f11cde # Update this to correctly reflect the pool id of your subscription (subscription-manager list --available --all) | |
read -s -p 'RHN password?' rhn_password | |
mysha=$(cat ~/.ssh/id_rsa.pub) | |
# Customize and start the virtual machine |
OlderNewer