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
for (int i=0; i<10; i++) { | |
System.out.println(i); | |
} |
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
[rob@macbook ~]$ rabbitmq-server -detach | |
Activating RabbitMQ plugins ... | |
0 plugins activated: | |
+---+ +---+ | |
| | | | | |
| | | | | |
| | | | | |
| +---+ +-------+ |
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
[rob@macbook ~]$ hostname | |
rsmbp.local | |
[rob@macbook ~]$ cat /etc/hosts | |
## | |
# Host Database | |
# | |
# localhost is used to configure the loopback interface | |
# when the system is booting. Do not change this entry. | |
## |
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
[rob@macbook ~]$ rabbitmq-server -detach | |
Activating RabbitMQ plugins ... | |
0 plugins activated: | |
ERROR: unexpected epmd error: address |
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
<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 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 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 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 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 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 |
OlderNewer