Skip to content

Instantly share code, notes, and snippets.

View XtraNull's full-sized avatar

MyCODEHost LLC XtraNull

View GitHub Profile
@XtraNull
XtraNull / vhost-nginx.sh
Last active October 15, 2018 18:32
vhost-nginx
#!/bin/bash
### Set Language
exec 5> >(logger -t "$0")
BASH_XTRACEFD="5"
PS4='$LINENO: '
set -x
TEXTDOMAIN=virtualhost
## kudos to https://github.com/RoverWire/virtualhost/blob/master/virtualhost-nginx.sh for the neat headstart
### Set default parameters
### Version 1.5
@XtraNull
XtraNull / cleanup.py
Created August 29, 2018 15:42 — forked from luhn/cleanup.py
An AWS Lambda function to delete old AMIs.
"""
Code adapted from and inspired by http://blog.ranman.org/cleaning-up-aws-with-boto3/.
"""
import os
import re
from datetime import datetime, timedelta
import boto3
@XtraNull
XtraNull / netchecker_cron
Last active December 9, 2017 22:06
Network Ping Checker with Autorestart
*/2 * * * * sh /root/network_checker.sh
@XtraNull
XtraNull / tomcat85.service
Created December 9, 2017 16:22
Tomcat 8.5.9 Systemd Unit File
[Unit]
Description=Apache Tomcat Web Application Container
After=syslog.target network.target
[Service]
Type=forking
Environment=JAVA_HOME=/usr/lib/jvm/jre
Environment=CATALINA_PID=/opt/tomcat85/temp/tomcat.pid
Environment=CATALINA_HOME=/opt/tomcat85
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed under The MIT License
# For full copyright and license information, please see the LICENSE.txt
scrum@scrum.mycodehost.com [~/www/app/Config]# mysql -u scrum_u1 -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 8522
Server version: 10.0.24-MariaDB MariaDB Server
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
<?php
/*********************************************************************************
* Orangescrum Community Edition is a web based Project Management software developed by
* Orangescrum. Copyright (C) 2013-2014
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY