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
# copied from https://github.com/patomation/windows_aliases | |
@echo off | |
:: Clear | |
doskey clear=cls | |
:: doskey ls=dir | |
doskey ll=dir |
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
# direct download | |
curl -LO "https://dl.k8s.io/release/v1.23.0/bin/windows/amd64/kubectl.exe" | |
# linux command | |
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/windows/amd64/kubectl.exe" -o c:\tools\kubectl.exe | |
# windows cmd command | |
FOR /F "tokens=* USEBACKQ" %g IN (`curl -L -s https://dl.k8s.io/release/stable.txt`) do (SET "k8s-ver=%g") && curl -L "https://dl.k8s.io/release/%k8s-ver%/bin/windows/amd64/kubectl.exe" -o c:\tools\kubectl.exe |
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
export function handleJsonResponse(response: any) { | |
return response.json() | |
.then((json: any) => { | |
if (!response.ok) { // if changed, all API calls will break | |
const error = Object.assign({}, json, { | |
data: json, | |
status: response.status, | |
statusText: response.statusText, | |
}); |
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
import { createPrefixGroup, loggingGroupProps, lws, prefixes } from "../../utilities/logging" | |
interface extendedLoggingGroupProps extends loggingGroupProps { | |
pSet: string[] | |
pFS: string[] | |
pId: string[] | |
} | |
const prefix = ["Test File", "#157A6E"] // basis prefix per file | |
const p = createPrefixGroup(prefix) as extendedLoggingGroupProps // construct variable with all prefix Groups |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: alpine-volume-test-pod | |
labels: | |
app: alpine-volume-test | |
spec: | |
containers: | |
- name: alpine-volume-test-container | |
image: <image-registry>/alpine:3.13.5 |
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
https://github.com/faressoft/terminalizer - terminal recording | |
https://github.com/raineorshine/npm-check-updates - check packages for updates (ncu -g) | |
https://github.com/isaacs/rimraf - file and folder deletion |
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
// Based on the Unity Wiki FloatingOrigin script by Peter Stirling | |
// URL: http://wiki.unity3d.com/index.php/Floating_Origin | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
public class FloatingOrigin : MonoBehaviour | |
{ | |
[Tooltip("Point of reference from which to check the distance to origin.")] | |
public Transform ReferenceObject = null; |