Skip to content

Instantly share code, notes, and snippets.

@darconeous
darconeous / tesla-key-card-protocol.md
Last active April 8, 2025 23:28
Tesla Key Card Protocol

Tesla Key Card Protocol

Researched by Robert Quattlebaum [email protected].

Last updated 2020-02-03.

Image of Tesla Key Card Image of Tesla Model 3 Key Fob

rem Or even better, create a system image!
rem http://www.aomeitech.com/ab/standard.html
rem https://www.macrium.com/reflectfree
rem Things, that will get broken, that will get noticed ASAP or after restart, like Start or WiFi for sure!
rem Disabling network services (Dhcp/NlaSvc/netprofm/nsi/RmSvc) will prevent you from managing network settings!
rem Windows Defender Firewall is set to block all inbound/outbound except allowed apps, which have to be added first!
rem Terminating "ShellExperienceHost.exe" will restart it and Start's functionality
rem You can create a task, which runs after logon with one minute delay.
@curran
curran / Data.csv
Last active January 27, 2021 11:15
Manufactures vs Total Exports
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 9 columns, instead of 3 in line 7.
Country Name,Country Code,Series Name,Series Code,2014 [YR2014],2015 [YR2015],2016 [YR2016],2017 [YR2017],2018 [YR2018]
Afghanistan,AFG,Manufactures exports (% of merchandise exports),TX.VAL.MANF.ZS.UN,14.7219364611863,15.8626032734504,6.56171477932471,..,..
Afghanistan,AFG,Merchandise exports (current US$),TX.VAL.MRCH.CD.WT,570000000,571000000,596000000,780000000,875000000
Afghanistan,AFG,Commercial service exports (current US$),TX.VAL.SERV.CD.WT,1245116192.49518,734974019.418313,380875667.824945,252886849.455045,..
Albania,ALB,Manufactures exports (% of merchandise exports),TX.VAL.MANF.ZS.UN,31.3635380921156,52.6944270996236,66.3131124463271,51.3722500613632,41.5676978166436
Albania,ALB,Merchandise exports (current US$),TX.VAL.MRCH.CD.WT,2431000000,1930000000,1962000000,2301000000,2876000000
Albania,ALB,Commercial service exports (current US$),TX.VAL.SERV.CD.WT,2454016098.32733,2205497327.38097,2609903799.93551,3192929713.19358,3566275231.79488
Algeria,DZA,Manufactures exports (% of merchandise expo
@Jaykul
Jaykul / About PSModulePath and Select-UniquePath.md
Last active October 22, 2020 20:05
Select-UniquePath normalizes path variables like PSModulePath and ensures only folders that actually currently exist are in them.

As a general rule, most people can just edit the PSModulePath variable in their Environment Variables ...

However, I am not most people.

I want to test all the things, and I want to use PowerShell 7, 6, and 5.1 interchangeably:

  • I have to use PowerShell 5.1 for most of our work code (we're provisioning Windows 10 / Server 2016 / Server 2019 ... and 5.1 is what's on the box)
  • I want to use PowerShell 7.x (whatever the current release is)
  • I want to test the current "pre-release" version

Additionally, to make matters more confusing ... I sometimes work on Windows and sometimes on Linux (most notably in Azure's CloudShell).

@rithvikvibhu
rithvikvibhu / README.md
Last active April 12, 2024 15:32
GHLocalApi Update

GHLocalApi Update

The Gist

Until recently, the Google Home app used to communicate with the device over port 8008 (HTTP) and did not require any authentication. Everything in the unofficial documentation worked as expected.

A few days (weeks) ago, Google pushed a new update to all GH devices and all endpoints (except /setup/eureka_info) started returning 403 (forbidden) errors. The app had switched over to port 8443 and HTTPS.

@potatoqualitee
potatoqualitee / Save-KBFile.ps1
Last active July 5, 2024 11:31
Download Windows patch files / KB (patchid like KBxxxxx) and save them to disk using PowerShell
function Save-KBFile {
<#
.SYNOPSIS
Downloads patches from Microsoft
.DESCRIPTION
Downloads patches from Microsoft
.PARAMETER Name
The KB name or number. For example, KB4057119 or 4057119.
@pinecones-sx
pinecones-sx / get-appxicon.ps1
Created June 5, 2019 03:16
to get icons from appx package
$results = (
Get-AppxPackage |
ForEach{
$thisAppx = $_
$thisManifest = $_ | Get-AppxPackageManifest
$thisSubPath = ''
$thisLogoBaseName = ''
$thisLogoRoot = ''
$thisLogoUNC = ''
If ($thisManifest.Package.Properties.logo -like '*\*'){
@tanyuan
tanyuan / markdown-tools.md
Created April 23, 2019 06:52
Markdown tools

Markdown Tools

Mac

  • CotEditor - Plain text editor with drag in support.
  • Marked 2 - Markdown previewer with custom CSS and preprocessor.
@Stephanevg
Stephanevg / Get-URLData.ps1
Last active September 2, 2020 08:54
This function will return an object that parse a URL and returns all the detailed information in a PowerShell object
Function Get-URLData {
<#
.SYNOPSIS
This function parses a URL and returns an object with all the detailed information of it
.DESCRIPTION
Long description
.EXAMPLE
Get-UrlData -Url 'https://Google.com/Search'
@riverar
riverar / features.json
Last active November 8, 2023 20:46
Quick n' dirty hack to enable Your Phone remoting, notification and other experiments
{
"AATes123": true,
"AcrylicAndBackground": true,
"AudioInfoSync": true,
"BatteryIndicator": true,
"CallingDiscoveryTimeout": 30,
"CallingEnableOnARM": true,
"CallingFromMessages": true,
"CallingLabelInProd": true,
"CallingNode": true,