admin 2025-07-07, 10:34 AM
download ffmpeg file from https://www.gyan.dev/ffmpeg/builds/ >> around 56m bytes
unzip it 
converter video type from mkv to mp4
碼:
ffmpeg-2025-07-01-git-11d1b71c31-full_build\bin\ffmpeg.exe -i file1.mkv file2.mp4

split video by size??

split video by time
碼:
ffmpeg -i input.mp4 -ss 00:00:00 -to 00:10:00 -c copy output1.mp4
ffmpeg -i input.mp4 -ss 00:10:00 -to 00:20:00 -c copy output2.mp4
if you don't use -c copy , it will re-encode
This is an option to trim via stream copy. (NB: Very fast)
碼:
$ ffmpeg -i source.mp4 -ss    0 -t 600  first-10-min.mp4
$ ffmpeg -i source.mp4 -ss  600 -t 600 second-10-min.mp4
$ ffmpeg -i source.mp4 -ss 1200 -t 600  third-10-min.mp4
admin 2025-07-01, 10:03 AM
碼:
ssh-keygen -t rsa -b 4096 -C "user@zhtw.com" -f ~/.ssh/user_sshkey
cat ~/.ssh/user_sshkey.pub >> ~/.ssh/authorized_keys
chmod 700 ~/.ssh/authorized_keys



now root can login to user by
ssh user@127.0.0.1 -i /home/user/.ssh/user_sshkey
admin 2025-07-01, 09:50 AM
delete user
delete directory /home/username
delete username line in /etc/password
delete username line in /etc/group
碼:
sudo userdel -r username

add a new user
碼:
sudo adduser username

Note: do not use useradd command
admin 2025-06-24, 12:05 PM

  1. c# can do most of the thing in windows, 
  2. very easy to create a GUI tool in windows
  3. now it can create program for linux
admin 2025-06-24, 12:03 PM
https://www.python.org/downloads/

current version  Python 3.13.5
admin 2025-06-24, 11:58 AM
c 語言的區塊
碼:
if ( a > 1) {
    printf("hi\n");
    printf(" ... \n");
}
C 也可以寫成一整行
if ( a > 1) {  printf("hi\n");    printf(" ... \n");  }

python 的表示方式
碼:
if a>1 :
  print("hi")
  print(" ... ")

python 不可以寫成一整行
admin 2025-06-24, 11:51 AM
1. download the Visual studio community version
2. install the tools "VisualStudioSetup.exe"
  • remember to select c#
admin 2025-06-15, 04:48 PM
in windows, the key used by ssh need to change permission

引用:icacls oc1.key /inheritance:r
icacls oc1.key /grant "%username%":F
admin 2025-06-10, 09:10 AM
碼:
LANG=C xdg-user-dirs-update --force

1. open a terminal windows
2. type the above command
3. logout and login
頁面 (4): 1 2 3 4   
Welcome, Guest
You have to register before you can post on our site.
忘記密碼?
記住我?
 
Members: 8
Latest member: Jamescep
Forum threads: 55
Forum posts: 57
There are currently 10 online users. 0 Member(s) | 9 Guest(s)
Google
Latest Threads
ffmpeg video converter
Forum: 軟體 Software
Last Post: admin, 2025-07-07, 10:34 AM
Replies: 0 - Views: 6
linux ssh key gen
Forum: 程式語言 Programming language
Last Post: admin, 2025-07-01, 10:03 AM
Replies: 0 - Views: 15
linux del user and add us...
Forum: 程式語言 Programming language
Last Post: admin, 2025-07-01, 09:50 AM
Replies: 0 - Views: 19
why I suggest c#
Forum: c#
Last Post: admin, 2025-06-24, 12:05 PM
Replies: 0 - Views: 34
download python
Forum: python
Last Post: admin, 2025-06-24, 12:03 PM
Replies: 0 - Views: 41
python 使用 空格 或是 <tab> 來區...
Forum: python
Last Post: admin, 2025-06-24, 11:58 AM
Replies: 0 - Views: 42
prepare the developing en...
Forum: c#
Last Post: admin, 2025-06-24, 11:51 AM
Replies: 0 - Views: 33
小米手機 不更新軟體清單
Forum: 3C 電子產品 玩具
Last Post: admin, 2025-06-20, 08:55 AM
Replies: 0 - Views: 65
windows: ssh key 設定權限
Forum: 程式語言 Programming language
Last Post: admin, 2025-06-15, 04:48 PM
Replies: 0 - Views: 85
linux / ubuntu : change s...
Forum: 程式語言 Programming language
Last Post: admin, 2025-06-10, 09:10 AM
Replies: 0 - Views: 114
Powered By MyBB, © 2002-2025 MyBB Group.
Made with by Curves UI.