- F1 score (20191107)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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*
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Heroes Lore | |
Winds of Soltia | |
============================================================================= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tqdm | |
numpy | |
matplotlib | |
tornado | |
opencv-python | |
beautifulsoup4 | |
pandas | |
jupyter | |
autopep8 | |
pylint |
create an empty file with the name ssh
in the boot
partition
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
OlderNewer