Skip to content

Instantly share code, notes, and snippets.

View vaporup's full-sized avatar
🤠

Sven Wick vaporup

🤠
View GitHub Profile
@IAmStoxe
IAmStoxe / loop-json.sh
Last active March 7, 2024 14:00
This example shows you how to utilize jq to loop bash script through an array of JSON values.
jsonData='[{"name": "name#1","value": "value#1"},{"name": "name#2","value": "value#2"}]'
for row in $(echo "${jsonData}" | jq -r '.[] | @base64'); do
_jq() {
echo "${row}" | base64 --decode | jq -r "${1}"
}
# OPTIONAL
# Set each property of the row to a variable
name=$(_jq '.name')
value=$(_jq '.value')
@bdombro
bdombro / .gitlfstracks
Last active March 27, 2024 16:43
Git LFS Default Tracks - Common binary file extensions
"To include this, run `cat .gitlfstrack | xargs git lfs track`"
"*.3ds"
"*.3g2"
"*.3gp"
"*.7z"
"*.a"
"*.aac"
"*.adp"
"*.ai"
"*.aif"
@jhqv
jhqv / rdiff.sh
Last active October 22, 2018 02:31
Remote diff file using SSH, useful for comparing config files when migrating services between machines etc.
#!/bin/bash
# Compare a local file with a remote file with (default) the same path or a custom path
# by Janek Hellqvist, 2016-10-14
# Example 1: compare same file on two different hosts
# rdiff.sh /etc/nginx/nginx.conf
# Example 2: compare local file with other remote file
# rdiff.sh /etc/nginx/conf.d/http.conf /etc/nginx/conf.d/www.conf
bold=$(tput bold)
@heimp
heimp / unordered_list_of_programming_languages.txt
Last active May 26, 2024 17:26
just names and urls of various programming languages that seem kind of interesting to me
Possibly Interesting Programming Languages
Possibly Unmanaged? (By This I Mean "Not Garbage Collected?")
--------------------------------------------
Rust https://www.rust-lang.org/
Pascal http://freepascal.org/
Ada http://www.adaic.org/
ParaSail http://parasail-lang.org/
BitC https://github.com/repos-bitc/bitc
Clay http://claylabs.com/clay