Skip to content

Instantly share code, notes, and snippets.

View ichisadashioko's full-sized avatar

shioko ichisadashioko

View GitHub Profile
@ichisadashioko
ichisadashioko / restore_windows_photo_viewer.reg
Created June 11, 2021 02:04
restore windows photo viewer
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; Created on: August 8th 2015
; Updated on: August 5th 2018
; Tutorial: https://www.tenforums.com/tutorials/14312-restore-windows-photo-viewer-windows-10-a.html
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open]
"MuiVerb"="@photoviewer.dll,-3043"
@ichisadashioko
ichisadashioko / main.py
Last active May 9, 2021 10:23
get current timestamp str
import time
import datetime
def ts_str(): now = datetime.datetime.now(); return now.strftime('%Y%m%d-%H%M%S')
print(ts_str())
@ichisadashioko
ichisadashioko / qemu_usb.txt
Created April 22, 2021 12:29
QEMU USB passthrough user guide
USB Quick Start
===============
XHCI controller support
-----------------------
QEMU has XHCI host adapter support. The XHCI hardware design is much
more virtualization-friendly when compared to EHCI and UHCI, thus XHCI
emulation uses less resources (especially cpu). So if your guest
@ichisadashioko
ichisadashioko / script.sh
Created March 28, 2021 15:45
ffmpeg strip subtitles
ffmpeg -i input.mkv -map 0:v -map 0:a -c copy output.mkv
# map the first video stream #0 -map 0:v
# map the first audio stream #0 -map 0:a
@ichisadashioko
ichisadashioko / requirements.txt
Created March 28, 2021 13:47
quickly sprung up a ftp server for accessing files from other devices in the network
pyftpdlib
@ichisadashioko
ichisadashioko / note.md
Last active November 25, 2020 10:13
backup and restore partitions with `dd`

Backup partitions

sudo dd if=/dev/sda[1,2,3] of=destination_path.img
@ichisadashioko
ichisadashioko / note.md
Last active January 22, 2023 07:54
Tor browser set a specific country
  • modify the torrc file at <tor-browser-install-location>/Browser/TorBrowser/Data/Tor/torrc (Windows)
  • add the following content
EntryNodes {us} StrictNodes 1
ExitNodes {us} StrictNodes 1
  • change {us} to the country code that you want to specify
  • keep this note around in another place as torrc may reset its content sometimes
@ichisadashioko
ichisadashioko / requirements.txt
Last active February 19, 2021 04:46
Python packages for daily use.
wheel
jupyter
pillow
opencv-python
tqdm
matplotlib
pandas
requests
pyftpdlib
@ichisadashioko
ichisadashioko / note.md
Last active November 6, 2020 05:32
create macos in virtualbox
VBoxManage modifyvm macos_10_14_6_mojave --cpuidset 00000001 000306a9 04100800 7fbae3ff bfebfbff
VBoxManage setextradata macos_10_14_6_mojave "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "MacBookPro11,3"
VBoxManage setextradata macos_10_14_6_mojave "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata macos_10_14_6_mojave "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-2BD1B31983FE1663"
VBoxManage setextradata macos_10_14_6_mojave "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata macos_10_14_6_mojave "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

App Store URL for unlisted macOS versions

@ichisadashioko
ichisadashioko / readme.md
Created November 2, 2020 08:48
Python Software Foundation - GSOC

2018

Overview

Python is a programming language used by software developers and scientists.

Python is a popular high-level programming language used by scientists, developers, and many others who want to work more quickly and integrate ssytems more effectively. The Python Software Foundation serves as an umbrella organization to a variety of Python-related projects, as well as sponsoring projects related to the development of the Python language.

This year, our sub-orgs are: