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
Fedora Backup: | |
curl -v -X POST http://localhost:8080/fedora/rest/fcr:backup | |
(see catalina.out for backup location) | |
Fedora Restore: | |
curl -v -X POST -d "[path/to/backup/location]" http://localhost:8080/fedora/rest/fcr:restore |
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
#.ebextensions/01-memorymon.config | |
packages: | |
yum: | |
perl-Switch: [] | |
perl-DateTime: [] | |
perl-Sys-Syslog: [] | |
container_commands: | |
00download: | |
command: "wget http://ec2-downloads.s3.amazonaws.com/cloudwatch-samples/CloudWatchMonitoringScripts-v1.1.0.zip" |
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 x in `gem list --no-versions`; do gem uninstall $x -a -x -I; 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
SELECT pg_database.datname, | |
pg_size_pretty(pg_database_size(pg_database.datname)) AS size | |
FROM pg_database; |
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
pwd:[~]: aws s3api head-object --bucket elasticbeanstalk-bucket-name --key foo.zip | |
{ | |
"AcceptRanges": "bytes", | |
"ContentType": "application/x-zip", | |
"LastModified": "Tue, 08 Nov 2016 15:28:46 GMT", | |
"ContentLength": 174862, | |
"ETag": "\"02e11bbb865a535196dc3c2f7cad94c5\"", | |
"Metadata": {} | |
} | |
pwd:[~]: md5 foo.zip |
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/local/share/gems/gems/passenger-4.0.58/buildout/apache2/mod_passenger.so | |
case $operatingsystem { | |
CentOS: { | |
if ! defined (Class ['::passenger']){ | |
class {'::passenger': | |
passenger_version => $passenger_version, | |
package_ensure => $passenger_version, |
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
sed -i '1s;^;SET\ FOREIGN_KEY_CHECKS\ =\ 0\;\nSET\ UNIQUE_CHECKS\ = \ 0\;\nSET\ AUTOCOMMIT\ =\ 0\;\n;' scholarsdev-opt.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
<html> | |
<head> | |
<title>Fantastic... Image Record</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
<link rel="stylesheet" type="text/css" href="css/main.css" /> | |
</head> | |
<body> | |
<?php include("inc/topData.html") ?> |
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
conda: | |
channels: | |
- defaults | |
default-channels: | |
- https://conda.anaconda.org/conda-forge/osx-64 | |
- https://conda.anaconda.org/conda-forge/noarch | |
- https://repo.continuum.io/pkgs/main | |
- https://repo.continuum.io/pkgs/free | |
- https://repo.continuum.io/pkgs/r | |
- https://repo.continuum.io/pkgs/pro |
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 bash | |
set -eux | |
OS="$(gawk -F= '/^NAME/{print $2}' /etc/os-release | sed 's/"//g')" | |
echo "Detected ${OS} Distro" | |
if [[ "$OS" =~ ^(CentOS\ Linux|RedHat|Ubuntu)$ ]]; then |