Skip to content

Instantly share code, notes, and snippets.

View 349K's full-sized avatar

349K 349K

View GitHub Profile
@349K
349K / fix-wsl2-dns-resolution
Created July 6, 2022 02:21 — forked from coltenkrauter/fix-wsl2-dns-resolution.md
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.
@349K
349K / ESP32_HID.ino
Created May 23, 2022 04:17 — forked from sabas1080/ESP32_HID.ino
Example of HID Keyboard BLE with ESP32
/*
Copyright (c) 2014-2020 Electronic Cats SAPI de CV. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@349K
349K / raspberry-disable-ipv6.md
Created April 13, 2022 17:49 — forked from andreibosco/raspberry-disable-ipv6.md
Raspberry Pi: disable IPv6
@349K
349K / systemlogs.md
Created April 12, 2022 15:43 — forked from jaflo/systemlogs.md
Flipper Zero stuff

Viewing System Logs

After following these steps you can view messages logged on the OS level. This includes messages logged using FURI_LOG_D (for debug) for example. You can use these in your scripts too:

  • FURI_LOG_E(): error
  • FURI_LOG_W(): warning
  • FURI_LOG_I(): info
  • FURI_LOG_D(): debug
  • FURI_LOG_T(): trace
@349K
349K / free_email_provider_domains.txt
Created April 4, 2022 03:16 — forked from Artistan/free_email_provider_domains.txt
text/csv list of free email domains
hitmail.com
rxdoc.biz
cox.com
126.net
126.com
comast.com
comast.net
yandex.com
wegas.ru
twc.com
@349K
349K / create_sub.py
Created March 29, 2022 20:55 — forked from jinschoi/create_sub.py
Python script to generate Flipper RAW .sub files from OOK bitstreams
#!/usr/bin/env python3
from typing import Iterable, Union, Any
# freq: frequency in Hz
# zerolen: length of space bit in μs
# onelen: length of mark bit in μs
# repeats: number of times to repeat sequence
# pause: time to wait in μs between sequences
# bits: string of ones and zeros to represent sequence