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
#!/bin/bash | |
# Remove existing "nameserver" lines from /etc/resolv.conf | |
sed -i '/nameserver/d' /etc/resolv.conf | |
# Run the PowerShell command to generate "nameserver" lines and append to /etc/resolv.conf | |
# we use full path here to support boot command with root user | |
/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -Command '(Get-DnsClientServerAddress -AddressFamily IPv4).ServerAddresses | ForEach-Object { "nameserver $_" }' | tr -d '\r'| tee -a /etc/resolv.conf > /dev/null |
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 {MarkdownTransformer} from "@atlaskit/editor-markdown-transformer"; | |
import {defaultSchema} from "@atlaskit/adf-schema/schema-default"; | |
import {ConfluenceTransformer} from "@atlaskit/editor-confluence-transformer"; | |
import {JSDOM} from "jsdom"; | |
test("Create a new page", async () => { | |
const md = new MarkdownTransformer(defaultSchema); | |
const ct = new ConfluenceTransformer(defaultSchema); |
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 cds from "@sap/cds"; | |
import {struct} from "@sap/cds/apis/csn"; | |
import fs from "fs/promises"; | |
import {toSnakeCase} from "js-convert-case"; | |
import {Command} from "commander"; | |
const program = new Command(); | |
interface Options { | |
schema: string; |
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
# Version key/value should be on his own line | |
PACKAGE_VERSION=$(cat package.json \ | |
| grep version \ | |
| head -1 \ | |
| awk -F: '{ print $2 }' \ | |
| sed 's/[",]//g' | |
| awk '{$1=$1};1' | |
) | |
echo $PACKAGE_VERSION |