Skip to content

Instantly share code, notes, and snippets.

View elvisoliveira's full-sized avatar
😄
1% talent.. 99% not being distracted by the internet

Elvis Oliveira elvisoliveira

😄
1% talent.. 99% not being distracted by the internet
View GitHub Profile
@KingAtoki
KingAtoki / bmp.swift
Created July 8, 2025 15:37
ER BMP sending
/**
* Performs a single BMP transfer attempt to a peripheral
*
* This is the core BMP transfer protocol implementation using Java-style approach:
* 1. Splits BMP data into 194-byte chunks with proper addressing
* 2. Sends packets sequentially with minimal delays
* 3. Sends end command (0x20, 0x0d, 0x0e)
* 4. Sends CRC verification using standard CRC32
*
* @param peripheral: The target CBPeripheral device
@alissa-maria
alissa-maria / daily-text.py
Created April 9, 2024 10:09
Prints daily text + explanation to stdout
import requests
from bs4 import BeautifulSoup
url = 'https://wol.jw.org/en/wol/h/r1/lp-e'
response = requests.get(url)
html_content = response.content
soup = BeautifulSoup(html_content, 'html.parser')
@exocode
exocode / Raspberry Pi autostart.md
Created January 3, 2021 19:59
All you need if you wanna use a Chrome Extension as your main app on Raspberry Pi. With these settings, RPI will start clean with a Chrome app in fullscreen

Autostart Apps in Chrome

  • sudo apt-get update
  • Open the local copy in /usr/share/applications (drag it over an open nano sudo nano ~/.local/share/applications/chromium-browser.desktop)
  • look for the first line, starting with Exec=. Replace the line by (in the case of "YOURNAME"):

Exec=chromium-browser --profile-directory="Default" %u

  • add mouse hide software sudo apt-get install unclutter
  • edit autostart file sudo nano /etc/xdg/lxsession/LXDE-pi/autostart:
@peteristhegreat
peteristhegreat / Readme.md
Last active November 26, 2025 09:12
Realtek bluetooth usb adapter RTL8671b
@f0r34chb3t4
f0r34chb3t4 / keys.txt
Created April 9, 2019 16:42
Proxifier.txt
Portable Version KEYS:
P6Z3T-UYJC9-YAK3F-APN9M-6ZDSD
FGZPK-93CWX-Q33Y6-D5URV-YXC3X
9CZQX-9YAQA-PF33L-XVUQH-NSD48
8RZ3L-H3Y5L-W2RY5-Z5M8N-C7Z2U
CCZNU-LW3LF-K9V2T-MYZFF-94667
EWZM6-3W4UX-KH922-C96GK-VGBH2
Standard Version KEYS:
4AZNW-S2YHE-LLMWM-J6EL8-7QKDL
@franciscocpg
franciscocpg / README.md
Last active September 18, 2025 18:08
Import mitm certificate to CA in arch linux
  1. After installing mitmproxy run it (just type mitmproxy) in a terminal session and quit. This will create the necessaries certificates files at ~/.mitmproxy.

  2. Extract the certificate to .crt format:
    openssl x509 -in ~/.mitmproxy/mitmproxy-ca.pem -inform PEM -out ca.crt

  3. Trust the certificate into CA:
    sudo trust anchor ca.crt

  4. Run the mitmproxy again

@dagli
dagli / proxifier_trial_reset.bat
Last active September 25, 2025 05:18
Proxifier Trial Reset
REM Initex Software Proxifiertrial reset
REM Close Proxifier if it is running
taskkill /f /im Proxifier.exe
reg delete "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /v DefaultWANProfile /f
reg delete "HKCU\Software\Initex\ProxyChecker\Settings" /v DefaultWANProfile /f
reg delete "HKCU\Software\Initex\Proxifier\Settings" /v DefaultWANProfile /f
REM Delete "DefaultWANProfile" line in "Settings.ini" file in ProxifierPE folder (for Portable Edition)
del %~dp0Settings.old.ini
# Connectiong by SSH from Android Termux to Desktop and vice-versa.md
# Copyright (c) 2019 Evandro Coan
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
#!/bin/bash
###
# Requires Null Keyboard https://play.google.com/store/apps/details?id=com.wparam.nullkeyboard
# Author: Volodymyr Shymanskyy
###
brightness=$(adb shell settings get system screen_brightness)
ime=$(adb shell settings get secure default_input_method)
@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active December 4, 2025 10:03
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).