Skip to content

Instantly share code, notes, and snippets.

View JavanXD's full-sized avatar
:octocat:
Coding all night long.

Javan Rasokat JavanXD

:octocat:
Coding all night long.
View GitHub Profile
@JavanXD
JavanXD / esp32_bme680_access_point.ino
Last active June 1, 2021 15:04
ESP32: Create Accesspoint and visualize measurement data from BME680 sensor. Read my write-up: https://javan.de/esp32-bme680-sensor-in-webinterface-visualisieren/ (German language)
#include <WiFi.h>
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include "Adafruit_BME680.h"
// Only needed for software SPI
//#define BME_SCK 13
//#define BME_MISO 12
//#define BME_MOSI 11
@JavanXD
JavanXD / 7z_bruteforce.py
Created January 20, 2020 12:16
python 7z_bruteforce.py rockyou.txt test.7z
#!/usr/bin/python3
# python 7z_bruteforce.py rockyou.txt test.7z
import concurrent.futures
import os
import subprocess
import sys
FNULL = open(os.devnull, 'w')
@JavanXD
JavanXD / shrink-macos.md
Created January 27, 2020 18:03
Shrink Raspbian images with MacOS

Shrink Raspbian images with MacOS

  1. Use ApplePi-Baker v2 to create backup.img
  2. Start Docker Daemon
  3. Run
    	docker run --rm --privileged=true -v `pwd`:/workdir turee/pishrink-docker pishrink backup.img
    
    in same folder as backup.img [1]

Keybase proof

I hereby claim:

  • I am javanxd on github.
  • I am javanxd (https://keybase.io/javanxd) on keybase.
  • I have a public key ASDuPY3vMDs7F587CLlBVO2MiWI1vdarXCgbA-7l6SCCXAo

To claim this, I am signing this object:

@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:

@JavanXD
JavanXD / lotto-bw-script.js
Created August 9, 2020 17:14
Create a summary of your outgoings for lottery tickets on lotto-bw.de (DE)
sum = 0.0;
anzahlGewinne = 0;
anzahlSpielscheine = 0;
sumEurojackpot = 0.0;
sumLotto = 0.0;
sumGewinne = 0.0;
kostenEurojackpotScheine = 0.0;
anzahlEurojackpotScheine = 0;
kostenLOTTOScheine = 0.0;
anzahlLOTTOScheine = 0;
@JavanXD
JavanXD / modbus_wgt.yaml
Last active February 28, 2024 18:14
SchwörerHaus WGT BIC VentCube Fresh Home Assistant Integration via modbus
# Helpful information:
# https://github.com/Excodibur/ioBroker.schwoerer-ventcube/blob/master/src/lib/schwoerer/parameters.ts
# https://github.com/fgoettel/wgt/blob/main/wgt/lueftungsanlage.py
# https://knx-user-forum.de/forum/öffentlicher-bereich/knx-eib-forum/diy-do-it-yourself/1822296-modbus-schwörer-heizung?p=1906252#post1906252
##################
# MODBUS SENSORS #
##################
modbus: