This file contains hidden or 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
$origNvm = Get-Command nvm -CommandType Application -ErrorAction SilentlyContinue | |
if ($origNvm) { Set-Alias nvm_external $origNvm.Path } | |
function nvmFunc { | |
param( | |
[string]$Argument, | |
[string]$Version = "" | |
) |
This file contains hidden or 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
diff --git a/node_modules/nx/src/tasks-runner/cache.js b/node_modules/nx/src/tasks-runner/cache.js | |
index 36a7089..a1b7809 100644 | |
--- a/node_modules/nx/src/tasks-runner/cache.js | |
+++ b/node_modules/nx/src/tasks-runner/cache.js | |
@@ -110,7 +110,8 @@ class DbCache { | |
} | |
} | |
else { | |
- return ((await this.getPowerpackS3Cache()) ?? | |
+ return ((await this.getPowerpackCache(nxJson.communityCache)) ?? |
This file contains hidden or 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
ARG STRIMZI_VERSION="0.28.0" | |
ARG KAFKA_VERSION="3.1.0" | |
ARG DEBEZIUM_VERSION="1.9.5.Final" | |
FROM quay.io/debezium/connect:${DEBEZIUM_VERSION} as connectors | |
FROM quay.io/strimzi/kafka:${STRIMZI_VERSION}-kafka-${KAFKA_VERSION} | |
USER root:root | |
ARG DEBEZIUM_CONNECTOR="sqlserver" | |
COPY --from=connectors /kafka/connect/debezium-connector-${DEBEZIUM_CONNECTOR}/ /opt/kafka/plugins/debezium-connector-${DEBEZIUM_CONNECTOR}/ |
This file contains hidden or 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/sh | |
# register a subdomain at https://www.duckdns.org/ to get your token | |
# put 'hostname|token' in the 'Host Name' field under DDNS | |
# e.g. myhost|abcdefgh-1234-5678-9876-f71b0ed7a7fe | |
DDNS_HOSTNAME_FIELD=$(nvram get ddns_hostname_x) | |
SUBDOMAIN=$(echo "$DDNS_HOSTNAME_FIELD" | awk -F'|' '{print $1}') | |
TOKEN=$(echo "$DDNS_HOSTNAME_FIELD" | awk -F'|' '{print $2}') | |
IPV4=$(nvram get wan0_ipaddr) |
This file contains hidden or 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
name: Build Artifacts | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: |
This file contains hidden or 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
from github import Github | |
import tomark | |
import datetime | |
from dateutil import tz | |
class pipeline_mngt_adv(): | |
''' Class for pipeline management ''' | |
def __init__(self, token, org): | |
''' Init function |
This file contains hidden or 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
# Start SSH Service. | |
wsl sudo service ssh start | |
# WSL2 network port forwarding script v1 | |
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell, | |
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter. | |
# written by Daehyuk Ahn, Aug-1-2020 | |
# Display all portproxy information | |
If ($Args[0] -eq "list") { |
Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.
- Edit the
/etc/ssh/sshd_config
file by running the commandsudo vi /etc/ssh/sshd_config
and do the following- Change
Port
to 2222 (or any other port above 1000) - Change
PasswordAuthentication
to yes. This can be changed back to no if ssh keys are setup.
- Change
- Restart the ssh server:
sudo service ssh --full-restart
- With this setup, the ssh server must be turned on every time you run Bash on Ubuntu on Windows, as by default it is off. Use this command to turn it on:
NewerOlder