Skip to content

Instantly share code, notes, and snippets.

@ckurtz22
ckurtz22 / polestar2_read_doip.py
Created October 18, 2023 02:58
Read diagnostic data from Polestar 2
# Must install doipclient and udsoncan for Python:
# pip install doipclient udsoncan
import udsoncan
from doipclient import DoIPClient
from doipclient.connectors import DoIPClientUDSConnector
from udsoncan.client import Client
from udsoncan.exceptions import *
from udsoncan.services import *
@JavanXD
JavanXD / install-kali-subsystem.md
Last active October 29, 2023 16:04
Hot To: Install Kali Linux as Windows Subsystem
  1. Enable feature in PowerShell: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

  2. Download Kali AppX File: https://aka.ms/wsl-kali-linux-new

    Invoke-WebRequest -Uri https://aka.ms/wsl-kali-linux-new -OutFile Kali.appx -UseBasicParsing
    
  3. Open PowerShell as Admin and Run: Add-AppxPackage .\Kali.appx

  4. Run kali. Create user:user.

  5. Set default user: kali config --default-user root

  6. Keep system up to date:

@veggiemonk
veggiemonk / CKAD.md
Last active March 8, 2024 10:22
CKAD exam preparation
@riandyrn
riandyrn / INSTALL_GOLANG_1.13.4_AMI_LINUX.md
Last active December 18, 2021 21:23
[Install Golang 1.13.4 on AMI Linux]

Install Golang

cd /usr/local/
sudo wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz
sudo tar -xzf go1.13.4.linux-amd64.tar.gz

Append Golang Binary to Path

@LukeMurphey
LukeMurphey / splunkuitest.py
Last active July 27, 2019 03:14
A Python module that loads test cases that were exported from the Selenium IDE and runs them against a Splunk install.
"""
This Python script loads test cases that were generated from the SeleniumIDE and executes them
against a running Splunk install. The purpose of this script is to make it possible to run tests
against Splunk without having to write code using WebDriver directly. Instead, the intent is that
testers write tests in the Selenium IDE GUI. This ought to make tests easier to write and maintain.
This is release under the Apache 2.0 Licence:
https://www.apache.org/licenses/LICENSE-2.0
@ashrithr
ashrithr / readme.md
Last active December 7, 2022 01:47
Installing ELK on a single machine

Installing ELK (CentOS)

This is a short step-by-step guide on installing ElasticSearch LogStash and Kibana Stack on a CentOS environment to gather and analyze logs.

I. Install JDK

rpm -ivh https://dl.dropboxusercontent.com/u/5756075/jdk-7u45-linux-x64.rpm
@oneyoung
oneyoung / export_nook_notes.py
Created April 24, 2014 03:59
Script to export Nook Reader's annotations
#!/usr/bin/env python2
import os
import tempfile
import sqlite3
class DBExportor(object):
def __init__(self, db=None):
if not db:
db = self.pullDB()
@killercup
killercup / pandoc.css
Created July 3, 2013 11:31
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
@btoone
btoone / curl.md
Last active April 2, 2024 20:18
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API.

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin