Skip to content

Instantly share code, notes, and snippets.

View peet86's full-sized avatar
๐Ÿ‘€

Peter Varga peet86

๐Ÿ‘€
View GitHub Profile
@peet86
peet86 / GitFavs.txt
Created December 7, 2015 03:54
GitFavs
#Skip from tracking
git update-index --skip-worktree <file>
#Get back to tracking
git update-index --no-skip-worktree <file>
#!/bin/sh
URL=https://github.com/vchain-us/vcn/releases/download/v0.7.2/vcn-v0.7.2-darwin-10.6-amd64
echo "Please wait. We are downloading and installing CodeNotary vcn for you..."
cd ~
curl --connect-timeout 100 -L $URL >> vcn
chmod 777 vcn
mv vcn /usr/local/bin/
echo "Done. You can run now: $ vcn"
@peet86
peet86 / split-json.sh
Last active November 28, 2020 11:32
Split JSON array to files, use attribute as filename
#!/bin/bash
# Split JSON array to files, use json attribute as filename
#
# input.json:
# [
# {"id":"1", "name":"first"},
# {"id":"1", "name":"second"},
# ...
# ]