Skip to content

Instantly share code, notes, and snippets.

@djessup
djessup / pioasm.py
Created September 7, 2023 21:32
Raspberry Pi Pico PlatformIO configuration
"""
Custom pioasm compiler script for platformio.
(c) 2022 by P.Z.
(c) 2023 by D.J.
"""
from os.path import join
import glob
import sys
Import("env")
@djessup
djessup / ATmegaBOOT_168_atmega328.hex
Created August 7, 2022 23:27
Flash Arduino Nano clone with avrdude
:107800000C94343C0C94513C0C94513C0C94513CE1
:107810000C94513C0C94513C0C94513C0C94513CB4
:107820000C94513C0C94513C0C94513C0C94513CA4
:107830000C94513C0C94513C0C94513C0C94513C94
:107840000C94513C0C94513C0C94513C0C94513C84
:107850000C94513C0C94513C0C94513C0C94513C74
:107860000C94513C0C94513C11241FBECFEFD8E036
:10787000DEBFCDBF11E0A0E0B1E0ECE9FFE702C060
:1078800005900D92A230B107D9F712E0A2E0B1E065
:1078900001C01D92AD30B107E1F70E942D3D0C945F

Keybase proof

I hereby claim:

  • I am djessup on github.
  • I am jessup_adobe (https://keybase.io/jessup_adobe) on keybase.
  • I have a public key ASAaSAZyeU7fuN5LzvZa6EaFf4H8166de3k8odRINjcP8go

To claim this, I am signing this object:

@djessup
djessup / fix-wsl2-dns-resolution
Created June 15, 2021 02:09 — forked from coltenkrauter/fix-wsl2-dns-resolution
Fix DNS resolution in WSL2
More recent resolution:
1. cd ~/../../etc (go to etc folder in WSL).
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line).
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line).
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian).
5. cd ~/../../etc (go to etc folder in WSL).
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file).
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and
secondary.
import org.apache.jackrabbit.oak.commons.PathUtils
def deleteNodes(def session, String toDelete) {
def EMPTY = org.apache.jackrabbit.oak.spi.commit.CommitInfo.EMPTY
def INSTANCE = org.apache.jackrabbit.oak.spi.commit.EmptyHook.INSTANCE
def store = session.store
def rootBuilder = store.getRoot().builder()
def builder = rootBuilder