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
| $ git fetch <remoteref> <branchname> | |
| $ git reset --hard FETCH_HEAD | |
| $ git clean -df |
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
| dhclient eth0 | |
| yum -y install system-config-network-tui | |
| # Run system-config-network-tui | |
| # Make sure that /etc/sysconfig/network/scripts/ifcfg-eth0 has ONBOOT=yes |
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
| To create key/cert for use in AWS IAM | |
| $ openssl genrsa -out iam.key 1024 | |
| $ openssl req -new -key iam.key -out iam.csr | |
| $ openssl x509 -req -in iam.csr -signkey iam.key -out iam.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
| set adsi= CREATEOBJECT("ADSystemInfo") | |
| set nt= CREATEOBJECT("NameTranslate") | |
| ' Get the domain short name | |
| adDomain= adsi.DomainShortName | |
| ' Prompt user for uid | |
| user = INPUTBOX("Please enter username: ") | |
| ' Find the user's DN |
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 | |
| # This script facilitates switching multiple dotfiles with symbolic links | |
| DOTFILE_NAME=$1 | |
| PROFILE_NAME=$2 | |
| DOTFILE=~/.${DOTFILE_NAME} | |
| PROFILE=~/.${DOTFILE_NAME}-${PROFILE_NAME} |
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
| #!/usr/bin/env ruby | |
| time_now = Time.now.utc | |
| d1 = Time.utc(time_now.year, time_now.month, time_now.day) | |
| d0 = Time.at(d1.to_i - (24 *60 * 60)).utc | |
| puts d1.to_i | |
| puts d0.to_i |
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
| print ("collection_name,item_count,storage_size") | |
| c = db.getCollectionNames(); | |
| for (var i=0; i<c.length; i++) { | |
| stats = db[c[i]].stats(); | |
| print(c[i]+","+stats.count+","+stats.storageSize); | |
| } |
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
| encryptedDataSource.password={AES}MPE7vxSgzGsdItYUhk1k7QFJC6s383E+56HGemk0QyY= | |
| encryptedDataSource.username={AES}izkVVx5JGjAduyIT2+/nQol+GjvePbJi1Zx9lYMbkLQ= | |
| unencryptedDataSource.password=mysecret | |
| unencryptedDataSource.username=myuser |
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
| <beans xmlns="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:lang="http://www.springframework.org/schema/lang" | |
| xmlns:context="http://www.springframework.org/schema/context" | |
| xsi:schemaLocation=" | |
| http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | |
| http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-3.0.xsd | |
| http://www.springframework.org/schema/context | |
| http://www.springframework.org/schema/context/spring-context-3.0.xsd"> |
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
| [rob@macbook ~]$ rabbitmq-server -detach | |
| Activating RabbitMQ plugins ... | |
| 0 plugins activated: | |
| ERROR: unexpected epmd error: address |