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 | |
# | |
# Script to purge old database backups | |
# Run via cron job | |
# | |
######################################### | |
######################################### | |
# | |
# Config section |
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 | |
# | |
# Script to purge old database backups | |
# Run via cron job | |
# | |
######################################### | |
######################################### | |
# | |
# Config section |
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 | |
# | |
# Simple script to install Oracle Java 7 with auto accepting the license | |
# No need to interact with it | |
# | |
###################################### | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run with admin privileges 'sudo'" | |
echo "exiting...." |
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 | |
# | |
#Apache Tomcat8 init Script | |
# | |
##################################### | |
TOMCAT_HOME=/10x13/apps/tomcat8 | |
LOG_HOME=/10x13/logs/tomcat8 | |
PID_FOLDER=/var/run/tomcat8 | |
PID_FILE=$PID_FOLDER/tomcat.pid |
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
# | |
# Cutom Environment Variables for Tomcat | |
# | |
############################################ | |
export JAVA_HOME=/usr/lib/jvm/java-7-oracle/jre | |
export PATH=${JAVA_HOME}/bin:${PATH} | |
############################################ | |
# | |
# JAVA_OPTS |
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 | |
# | |
# Simple script to install Oracle Java 7 with auto accepting the license | |
# No need to interact with it | |
# | |
###################################### | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run with admin privileges 'sudo'" | |
echo "exiting...." |
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
<?xml version='1.0' encoding='utf-8'?> | |
<tomcat-users> | |
<role rolename="manager-gui"/> | |
<role rolename="admin-gui"/> | |
<user name="admin" password="mypassword" | |
roles="admin-gui,manager-gui" /> | |
</tomcat-users> |
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
<?xml version='1.0' encoding='utf-8'?> | |
<Server port="8005" shutdown="SHUTDOWN"> | |
<Listener className="org.apache.catalina.startup.VersionLoggerListener" /> | |
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> | |
<!-- Prevent memory leaks due to use of particular java/javax APIs--> | |
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> | |
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> | |
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> | |
<GlobalNamingResources> |
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
/10x13/logs/tomcat8/catalina.out { | |
copytruncate | |
dateext | |
dateformat %Y-%m-%d. | |
extension out | |
daily | |
missingok | |
rotate 30 | |
create 640 tomcat tomcat | |
} |
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 | |
# | |
# My Blinky Code | |
# | |
############### | |
echo 49 > /sys/class/gpio/export | |
echo 214 > /sys/class/gpio/export | |
echo low > /sys/class/gpio/gpio214/direction | |
echo 256 > /sys/class/gpio/export |