Skip to content

Instantly share code, notes, and snippets.

View asukiaaa's full-sized avatar

Asuki Kono asukiaaa

View GitHub Profile
@asukiaaa
asukiaaa / 7zipcrack.py
Last active May 1, 2022 15:56
crack with using p7zip
#!/usr/bin/python3
# inspired by https://github.com/cyberblackhole/7zip-crack
import subprocess
import sys
chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 ~`!@#$%^&*()-_=+[{]}\\|;:'\"/?.>,<"
target_zip = sys.argv[1]
#define PIN_LED_GND 2
#define PIN_CLK 3
#define PIN_AB 4
#define PIN_SIG_1 A0
#define PIN_SIG_2 A1
#define PIN_SIG_3 A2
#define PIN_SIG_4 A3
#define PIN_SIG_5 10
#define PIN_SIG_6 11
#define PIN_SIG_7 12
#!/usr/bin/python
# -*- coding: utf-8 -*-
# First import the library
import pyrealsense2 as rs
import numpy as np
import cv2
# setup opencv stereo
minDisp = 0
# Commands to build kicad on ubuntu17.10
# Download source code
sudo apt update
sudo apt upgrade
sudo apt install git
mkdir ~/gitprojects
cd gitprojects
git clone https://git.launchpad.net/kicad
import numpy as np
import cv2
IMAGE_WIDTH = 640
IMAGE_HEIGHT = 480
capL = cv2.VideoCapture(0)
capR = cv2.VideoCapture(1)
imgL = np.zeros((480,640,3), np.uint8)
@asukiaaa
asukiaaa / .vimrc
Last active October 7, 2016 12:27
" set indent as 2 spaces
set tabstop=2
set autoindent
set expandtab
" show line number
set number
" color schema
syntax on
@asukiaaa
asukiaaa / I2cLcd.py
Last active December 2, 2017 13:18
I2C LCD controller library for AQM1602. I created pip library, so prease use it. https://github.com/asukiaaa/asukiaaa_py_i2c_lcd
import smbus
I2C_BUS_NUM = 1
I2C_LCD_ADDR = 0x3e
LCD_SET_DDRAM_ADDR = 0x80
class I2cLcd:
i2c = ""
address = ""