##File size
Display the biggest top-20 directories
du -ah . | sort -rh | head -20
Display largest files
find [directory i.e. ~/] -type f -printf "%s - %p\n" | sort -n | tail -n 100
component output="false" { | |
this.name="test"; | |
this.sameFORMFieldsAsArray = true; | |
public function onApplicationStart() output="false"{ | |
return ; | |
} | |
public boolean function onRequestStart(required string thePage) output="true"{ | |
return true; | |
} |
var settings = require('./settings') | |
var express = require('express') | |
var session = require('express-session') | |
var app = express() | |
var MongoStore = require('connect-mongo')(session); | |
var links = '<p><a href="/link1">Link1</a> <a href="/link2">Link2</a> <a href="/link3">Link3</a></p>'; | |
/* | |
Failure to set "saveUninitialized" and "resave" will generate two warnings: |
// Call this via CLI with $ node app.js /PathTo/Your.csv | |
var parse = require('csv-parse'); | |
var fs = require('fs'); | |
process.argv.forEach(function (val, index, array) { | |
/* | |
Position 0 == node, poistion 1 == app.js (full path) thats why we check we | |
need to check for args from index 2 onwards | |
*/ | |
if( index > 1){ |
java.lang.NoClassDefFoundError "railo/loader/util/Util" | |
railo/loader/util/Util at railo.extension.io.log.sl4j.LoggerAdapterConsole.getStacktrace(LoggerAdapterConsole.java:119):119 | |
at railo.extension.io.log.sl4j.LoggerAdapterConsole.log(LoggerAdapterConsole.java:64):64 | |
at railo.extension.io.log.sl4j.LoggerAdapterConsole.error(LoggerAdapterConsole.java:54):54 | |
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:222):222 | |
at lucee.runtime.orm.hibernate.HibernateSessionFactory.schemaExport(Unknown Source):-1 | |
at lucee.runtime.orm.hibernate.HibernateSessionFactory.createConfiguration(Unknown Source):-1 | |
at lucee.runtime.orm.hibernate.SessionFactoryData.setConfiguration(Unknown Source):-1 | |
at lucee.runtime.orm.hibernate.HibernateORMEngine.getSessionFactoryData(Unknown Source):-1 |
<html> | |
<head> | |
<meta http-equiv="pragma" content="no-cache"> | |
<meta http-equiv="expires" content="mon, 01 jan 2010 00:00:01 gmt"> | |
<meta http-equiv="cache-control" content="no-cache"> | |
</head> | |
<body> | |
<!-- stuff here --> | |
</body> | |
</html> |
##File size
Display the biggest top-20 directories
du -ah . | sort -rh | head -20
Display largest files
find [directory i.e. ~/] -type f -printf "%s - %p\n" | sort -n | tail -n 100
<cfsetting showdebugoutput="false" requesttimeout="10000" /> | |
<h1>Update Soundings UUID values to INT</h1> | |
<cfset dsn = "YOUR_DSN_HERE" /> | |
<cfquery datasource="#dsn#">DROP TABLE IF EXISTS `uuids`</cfquery> | |
<!--- Create the UUID table ---> | |
<cfquery datasource="#dsn#"> |
<html> | |
<head> | |
<style> | |
*{ | |
font-family: arial; | |
font-size: 11px; | |
} | |
table{ | |
border-collapse: collapse; | |
border: 1px solid silver; |
component persistent="true" table="tableWithTwoIds" alias="tableWithTwoIds" | |
{ | |
property name="id" ormtype="int" generated="never" fieldtype="id" index="true"; | |
property name="typeofaddress" ormtype="int" fieldtype="id" index="true" ; | |
} |
<cfset o2 = GetHttpRequestData() > | |
<table> | |
<cfloop collection="#o2.headers#" item="key" > | |
<tr> | |
<cfoutput> | |
<th>#key#</th> | |
<td> | |
<cfif trim( key ) EQ "x-up-calling-line-id" > | |
<span class="label important" >#o2.headers[key]#</span> | |
<cfelse> |