/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/alexander.chernov/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
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
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.autotrader.co.uk/car-search* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=autotrader.co.uk | |
// @grant none | |
// ==/UserScript== |
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
[include mainsail.cfg] | |
# This file contains pin mappings for the stock 2020 Creality Ender 5 | |
# Pro with the 32-bit Creality 4.2.2 board. To use this config, during | |
# "make menuconfig" select the STM32F103 with a "28KiB bootloader" and | |
# with "Use USB for communication" disabled. | |
# If you prefer a direct serial connection, in "make menuconfig" | |
# select "Enable extra low-level configuration options" and select the | |
# USART3 serial port, which is broken out on the 10 pin IDC cable used | |
# for the LCD module as follows: |
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
data "aws_iam_policy_document" "secret-store-csi" { | |
statement { | |
effect = "Allow" | |
actions = ["secretsmanager:GetSecretValue", "secretsmanager:DescribeSecret"] | |
resources = ["*"] | |
} | |
} | |
resource "aws_iam_policy" "secret-store-csi" { | |
name = "secret-store-csi-${var.cluster_name}" |
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
securityContext: | |
allowPrivilegeEscalation: false | |
runAsUser: 0 |
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
var stopCh <- chan struct{} | |
watcher := cache.NewListWatchFromClient(k8Client.RESTClient(),"nodes", metaV1.NamespaceAll,fields.Everything()) | |
_, controller := cache.NewInformer( | |
watcher, | |
&coreV1.Node{}, | |
time.Second * 10, | |
cache.ResourceEventHandlerFuncs{ | |
AddFunc: func(obj interface{}) { | |
node, ok := obj.(*coreV1.Node) | |
if !ok { |
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
# kubectl apply -f https://gist.githubusercontent.com/alekc/bd1c60353171add01301096e67621cd8/raw/debug-daemon-set.yaml | |
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: dnsutil | |
labels: | |
k8s-app: fluentd-logging | |
spec: | |
selector: | |
matchLabels: |
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
// Start a process: | |
cmd := exec.Command("sleep", "5") | |
if err := cmd.Start(); err != nil { | |
log.Fatal(err) | |
} | |
// Wait for the process to finish or kill it after a timeout (whichever happens first): | |
done := make(chan error, 1) | |
go func() { | |
done <- cmd.Wait() |
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
grafana: | |
plugins: | |
- digiapulssi-breadcrumb-panel | |
- grafana-polystat-panel | |
# - pmm-check-panel-home | |
# - pmm-update-panel | |
defaultDashboardsEnabled: true | |
dashboardProviders: | |
dashboardproviders.yaml: | |
apiVersion: 1 |
NewerOlder