Skip to content

Instantly share code, notes, and snippets.

View senhalil's full-sized avatar
🦧

Halil Sen senhalil

🦧
  • Equilibrium Energy
  • Bordeaux
  • X @hllsen
View GitHub Profile
@burtlo
burtlo / son_lint.rb
Created November 18, 2015 00:57
Find all the JSON files in the local directory and any subdirectories and attempt to parse them with a Ruby JSON parser. If any of them fail to load an error message will be displayed.
require 'json'
Dir["**/*.json"].each do |json_file|
JSON.parse(File.read(json_file))
end
@Ricket
Ricket / gist:78bcd681db86bcbb134558428c4c6cb4
Created September 25, 2018 16:54
git diff -- use jq to pretty-print the json before diffing it
echo "*.json diff=json" >> ~/.gitattributes
git config --global core.attributesfile ~/.gitattributes
git config --global diff.json.textconv "jq '.' \$1"
@andyrbell
andyrbell / luks_backup.txt
Created March 10, 2019 14:35
clonezilla luks backup
backup luks partition
1. Boot clonezilla
2. Drop into the command line
3. open the encrypted external drive partition
cryptsetup luksOpen /dev/sda3 backup