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
package com.mirth.stevek.rxtest; | |
import rx.Observable; | |
import rx.functions.Action1; | |
import rx.functions.Func1; | |
import rx.functions.Func3; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.concurrent.*; |
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
$ docker run --rm -it ubuntu bash | |
root@b327e1a0640b:/# function file_ends_with_newline() { | |
> [[ $(tail -c1 "$1" | wc -l) -gt 0 ]] | |
> } | |
root@b327e1a0640b:/# | |
root@b327e1a0640b:/# touch empty.txt | |
root@b327e1a0640b:/# | |
root@b327e1a0640b:/# | |
root@b327e1a0640b:/# file_ends_with_newline empty.txt && echo ends in newline || echo does NOT end in newline | |
does NOT end in newline |
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 | |
# | |
# Wrapper for any AWS-related command using aws that handles the 1 hour MFA token. | |
# | |
# Create an aws-role.config.json file in the same directory as this script that looks like: | |
# { | |
# "<your-profile-nickname>": { | |
# "profile": "<your-hub>", | |
# "region": "<your-default-region>", | |
# "mfa_arn": "<your-mfa-arn>", |
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 | |
# | |
# Wrapper for any AWS-related command using aws that handles the 1 hour MFA token. | |
# | |
# Create an aws-role.config.json file in the same directory as this script that looks like: | |
# { | |
# "spoke-account": { | |
# "profile": "hub", | |
# "region": "us-west-2", | |
# "mfa_arn": "<your-mfa-arn>", |
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 | |
set -e | |
unset AWS_ACCESS_KEY_ID | |
unset AWS_SECRET_ACCESS_KEY | |
unset AWS_SESSION_TOKEN | |
unset AWS_DEFAULT_REGION | |
unset AWS_DEFAULT_OUTPUT | |
unset AWS_PROFILE | |
unset AWS_CA_BUNDLE |
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
postgres=# SELECT version(); | |
version | |
--------------------------------------------------------------------------------------------------------------- | |
PostgreSQL 9.4.4 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44), 64-bit | |
(1 row) | |
postgres=# SELECT name, current_setting(name), SOURCE | |
postgres-# FROM pg_settings | |
postgres-# WHERE SOURCE NOT IN ('default', 'override'); | |
name | current_setting | source |
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
postgres=# SELECT version(); | |
version | |
--------------------------------------------------------------------------------------------------------------- | |
PostgreSQL 9.4.5 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44), 64-bit | |
(1 row) | |
postgres=# SELECT name, current_setting(name), SOURCE | |
postgres-# FROM pg_settings | |
postgres-# WHERE SOURCE NOT IN ('default', 'override'); | |
name | current_setting | source |
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
freenas# less textdump.tar.last | |
"textdump.tar.last" may be a binary file. See it anyway? | |
ddb.txt^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@0600^@^@^@^@0^@^@^@^@^@^@^@0^@^@^@^@^@^@^@140000^@^@^@^@^@^@12267724774^@ 7114^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ustar^@^@^@root^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@wheel^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ | |
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ |
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
freenas# dmesg | less | |
Copyright (c) 1992-2013 The FreeBSD Project. | |
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 | |
The Regents of the University of California. All rights reserved. | |
FreeBSD is a registered trademark of The FreeBSD Foundation. | |
FreeBSD 9.2-RELEASE #0 r+2315ea3: Fri Dec 20 12:48:50 PST 2013 | |
root@build.ixsystems.com:/tank/home/jkh/checkout/freenas/os-base/amd64/tank/home/jkh/checkout/freenas/FreeBSD/src/sys/FREENAS.amd64 amd64 | |
gcc version 4.2.1 20070831 patched [FreeBSD] | |
CPU: Intel(R) Xeon(R) CPU E3-1230 v3 @ 3.30GHz (3292.44-MHz K8-class CPU) | |
Origin = "GenuineIntel" Id = 0x306c3 Family = 0x6 Model = 0x3c Stepping = 3 |
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
2014/01/03 11:24:26 Packer Version: 0.5.1 eeefde8fc71444fdfc77711dc0e2789fa9b3b7d2 | |
2014/01/03 11:24:26 Packer Target OS/Arch: darwin amd64 | |
2014/01/03 11:24:26 Built with Go Version: go1.2 | |
2014/01/03 11:24:26 Detected home directory from env var: /Users/stevek | |
2014/01/03 11:24:26 Attempting to open config file: /Users/stevek/.packerconfig | |
2014/01/03 11:24:26 File doesn't exist, but doesn't need to. Ignoring. | |
2014/01/03 11:24:26 Packer config: &{PluginMinPort:0 PluginMaxPort:0 Builders:map[amazon-ebs:packer-builder-amazon-ebs digitalocean:packer-builder-digitalocean googlecompute:packer-builder-googlecompute virtualbox-ovf:packer-builder-virtualbox-ovf vmware-iso:packer-builder-vmware-iso amazon-chroot:packer-builder-amazon-chroot amazon-instance:packer-builder-amazon-instance docker:packer-builder-docker openstack:packer-builder-openstack qemu:packer-builder-qemu virtualbox-iso:packer-builder-virtualbox-iso vmware-vmx:packer-builder-vmware-vmx] Commands:map[build:packer-command-build fix:packer-command-fix in |
NewerOlder