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
$ aws opsworks describe-stacks | |
{ | |
"Stacks": [ | |
{ | |
"ServiceRoleArn": "arn:aws:iam::047170177871:role/aws-opsworks-service-role", | |
"StackId": "575e1389-1df3-427d-99d3-d60f89a41442", | |
"DefaultRootDeviceType": "ebs", | |
"Name": "rhenning_test", | |
"ConfigurationManager": { | |
"Version": "11.4", |
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
@GrabConfig(systemClassLoader = true) | |
@Grapes([ | |
@Grab(group = 'commons-codec', module = 'commons-codec', version = '1.10'), | |
@Grab(group = 'org.jsoup', module = 'jsoup', version = '1.8.1'), | |
@Grab(group = 'commons-lang', module = 'commons-lang', version = '2.6'), | |
@Grab(group = 'joda-time', module = 'joda-time', version = '2.3') | |
]) | |
import org.jsoup.* |
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 groovy | |
/** | |
* ==================================================================== | |
* Author Jim LoVerde | |
* Copyright 2009 NVISIA, LLC | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |
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 | |
# | |
# Copyright 2012 Marco Vermeulen | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
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
cat /home/ubuntu/.gvm/bin/gvm-init.sh | |
#!/bin/bash | |
# | |
# Copyright 2012 Marco Vermeulen | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
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 | |
set -eu | |
REDASH_BASE_PATH=/opt/redash | |
FILES_BASE_URL=https://raw.githubusercontent.com/EverythingMe/redash/docs_setup/setup/files/ | |
# Verify running as root: | |
if [ "$(id -u)" != "0" ]; then | |
if [ $# -ne 0 ]; then | |
echo "Failed running with sudo. Exiting." 1>&2 |
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
FROM ubuntu:14.04 | |
# From http://maximeheckel.com/blog/2014/07/05/build-jekyll-blog-docker/ | |
MAINTAINER Nauman Leghari | |
RUN apt-get update | |
RUN locale-gen en_US.UTF-8 | |
ENV LANG en_US.UTF-8 | |
ENV LC_ALL en_US.UTF-8 |
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 is used to create a bare git repo of your project | |
# in your dropbox folder. | |
# Author: Sai | |
usage() | |
{ | |
cat << EOF | |
usage: $0 options |
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
# check directory permissions 755 (.ssh) 644 (.ssh/authorized_keys) | |
#!/bin/bash | |
if [ "$(id -u)" != "0" ]; then | |
echo '** Script must be run as root **' | |
exit 1 | |
fi | |
if ! /bin/egrep -i "^admin\:" /etc/group &>/dev/null; then | |
echo "Creating the admin 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
import org.springframework.beans.factory.config.BeanDefinition | |
import org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider | |
import org.springframework.core.type.filter.AssignableTypeFilter | |
import com.imon.basepackage.StatusCode.* | |
final ClassPathScanningCandidateComponentProvider provider = new ClassPathScanningCandidateComponentProvider(false) | |
provider.addIncludeFilter(new AssignableTypeFilter(StatusCode.class)) | |
final Set<BeanDefinition> components = provider.findCandidateComponents("com.imon.basepackage") |