Skip to content

Instantly share code, notes, and snippets.

View chronosafe's full-sized avatar

Richard Brown chronosafe

View GitHub Profile
@chronosafe
chronosafe / index.html
Created April 27, 2026 12:23
Repository Wiki — generated by GitNexus
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LostKeyGuard-primary — Wiki</title>
<script src="https://cdn.jsdelivr.net/npm/marked@11.0.0/marked.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js"></script>
<style>
@chronosafe
chronosafe / index.html
Created April 26, 2026 05:14
Repository Wiki — generated by GitNexus
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>vindecoder — Wiki</title>
<script src="https://cdn.jsdelivr.net/npm/marked@11.0.0/marked.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js"></script>
<style>
@chronosafe
chronosafe / decode.html
Created March 20, 2016 16:46
Embed code for Decode This Decoder
<div style="font-family: Arial; font-weight: bold; font-size: 12px;">
<form name="decode" id="decode" action="http://www.decodethis.com/vin_decoded.aspx">
<span style="color: #b43616;">Decode Any Car VIN Here</span><br />
<input id="vin" type="text" value="" name="vin" size="13" style="border: solid 1px gray; background-color: #eee;"/>
<input type="submit" value="Go!" />
<br />
<span style="font-size: 10px; color: #9e2f13;">Free Decoder by <a href="http://www.decodethis.com" title="Decode This!">Decode This!</a>
</span>
</form>
</div>
@chronosafe
chronosafe / gist:65f46a57dabe3cffb7c0
Created June 11, 2015 15:31
Using Ruby to replace double quote character in JSON string
# Takes a string and matches the value portion of the JSON.
# The block then searches for any double quotes and replaces them with a blank string
my_str = "{ \"key\" : \"value \"3\" is here\"}"
puts my_str.gsub(/(:)\s+\"(?<str>.+)\"/){|m| ": \"#{$~[:str].gsub('"','')}\""}
@chronosafe
chronosafe / vinvault.php
Last active December 29, 2015 07:29
Using PHP to query VIN Vault
<?php
$url = 'http://api.vinvault.com/api/decodes.json';
$data = array('vin' => '1D7RB1CT8AS203937', 'auth_token' => 'RLBVPvj8riQmRuPzcT'); // Replace with your token
// use key 'http' even if you send the request to https://...
$options = array(
'http' => array(
'header' => "Content-type: application/x-www-form-urlencoded\r\nAccept: application/vnd.vindata.v1\r\n",
'method' => 'POST',
'content' => http_build_query($data),