##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
var crypto = require('crypto'); | |
var pwd = "Password1!"; | |
var hash = function(str){ | |
return crypto.createHash('sha256').update(pwd).digest('hex').toUpperCase() | |
} | |
console.log( hash(pwd) ); |
##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
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 |
// 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){ |
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: |
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; | |
} |
<!-- country codes (ISO 3166) and Dial codes. --> | |
<select name="countryCode" id=""> | |
<option data-countryCode="GB" value="44" Selected>UK (+44)</option> | |
<option data-countryCode="US" value="1">USA (+1)</option> | |
<optgroup label="Other countries"> | |
<option data-countryCode="DZ" value="213">Algeria (+213)</option> | |
<option data-countryCode="AD" value="376">Andorra (+376)</option> | |
<option data-countryCode="AO" value="244">Angola (+244)</option> | |
<option data-countryCode="AI" value="1264">Anguilla (+1264)</option> | |
<option data-countryCode="AG" value="1268">Antigua & Barbuda (+1268)</option> |
-- This was tested on Ghost v0.3.0 | |
-- I have 2 databases set up which I reference in my SQL - you need to change accordingly | |
-- 1: ajdev (this holds my BlogCFC data) | |
-- 2: ghost-dev (this holds my Ghost blog data) | |
-- | |
-- 1) Check for duplicate alias's | |
-- I don't know how I got these but I did, so clean your entries up first but looking | |
-- for duplicates and changing the `alias` value to something unique. | |
SELECT lower(`alias`) , count(lower(`alias`) ) |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="format-detection" content="telephone=no" /> | |
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" /> | |
<link rel="stylesheet" type="text/css" href="css/index.css" /> | |
<title>Hello World</title> | |
<script src="http://debug.phonegap.com/target/target-script-min.js#8A4EA003-A0B5-4683-BDD8-BF4CB521DAEA"></script> | |
</head> | |
<body> |
<html> | |
<head> | |
<link href="//netdna.bootstrapcdn.com/bootswatch/3.0.0/flatly/bootstrap.min.css" rel="stylesheet"> | |
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css" rel="stylesheet"> | |
</head> | |
<body> | |
<span class="alert alert-danger">Glyphicon example</span> | |
<hr> | |
<div class="the-icons"> | |
<span class="glyphicon glyphicon-glass"></span> |