Skip to content

Instantly share code, notes, and snippets.

@pandax381
pandax381 / ix3315.startup-config
Last active May 21, 2024 03:56
IX3315 にフレッツ光クロス2回線(OCNバーチャルコネクトおよびv6プラス固定IP)を収容するためのコンフィグ
! NEC Portable Internetwork Core Operating System Software
! IX Series IX3315 (magellan-sec) Software, Version 10.7.18, RELEASE SOFTWARE
! Compiled Oct 25-Tue-2022 12:28:03 JST #2
! Current time Apr 26-Wed-2023 16:52:00 JST
!
timezone +09 00
!
logging buffered 819200
logging subsystem flt warn
logging subsystem mape debug
@ahmadrosid
ahmadrosid / write-fixer.py
Created April 17, 2024 10:02
Fixed typos, spelling mistakes, and grammar while maintaining clarity and a concise tone using Claude.
import sys
import anthropic
from dotenv import load_dotenv
load_dotenv()
client = anthropic.Anthropic()
prompt_template = """
Please review and edit the following text to ensure it is grammatically correct, clear, and concise. Aim to maintain a casual tone without being overly informal. Provide suggestions for improvement and explain any changes you make. Do not add double quotes in you rewrite answer. Answer in direct response.
export blah="$(grep client.so /proc/$(pidof hl2_linux)/maps | head -n 1 | cut -d - -f1)" ; export DDDD="$(printf "0x%X\n" $((0x$blah + 0x3c856f)))" ; export FFFD="$(printf "0x%X\n" $(($DDDD + 4)))" ; grep -a -insecure "/proc/$(pidof hl2_linux)/cmdline" && sudo gdb -p $(pidof hl2_linux) -ex "set {int}$DDDD = 0x90909090" -ex "set {short}$FFFD = 0x9090" -batch
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created May 21, 2024 02:50
zulu11 v11.70.15 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-2412192122-1938444825-1709503042-1000</user>
<keys>
<key installerType="Msi" displayName="Azul Zulu JDK 11.70.15 (11.0.22), 64-bit" displayVersion="11.70.15">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E6A25195-0C8B-42DD-8574-64D6E0026716}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files\Zulu\zulu-11\]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /I{E6A25195-0C8B-42DD-8574-64D6E0026716}]]></UninstallString>
@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