PowerShell Reference



Command Alias Comment
'string' String literal, not expanded
"string=$a" String literal with variable expansion
"math=$(2+3)" Embedded calculation
"result=$($value)" Embedded variable
> Keep reading

Provisioning a New Linux Server


Just a small checklist on the things I like to do when installing and configuring a new Linux server. YMMV.

Install tools

apt-get install joe mc sl # sl is very important

Provision hard disk

joe /etc/fstab # add new...

> Keep reading

Salesforce Lightning Data Services


Read or Modify Data with Record Form Base Components

accountCreator.html: (No recordId means "edit" mode and "create" record on submit.)


import { LightningElement } from 'lwc'; import { ShowToastEvent } from 'lightning/platformShowToastEvent';


> Keep reading

ES2015 for Dummies


New class syntax:

class CoolStuff extends ParentStuff { constructor(name) { = name; super(name); }

static methodName() { return 'I am static!'; }

printName() { return 'I am dynamic!'; }

get area() { return this.height * this.weight; ...

> Keep reading

Forever Thine


When I at last one day shall stand
In bless'd Jerusalem, in Heaven's land
Will I before him prostrate fall,
Who is my love, my all in all?
Or will I shout with all my might
His praise and glory, oh so bright?
Let trumps exult...

> Keep reading

Shared Documents Checklist



Common storage of documents is important to many businesses, and yet it easily, after a couple of years, turns into a big collection of stale information and old documents that no one remembers any longer what it was for and...

> Keep reading

Logging Checklists


Things to remember when implementing logging:

Golden rule:

**Log files need to be reviewed on a continual basis. Make it easy for people to do so. Although it's tricky, consider the full flow of log dissemination from source to operations management -...

> Keep reading

MySQL Function for Making URL Names


This function takes a text like "I Can't Cope with Socialists!" and transforms it to "i-cant-cope-with-socialists", suitable for URL names and similar. Preserves only letters (A-Z) and digits, removes double hyphens and makes everything lowercase.

CREATE FUNCTION mangle_name (str VARCHAR(255)) RETURNS...

> Keep reading

Ergonomics for Developers


...or, how I got rid of pain and kept hacking for another decade

Sitting in front of a computer and working until the wee hours of the morning is nothing unheard of for developers, and we've all gotten used to...

> Keep reading

SQL Server BCP reference


bcp Database.dbo.TableName out savefile.bcp -S server -T -N -k

Exports data from a certain server and table to a savefile. -T means trusted connection (using Windows authentication), -N uses the database's native storage with Unicode values (specifically designed for server-to-server copy),...

> Keep reading