sudo useradd -m peter
sudo passwd peter
groupadd myAppUsers
sudo usermod -a -G peter myAppUsers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias la="ls -a" | |
mkcd() { | |
mkdir $1 && cd $1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
chain, | |
filter, | |
count, | |
groupBy, | |
map | |
} = require("./chaining") | |
const transforms = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract record StronglyTypedId<TValue>(TValue Value) | |
where TValue : notnull | |
{ | |
public override sealed string ToString() => $"{Value}"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function round(value, precision) { | |
return Number(Math.round(value + "e" + precision) + "e-" + precision) | |
} | |
function strictCompare(left, right) { | |
console.log(`strictCompare(${left}, ${right})`); | |
return left === right; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Deferred() { | |
this.resolve = null; | |
this.reject = null; | |
this.promise = new Promise((resolve, reject) => { | |
this.resolve = resolve; | |
this.reject = reject; | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { wrapInDisablerProxyFactory } from "./wrapInDebugModeProxy" | |
describe("Enable/disable functions", () => { | |
const obj = { | |
flipTheFlag(target) { | |
target.flag = true | |
}, | |
inner: { | |
anotherFlipTheFlag(target) { |
This post takes you through creating a partition, formatting it and finally mount it in the filesystem.
These procedures where tested on Linux Mint 19
$ sudo fdisk -l
The result will vary depending on the number of disk you have. On my computer I got these three entries:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const chain = (obj, op = obj => obj, ...restOps) => restOps.length > 0 | |
? chain(op(obj), ...restOps) | |
: op(obj); |
NewerOlder