全部 创建

user:thomas 由用户创建的gist

title:mygist 给定标题的gist

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

登录


全部 创建 登录

所有 Gists

最近 创建
最早 创建
最近 更新
最早 更新
airikr's Avatar

airikr / Useful bash scripts

0 喜欢
0 派生
1 文件
最后活跃于 1741877163
These are my number one bash scripts. I can't live without them.
1 alias install_no="sudo pacman -Sy"
2 alias install_ya="yay -S --noconfirm"
3 alias backupvps="rsync -avhzr --delete --progress --rsh='ssh -p22' user@ip:/ --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found","/swapfile","/boot/*"} /to/dir/"
4
5
6 # Compress a video with CUDA acceleration (GPU from NVIDIA is required)
7 function reducevideo {
8 ffmpeg -hwaccel cuda -i "$1" -c:v libx265 -vtag hvc1 -c:a copy "$2"
9 }
airikr's Avatar

airikr / age

0 喜欢
0 派生
1 文件
最后活跃于 1714041313
Calculate the age of someone or something.
1 <?php
2
3 # Add the time for a more accurate calculation.
4 # The time format must be a string if it begins with a zero (0)
5
6 function age($year, $month, $day, $time = null) {
7 if(!is_numeric($year) OR !is_numeric($month) OR !is_numeric($day)) {
8 return 'XX';
9
10 } else {
更新 更早

由 Opengist 强力驱动 ⋅ Load: 29ms⋅

中文
Čeština Deutsch English Español Français Magyar Italiano Português Русский Türkçe Українська 中文 繁體中文