Skip to content

Instantly share code, notes, and snippets.

@Instagraeme
Instagraeme / decompressPic.py
Last active July 23, 2023 16:25
Python Script to retrieve JPEG images from Hikvision PIC file format
#!/usr/bin/env python3
"""
Copyright (c) 2017 Graeme Smith
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do

Graphing Widget

The graphing widget shows graphs using the Rickshaw graphing library. The names of data fields should be (vaguely) familiar if you've used Rickshaw before.

It's recommended that you replace the /assets/javascripts/rickshaw.min.js from your dashboard with the latest from here.

Supported HTML data fields

#!/bin/sh
KEY="$HOME/.ssh/id_rsa.pub"
SERVERS="[email protected] [email protected] [email protected] webserver mediacenter"
if [ ! -f $KEY ];then
echo "private key not found at $KEY"
echo "* please create it with \"ssh-keygen -t rsa -b 2048\" *"
exit 1
fi
#!/bin/bash
#
# Author : Graeme Smith <[email protected]>
# Homepage : http://instagrae.me
# Version: 0.1
# License : BSD http://en.wikipedia.org/wiki/BSD_license
# Copyright (c) 2014, Graeme Smith
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without