Skip to content

Instantly share code, notes, and snippets.

View francissta's full-sized avatar

Francis St-Amour francissta

View GitHub Profile
@francissta
francissta / check_json.py
Created March 11, 2014 16:05
Minimal python script to check the validity of a JSON file
#!/usr/bin/python
import json
with open("model.json") as json_file:
json_data = json.load(json_file)
print(json.dumps(json_data, indent=4))
@francissta
francissta / usermod-ag.sh
Created January 30, 2014 18:29
Command to add an existing user to an existing group
usermod -a -G <group> <username>