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 static Guid Combine(params Guid[] guids) { | |
const int BYTECOUNT = 16; | |
byte[] destByte = new byte[BYTECOUNT]; | |
var listOfByteArrays = guids.Select(guid => guid.ToByteArray()).ToArray(); | |
for (int i = 0; i < BYTECOUNT; i++) { | |
destByte[i] = listOfByteArrays.Aggregate<byte[], byte>(0, (current, array) => (byte) (current ^ array[i])); | |
} | |
return new Guid(destByte); | |
} |
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! CoffeeClean() | |
let save_cursor = getpos(".") | |
"general puncuation spacing cleanup | |
" | |
"Missing spaces | |
silent! %s/\v','/', '/g | |
silent! %s/\v","/", "/g | |
silent! %s/\v:(\w)(['"].*)@<!/: \1/g | |
silent! %s/\v:\@(['"].*)@<!/: @/g |
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
#cloud-config | |
hostname: core-brix | |
write_files: | |
- path: /etc/systemd/coredump.conf | |
content: | | |
[Coredump] | |
Compress=yes | |
MaxUse=3G |