π₯·
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
--- Since my DGS 1210-24 switch had a weird value of dlink-DGS1210SeriesProd=24 instead of the default 10 I just adapted it and it seems to work. | |
--- Device Type: DGS-1210-24 | |
--- Boot Version: 0.00.005 | |
--- Firmware Version: 4.00.026 | |
--- Hardware Version: D1 | |
--- Original: https://github.com/netdisco/netdisco-mibs/blob/master/d-link/dgs-1210-24-A1.mib | |
--- Seee Also: https://github.com/librenms/librenms/tree/master/mibs | |
--------------------------------------------------------------------------------------------- | |
DGS-1210-24-DX DEFINITIONS ::= BEGIN |
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: grafana.integreatly.org/v1beta1 | |
kind: GrafanaDashboard | |
metadata: | |
name: dashboard | |
namespace: hcloud-pricing-exporter | |
spec: | |
allowCrossNamespaceImport: true | |
folder: Hetzner | |
datasources: | |
- inputName: "DS_PROMETHEUS" |
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
alias kubemerge='kubectl konfig merge $(gfind ~/.kube -mindepth 1 -path ~/.kube/cache -prune -o -not -name config -not -name kubectx -printf "%p ") > ~/.kube/config && chmod 600 ~/.kube/config' |
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 | |
set -o errexit | |
# 1. Create registry container unless it already exists | |
reg_name='kind-registry' | |
reg_port='5001' | |
if [ "$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)" != 'true' ]; then | |
docker run \ | |
-d --restart=always -p "127.0.0.1:${reg_port}:5000" --name "${reg_name}" \ | |
registry:2 |
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 constant = 'constant' |
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
////////////////// | |
// Key Bindings // | |
////////////////// | |
//βββββββββββ³ββββββββ³ββββββββ³ββββββββ | |
//β Num β / β * β - β | |
//βββββββββββββββββββββββββββββββββββ¨ | |
//β 7 β 8 β 9 β + β | |
//βββββββββββββββββββββββββββ¨ β | |
//β Galil β 5 β 6 β + β | |
//βββββββββββββββββββββββββββββββββββ¨ |
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 {useExternal} from "./useExternal"; | |
const useInternal = jest.spyOn(require('./useInternal'), 'useInternal') | |
useInternal.mockReturnValue(2) | |
test('useExternal', ()=>{ | |
const actual = useExternal() | |
const expected = 4 | |
expect(actual).toBe(expected) | |
}) |
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://stackoverflow.com/questions/58069059/dynamic-spacing-classes-with-sass | |
@function fibonacci($n){ | |
@if $n == 0{ | |
@return 0; | |
} @else if $n == 1 or $n == 2{ | |
@return 1; | |
} | |
@return fibonacci($n - 1) + fibonacci($n - 2); | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.