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
#!/usr/bin/env bash | |
scriptName=$(basename "$0") | |
USAGE="Wraps \"helm package\" in order to be able to --set values at package time. | |
Usage: | |
$scriptName \\ | |
--set key1=value1 --set key2=value2 \\ | |
[--app-version 1.2.3] <chart-path>" |
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
### Keybase proof | |
I hereby claim: | |
* I am krakatoa on github. | |
* I am fedario (https://keybase.io/fedario) on keybase. | |
* I have a public key whose fingerprint is 339E 7457 1BD4 F7AF B37A E7D6 3C5B 9C0C 4BD3 70E5 | |
To claim this, I am signing this object: |
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
sudo dmidecode | less |
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
cat 1ee76676-ccf3-4e0f-8f1f-24cec1f94607.json | jq 'with_entries(select(.[] | contains("sip")))' |
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/bash | |
export STORJ_KEYPASS=$STORJ_KEYPASS | |
bucket_name=$1 | |
base_path=$2 | |
function show_help { | |
echo "Usage: STORJ_KEYPASS=<YOUR-KEYPASS> $0 <bucket-name> <base-path>" | |
} |
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
(let [{:keys [test count]} {:count 3 :test 1}] (println test)) | |
clj-datascript.core=> (let [[_ v] [:key :value]] (println v)) | |
:value | |
nil | |
https://clojuredocs.org/clojure.core/let#example-542692d3c026201cdc326ff3 |
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
1468 while true; do fs_cli -x "db_cache status" | grep "^[0-9]* total"; sleep 1; done] | |
1494 while true; do echo "`date` : `fs_cli -x 'status' | grep '^[0-9]* session(s) per Sec'`"; sleep 2; rm -rf *; done |
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
cat exporter.log | grep export_start | sed 's/.*_id\":\"\(.*\)\".*/\1/g' | tr '\n' ',' |
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
iex(15)> trans = fn(backup) -> | |
...(15)> IO.puts "backup: #{inspect backup}" | |
...(15)> backup | |
...(15)> end | |
#Function<6.50752066/1 in :erl_eval.expr/5> | |
iex(16)> :mnesia.transform_table(:endpoints, trans, [:idx, :host, :port, :transport]) | |
backup: {:endpoint, 1, 'localhost', 5555, 'tcp'} | |
{:atomic, :ok} | |
iex(17)> :mnesia.transform_table(:endpoints, trans, [:idx, :host, :port, :transport]) | |
backup: {:endpoint, 1, 'localhost', 5555, 'tcp'} |
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
iex(2)> RiemannProxy.Endpoint.create(1, 'localhost',5555,'tcp') | |
** (FunctionClauseError) no function clause matching in RiemannProxy.Endpoint.create/4 | |
(riemann_proxy) lib/riemann_proxy/endpoint.ex:5: RiemannProxy.Endpoint.create(1, 'localhost', 5555, 'tcp') | |
iex(2)> r RiemannProxy.Endpoint | |
lib/riemann_proxy/endpoint.ex:1: warning: redefining module RiemannProxy.Endpoint | |
{:reloaded, RiemannProxy.Endpoint, [RiemannProxy.Endpoint]} | |
iex(3)> RiemannProxy.Endpoint.create(1, 'localhost',5555,'tcp') | |
:ok | |
iex(4)> RiemannProxy.Endpoint.read(1) | |
[{:endpoint, 1, 'localhost', 5555, 'tcp'}] |
NewerOlder