Skip to content

Instantly share code, notes, and snippets.

View Naramsim's full-sized avatar
🎅
Always in Christmas mood

Alessandro Pezzè Naramsim

🎅
Always in Christmas mood
View GitHub Profile
@Naramsim
Naramsim / 0nlyoung7
Created March 25, 2021 21:38 — forked from Original-Streak/0nlyoung7
Start dates
#2015-09-13
@Naramsim
Naramsim / Microsoft.PowerShell_profile.ps1
Last active June 11, 2020 12:23
git & npm shortcuts
set-location c:\Users\Ale\Documents\GitHub
Write-Host "Setting up GitHub Environment"
. (Resolve-Path "$env:LOCALAPPDATA\GitHub\shell.ps1")
Write-Host "Setting up Posh-Git"
. (Resolve-Path "$env:github_posh_git\profile.example.ps1")
Remove-Item alias:gcm -Force
Remove-Item alias:gc -Force
Remove-Item alias:gp -Force
@Naramsim
Naramsim / handle-stream.sh
Created November 23, 2019 15:41
curl keep alive handle stream
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 November 21, 2019 12:44
laboratorioorafoeccher
html, body {
height: 100% !important;
}
* {
box-sizing: inherit;
}
html {
box-sizing: border-box;
@Naramsim
Naramsim / log.js
Last active August 5, 2019 20:27
pokemon types multipliers
console.log(getMultipliers(['poison','fire']))
version: "5"
random_followers: [
'06:03',
'10:03',
'22:10'
]
timeline: [
@Naramsim
Naramsim / extensions.sh
Created September 18, 2018 17:20
VSCode
#!/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
version: "5"
random_followers: [
'6:03',
'8:03',
'10:03',
'18:56',
'22:10'
]
version: "5"
random_followers: [
'11:23',
'17:56'
]
timeline: [
]