Skip to content

Instantly share code, notes, and snippets.

Avatar
🎅
Always in Christmas mood

Alessandro Pezzè Naramsim

🎅
Always in Christmas mood
View GitHub Profile
@Naramsim
Naramsim / handle-stream.sh
Created Nov 23, 2019
curl keep alive handle stream
View handle-stream.sh
while read -r line; do
RESULT=$(echo "$line" | jq '.check_result.performance_data[0]')
RESULT=`echo $RESULT | sed -n 's/"rta=\(.*\)ms.*/\1/p'`
curl -i -s -X POST 'http://192.168.10.43:8086/write?db=mydb' --data-binary "cpu_load_short,host=server01,region=us-west value=$RESULT $(date +%s)000000000"
echo $RESULT
done < <(curl -s -k -u root:abc123ABC -H 'Accept: application/json' -X POST -N 'https://192.168.10.43:5665/v1/events?queue=myqueue&types=CheckResult')
@Naramsim
Naramsim / custom.css
Created Nov 21, 2019
laboratorioorafoeccher
View custom.css
html, body {
height: 100% !important;
}
* {
box-sizing: inherit;
}
html {
box-sizing: border-box;
View extensions.sh
#!/bin/bash
code --install-extension ban.spellright
code --install-extension bierner.emojisense
code --install-extension christian-kohler.path-intellisense
code --install-extension CoenraadS.bracket-pair-colorizer
code --install-extension DavidAnson.vscode-markdownlint
code --install-extension dracula-theme.theme-dracula
code --install-extension EditorConfig.EditorConfig
code --install-extension eriklynd.json-tools
code --install-extension esbenp.prettier-vscode
View benjamin_forst.yml
version: "5"
random_followers: [
'6:03',
'8:03',
'10:03',
'18:56',
'22:10'
]
View wilderness.yml
version: "5"
random_followers: [
'11:23',
'17:56'
]
timeline: [
]
View main.yml
version: "5"
random_followers: [
'06:03',
'10:03',
'22:10'
]
timeline: [
View instapy.yml
version: "1"
random_followers: [
'6:03',
'8:23',
'9:56',
'15:23',
'16:43',
'18:56',
'20:21',
View topics.json
[
{
"lat": 0.79,
"lng": 0.78,
"topics": [
{
"keyword": "Paesi Bassi",
"weight": 0.61
},
{
@Naramsim
Naramsim / inject.css
Created Jan 6, 2017
vscode custom CSS
View inject.css
.vs-dark .monaco-workbench>.sidebar>.title>.title-actions {
background-color: #282a36 !important;
}
.part.activitybar {
background-color: #282a36 !important;
box-shadow: 0px 0px 2px black;
z-index: 10;
}