gefvert.org

PowerShell Reference

2020-10-07

Commands

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

Provisioning a New Linux Server

2020-10-01

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

2020-09-24

Read or Modify Data with Record Form Base Components

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

accountCreator.js:

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

//...

> Keep reading

ES2015 for Dummies

2020-09-24

New class syntax:

class CoolStuff extends ParentStuff { constructor(name) { this.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

2020-09-22

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

2020-09-11

Problem

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

2020-09-03

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

2020-09-03

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

2020-08-11

...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

2020-08-11

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