Skip to content

Instantly share code, notes, and snippets.

@storytime
storytime / 0_reuse_code.js
Created August 3, 2017 08:35
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# Misc:
- Update system -
cat /etc/redhat-release --> see 6.5
yum update
reboot
cat /etc/redhat-release --> see 6.6
- Enable repo -
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
@storytime
storytime / tomcat-user.xml
Last active August 29, 2015 14:15
tomcat-user.xml
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users xmlns="http://tomcat.apache.org/xml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
version="1.0">
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<role rolename="admin-gui"/>
#!/bin/bash
#
# Tomcat 8 start/stop/status init.d script
# Initially forked from: https://gist.github.com/valotas/1000094
# @author: Miglen Evlogiev <bash@miglen.com>
#
# Release updates:
# Updated method for gathering pid of the current proccess
# Added usage of CATALINA_BASE
# Added coloring and additional status
@storytime
storytime / fk.js
Created April 21, 2014 11:48
RequireJS Example
define(function () {
return function (s) {
return s.toUpperCase();
};
});