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
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"description": "MeshCentral configuration file schema", | |
"id": "https://raw.githubusercontent.com/Ylianst/MeshCentral/master/meshcentral-config-schema.json", | |
"properties": { | |
"domaindefaults": { | |
"$ref": "#/properties/domains/items" | |
}, | |
"domains": { | |
"items": { |
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
// run like this: | |
// node ./parse-vscode-profile.js "$HOME"/Downloads/profile.code-profile | |
const fs = require("fs") | |
const file = fs.openSync(process.argv[2], "r") | |
for (const line of fs.readFileSync(file, "utf8").split("\n")) { | |
const extensions = JSON.parse(JSON.parse(line).extensions) | |
const enabledExtensions = extensions.filter((extension) => !extension.disabled) |
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 Expand-TarBall | |
{ | |
<# | |
.SYNOPSIS | |
Extract the specified tarball to a directory. | |
.DESCRIPTION | |
Extract the specified tarball to a directory. | |
Using the following C# from ForeverZer0: |
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
Dump extensions: | |
code --list-extensions > extensions.txt | |
Install extensions with Bash (Linux, OS X and WSL): | |
cat extensions.txt | xargs -L 1 code --install-extension | |
Install extensions on Windows with PowerShell: | |
cat extensions.txt |% { code --install-extension $_} |
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 $ from 'jquery' | |
window.jQuery = window.$ = $ | |
import JSZip from 'jszip' | |
window.JSZip = JSZip | |
import 'pdfmake' | |
import dataTable from 'datatables.net-bs4' | |
dataTable(window, $) | |
import buttons from 'datatables.net-buttons-bs4' | |
buttons(window, $) | |
import columnVisibility from 'datatables.net-buttons/js/buttons.colVis.js' |