Skip to content

Instantly share code, notes, and snippets.

@MrPoofy
MrPoofy / 500ePIDsCals.js
Last active April 17, 2024 23:18
List of PIDs and calculations to retrieve Fiat 500e (2020 version) information from OBD
var command = [
"ATZ",
"ATD",
"ATE0",
"ATS0",
"ATAL",
"ATH0",
"ATSP7",
"ATCP18"
];
@MrPoofy
MrPoofy / add_intellij_launcer
Created March 26, 2021 01:10 — forked from rob-murray/add_intellij_launcer
Add Intellij launcher shortcut and icon for ubuntu
// create file:
sudo vim /usr/share/applications/intellij.desktop
// add the following
[Desktop Entry]
Version=13.0
Type=Application
Terminal=false
Icon[en_US]=/home/rob/.intellij-13/bin/idea.png
Name[en_US]=IntelliJ
@MrPoofy
MrPoofy / jcr-locations.md
Created November 6, 2019 13:19 — forked from knennigtri/jcr-locations.md
Useful JCR Locations for AEM Templates and components
<alignment jcr:primaryType="nt:unstructured"
name="./alignChildren"
fieldLabel="Alignment of components"
required="{Boolean}true"
selectionMode="single"
sling:resourceType="granite/ui/components/coral/foundation/form/buttongroup">
<items jcr:primaryType="nt:unstructured">
<default jcr:primaryType="nt:unstructured"
name="./default"
@MrPoofy
MrPoofy / decode_base64.js
Created April 22, 2014 09:49
Decoder for base64 strings.
/* ==========================================================================
Decoder for Base64 strings.
Created by Broc Seib @http://blog.broc.seib.net
========================================================================== */
decode_Base64 = function(s) {
var e={},i,b=0,c,x,l=0,a,r='',w=String.fromCharCode,L=s.length;
var A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
for(i=0;i<64;i++){e[A.charAt(i)]=i;}
for(x=0;x<L;x++){
c=e[s.charAt(x)];b=(b<<6)+c;l+=6;