gefvert.org

Set Up a Home Wifi

Friday, 14 October 2022

How to set up a home wifi that works well for your family:

  1. If your Internet Service Provider (Spectrum, Charter, Telia, whatever) has given you a modem:
  • Keep the modem.
  • Immediately turn off the wifi part of the...
> Keep reading

PKCS Standards

Sunday, 09 October 2022

Standard | RFC | Description -------------|------------------------------------------------|------------ PKCS#1 | 8017 | RSA key format (in PEM form "-----BEGIN RSA PRIVATE KEY-----"); not that common because PKCS #8 describes a generic format PKCS#2 | | Withdrawn PKCS#3 | | DH key agreement thingy PKCS#4 | | Withdrawn PKCS#5...

> Keep reading

Smallest Single .NET Core Executable

Friday, 27 May 2022

Use these settings when building a project to make the smallest, single .exe file possible.

dotnet publish project.csproj
-r win-x64 (or --use-current-runtime)
--no-self-contained
-p:PublishSingleFile=true
-c Release
-o publish

PublishSingleFile will instruct the publisher to combine everything...

> Keep reading

Visual Studio Key Bindings

Friday, 01 October 2021

Basic

  • Search everywhere - Ctrl-T
  • Show intention actions - Alt-Enter

Edit

  • Duplicate line - Ctrl-D
  • Go to Declaration or Usages - F12
  • Find usages - Shift-F12
  • Go to Implementation - Alt-End
  • Next/previous Method - Alt-Down/Up
  • Generate - Alt-Insert
  • Move...
> Keep reading

CSS Flexbox Reference

Tuesday, 16 March 2021

Style | Option | Explanation --------------------|----------------------------------|------------------   | | Parent styles | |   | | display: | flex | Set flex rendering on this item and its children   | | flex-flow: | direction wrap | Recommended shorthand flex-direction: | row, row-reverse | One single horizontal row  ...

> Keep reading

PowerShell Reference

Wednesday, 07 October 2020

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

SQL Server BCP reference

Tuesday, 11 August 2020

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

Ufw (firewall) Reference

Sunday, 26 January 2020

Enable or disable the firewall:

ufw enable ufw disable

Allow all incoming HTTP traffic and reject telnet globally (normally 'deny' is used but 'reject' will explicitly reject a connection):

ufw allow in http ufw reject telnet comment 'telnet is not encrypted'

Allow...

> Keep reading

Docker Reference

Wednesday, 13 November 2019

Command/option | Description ----------------------------------- | ----------------   | Containers | Containers are light-weight virtual machines docker create image [cmd] | Create container from image docker rename container newname | Rename container docker rm container | Remove a container    -f | Force    -v | Also delete volumes   | `docker...

> Keep reading

sed and awk Reference

Thursday, 10 October 2019

Argument | Description -- | -   | awk '{print $1}' | Print 1st word from lines separated by space awk -F: '{print $1}' | Print 1st word from lines separated by colons   | sed -n | Don't display input lines in output sed '5d'...

> Keep reading