Skip to content

Instantly share code, notes, and snippets.

View fighterhit's full-sized avatar
💭
I may be slow to respond.

fighterhit

💭
I may be slow to respond.
View GitHub Profile
@fighterhit
fighterhit / curl_post_json.md
Created August 5, 2022 03:07 — forked from ungoldman/curl_post_json.md
post a JSON file with curl

How do you POST a JSON file with curl??

You can post a json file with curl like so:

curl -X POST -H "Content-Type: application/json" -d @FILENAME DESTINATION

so for example:

@fighterhit
fighterhit / monitor_ib_traffic.py
Created July 11, 2022 05:54 — forked from Dounm/monitor_ib_traffic.py
Monitor Infiniband traffic and caculate bandwidth
# Inspired by https://github.com/vpenso/ganglia-sensors/blob/master/lib/python_modules/infiniband.py#/
import logging
import re
import sys
import json
import time
import subprocess
@fighterhit
fighterhit / k8s_kubectl.md
Created June 18, 2022 04:56 — forked from asaphe/k8s_kubectl.md
Kubernetes Commands - Kubectl

Kubectl

Imperative == refers to cli commands Declarative == using YAML files

--export
--save-config
--record