Skip to content

Instantly share code, notes, and snippets.

View ichisadashioko's full-sized avatar

shioko ichisadashioko

View GitHub Profile
import os
import re
def count_code_lines(fpath):
count = 0
if os.path.isdir(fpath):
file_list = os.listdir(fpath)
for fname in file_list:
child_path = os.path.join(fpath, fname)
  • Find system's touchpad driver
zgrep -i touchpad /var/log/dmesg*
Heroes Lore
Winds of Soltia
=============================================================================

Here is an List from all Console-Commands.

Commands for Center

/gp <option>

Example:

ffmpeg -hwaccel_device 0 -hwaccel cuvid -c:v h264_cuvid -i input -vf scale_npp=-1:720 -c:v h264_nvenc -preset slow output.mkv
ffmpeg -hwaccel_device 0 -hwaccel cuvid -i 00.mp4 00.mp3
ffmpeg -hwaccel_device 1 -hwaccel cuvid -i 00.mp4 00.mp3
Xcopy /E /I %userprofile%/AppData/Roaming D:/Programs/AppData/Roaming
rmdir /Q /S %userprofile%/AppData/Roaming
mklink /J %userprofile%/AppData/Roaming D:/Programs/AppData/Roaming
@ichisadashioko
ichisadashioko / requirements.txt
Last active April 19, 2020 12:44
List of packages for newly installed Python
tqdm
numpy
matplotlib
tornado
opencv-python
beautifulsoup4
pandas
jupyter
autopep8
pylint
@ichisadashioko
ichisadashioko / instruction.md
Last active October 9, 2020 06:28
prepare new os for raspberry pi

Enable SSH before first boot (headless)

create an empty file with the name ssh in the boot partition

Setup Wifi before first boot (headless)

create a file named wpa_supplicant.conf in the boot partition. more details about wpa_supplicant

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
@ichisadashioko
ichisadashioko / modify_bashrc
Last active February 3, 2021 03:51
setup fresh ubuntu machine
# shorten bash cwd path
PROMPT_DIRTRIM=1
# make * select dot files
shopt -s dotglob
alias aup="sudo apt update"
alias ain="sudo apt install"
alias ll="ls -la"