Skip to content

Instantly share code, notes, and snippets.

View jlamoree's full-sized avatar
💭
Really impressed with Microsoft® GitHub™

Joseph Lamoree jlamoree

💭
Really impressed with Microsoft® GitHub™
View GitHub Profile
@jlamoree
jlamoree / gist:5534636
Created May 7, 2013 17:52
Check to see if a process is running in a Linux shell.
PID=`cat /var/run/something.pid`
kill -s 0 $PID 2>&1 > /dev/null
if [ $? == 0 ]; then
echo "Yes, it's running"
else
echo "Nope, it's dead"
fi
@jlamoree
jlamoree / server.xml
Created May 9, 2013 07:15
A very simple Apache Tomcat server configuration template
<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="off"/>
<Listener className="org.apache.catalina.core.JasperListener"/>
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/>
<GlobalNamingResources>
@jlamoree
jlamoree / web.xml
Created May 9, 2013 07:30
A simplified, clean, properly encoded web.xml template for Railo 4
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
metadata-complete="true"
version="2.5">
<servlet id="Railo">
<description>Railo CFML Engine</description>
@jlamoree
jlamoree / tomcat-users.xml
Created May 9, 2013 15:39
An Apache Tomcat user database template
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager-gui"/>
<user username="admin" password="admin" roles="manager-gui"/>
</tomcat-users>
upstream webapp {
server 192.168.104.1:8080 fail_timeout=5;
server 192.168.104.1:8081 fail_timeout=5 backup;
keepalive 10;
}
proxy_temp_path /tmp/nginx/temp;
proxy_cache_path /tmp/nginx/cache keys_zone=CACHE:10m levels=1:2 inactive=1h max_size=100m;
log_format log_access '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
This is a collection of open-ended questions, mostly to remind myself to ask a potential candidate. In most cases, there's no correct answer. I find it valuable to hear how someone responds and gauge the amount of passion they have for our profession.
# CFML
* Which CFML engines/versions have you used? Do you have a favorite? Why?
* Are you into script-based components or do you stick with tag-based source? When would you go with one over the other?
* When you install a new CFML application into a fresh server, what's your process? How do you like to run your apps?
* Which web server do you like to run in front of your CFML environment?
* Do you have a favorite ORM solution?
# Development
@jlamoree
jlamoree / ckeditor-test.js
Last active January 12, 2021 21:04
Nightwatch.js test for CKEditor components
module.exports = {
test: function (browser) {
var ckeditor = "editor1",
testtime = new Date();
browser
.url("http://ckeditor.com/demo#standard")
.resizeWindow(1024, 820)
.waitForElementVisible("#cke_" + ckeditor, 5000)
.execute(
@jlamoree
jlamoree / _.md
Created May 15, 2014 23:24
Time Diffs
@jlamoree
jlamoree / _.md
Created May 19, 2014 23:19
New and Updated Email Query Execution
@jlamoree
jlamoree / index.md
Created June 20, 2014 15:58
Mach-II Questions for an Interviewee

Which versions of Mach-II have you used?

How do you like to install Mach-II? In the webroot or elsewhere? How do you like to configure mapping?

How do you organize your Mach-II XML files? Do you use modules?

At what point do you consider creating a subroutine to prevent duplication of event handler

How do you deal with the White Screen of Death? What is typically the cause?