Skip to content

Instantly share code, notes, and snippets.

@nebhead
nebhead / CustomUSBName.md
Last active May 21, 2024 03:47
Instructions for Adding Custom Naming for Arduino USB Device

The following is capturing instructions on how to add custom naming for an Arduino Leonardo (or generic pro-micro) for my Arcade Controller device. I wanted to have a simple record so that when I inevitably come back to this someday I can recall how I accomplished this. Reference was taken from the following YouTube video (https://youtu.be/hoCOq9Ngp44?t=1156) at approximately 19m16s.

WINDOWS Instructions:

Create a new set of folders: ~\Documents\Arduino\hardware\daemonbite\avr

Copy everything from C:\Program Files (x86)\Arduino\hardware\arduino\avr to this new folder.

@choco-bot
choco-bot / FilesSnapshot.xml
Created May 21, 2024 03:38
ventoy v1.0.97.20240126 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\ventoy\update.ps1" checksum="1DDF71847DF71CC72D48A3FC0A925AAC" />
<file path="C:\ProgramData\chocolatey\lib\ventoy\ventoy-1.0.97-windows.zip.txt" checksum="7D5FCEBBF4BE0E30C2B249D75ABD9739" />
<file path="C:\ProgramData\chocolatey\lib\ventoy\ventoy.nupkg" checksum="4E4F3563D14863F874E6E5C45F8412E0" />
<file path="C:\ProgramData\chocolatey\lib\ventoy\ventoy.nuspec" checksum="7054A3B56C17F4C85B2EE9C35ADB9833" />
<file path="C:\ProgramData\chocolatey\lib\ventoy\tools\ChocolateyBeforeModify.ps1" checksum="D89E21FEE8275D8BFE05A0C5810D98D5" />
<file path="C:\ProgramData\chocolatey\lib\ventoy\tools\ChocolateyInstall.ps1" checksum="D00FC3FCC3FB0C706DE3EEA0F32EE2ED" />
<file path="C:\ProgramData\chocolatey\lib\ventoy\tools\ChocolateyUninstall.ps1" checksum="B93C54C4E650288B5E4AC4C
from PIL import Image
from pytesseract import *
pytesseract.tesseract_cmd = r'C:\Users\Usuario\AppData\Local\Programs\Tesseract-OCR\tesseract.exe'
img = Image.open("image.png")
resultado = pytesseract.image_to_string(img)
print(resultado)
@shinoi2
shinoi2 / renju.py
Last active May 21, 2024 03:43
Python - 五子棋禁手判断
BOARD_SIZE = 15
NULL = 0
BLACK = 1
WHITE = 2
dx = [-1, 0, 1, -1, 1, -1, 0, 1]
dy = [-1, -1, -1, 0, 0, 1, 1, 1]
class IllegalMove(Exception):
pass
@magnetikonline
magnetikonline / README.md
Last active May 21, 2024 03:38
Enable LDAP over SSL (LDAPS) for Microsoft Active Directory servers.

Enable LDAP over SSL (LDAPS) for Microsoft Active Directory servers

Tip

Microsoft active directory servers by default provide LDAP connections over unencrypted connections (boo!).

The steps below will create a new self signed certificate appropriate for use with and thus enabling LDAPS for an AD server. Of course the "self-signed" portion of this guide can be swapped out with a real vendor purchased certificate if required.

Steps have been tested successfully with Windows Server 2012R2, but should work with Windows Server 2008 without modification. Requires a working OpenSSL install (ideally Linux/OSX) and (obviously) a Windows Active Directory server.

@gabe565
gabe565 / change-arc-icon.md
Last active May 21, 2024 03:37
Change Arc Browser Icon

Change Arc Browser Icon

arc

A collection of commands that change the Arc Browser icon on macOS.

Commands

Theme Command
Candy Arc defaults write company.thebrowser.Browser currentAppIconName candy
@mili-inch
mili-inch / vmc4b_manual_en.md
Last active May 21, 2024 03:35
Manual for VMC4B

This is an add-on that receives motions sent by VMCProtocol. It previews, records them in real time in Blender. About VMCProtocol: https://protocol.vmc.info/

It can be used with VirtualMotionCapture to capture SteamVR motions.
https://vmc.info/

Currently, VirtualMotionCapture motion sending function is a paid feature (2021/11/16).
https://akira.fanbox.cc/

screenshot

@Mikael-R
Mikael-R / scrollable.vue
Created January 2, 2024 17:20
Scrollable component for vue
<template>
<div
ref="scrollContainer"
class="overflow-auto"
:class="state.dragging ? 'cursor-grabbing' : 'cursor-grab'"
@mousedown="handleMouseDown"
@mousemove="handleMouseMove"
@mouseup="handleMouseUp"
>
<div ref="content" class="content" @selectstart="handleSelectStart">

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH