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
Creating nextcloudtmp_redis_nc_1 ... done | |
Creating nextcloudtmp_nextcloud-db_1 ... done | |
Creating nextcloudtmp_nextcloud-db_1 ... | |
Creating nextcloudtmp_nextcloud_1 ... done | |
Attaching to nextcloudtmp_nextcloud-db_1, nextcloudtmp_redis_nc_1, nextcloudtmp_nextcloud_1 | |
nextcloud-db_1 | Initializing database | |
nextcloud-db_1 | 2018-06-14 21:51:15 0 [Warning] InnoDB: Failed to set O_DIRECT on file./ibdata1;CREATE: Invalid argument, ccontinuing anyway. O_DIRECT is known to result in 'Invalid argument' on Linux on tmpfs, see MySQL Bug#26662. | |
nextcloud-db_1 | 2018-06-14 21:51:15 0 [ERROR] InnoDB: preallocating 50331648 bytes for file ./ib_logfile1 failed with error 28 | |
nextcloud-db_1 | 2018-06-14 21:51:15 0 [ERROR] InnoDB: Cannot set log file ./ib_logfile1 size to 50331648 bytes |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1526438975317", | |
"Action": "*", | |
"Effect": "Allow", | |
"Resource": "*" | |
} | |
] |
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
# Syntax: "repeat [times to repeat] [command]" | |
# example: "repeat | |
function repeat() | |
{ | |
local i max | |
max=$1; shift; | |
for ((i=1; i <= max ; i++)); do # --> C-like syntax | |
eval "$@"; | |
done | |
} |
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
<?php | |
/** | |
* Core functions. | |
* | |
* @package corporatesource | |
*/ | |
if ( ! function_exists( 'corporatesource_get_option' ) ) : | |
/** |
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 | |
sudo docker stop "portainer"; | |
sudo docker rm "portainer"; | |
sudo docker run -d \ | |
--publish 9000:9000 \ | |
--label "hiddden" \ | |
--volume /var/run/docker.sock:/var/run/docker.sock \ | |
--volume /opt/portainer/data:/data \ |
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
# Description: Boxstarter Script | |
# Author: Jess Frazelle <[email protected]> | |
# Last Updated: 2017-09-11 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: |
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 | |
# Run this in cron to keep services running if they crash or are killed | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
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
# Example SSH configuration file for bastion host SSH passthrough | |
# These lines would go in a file such as ~/.ssh/config | |
# No keys are exposed to `middleman` or `home`, they only proxy the encrypted traffic. | |
######################### | |
# Basic example | |
######################### | |
Host middleman |
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
#cloud-config | |
##################################### | |
# Nginx App Server Bootstrap script | |
# | |
# Includes network mount storage config | |
# Designed to be used in a cluster | |
# | |
# Created by Ben Yanke | |
# |
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
<script> | |
// ScrollTrack.js allows a function to be run once and only once if it's seen. | |
// Ben Yanke <[email protected]> | |
// SelectorToWatch - a standard jquery element selector | |
// functionToRun - a function to be run when the selector is on screen | |
function scrollWatch(selectorToWatch, functionToRun) { | |