This file contains hidden or 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
#!/bin/bash | |
scriptname="makgif" | |
FILEPATH=$1 | |
FILENAME=$(basename "$FILEPATH") | |
EXTENSION="${FILENAME##*.}" | |
NULLPATH=${FILEPATH%/*} | |
OUTPUTNAME=$(echo "$FILENAME".gif | sed "s/ /_/g" | sed "s/.$EXTENSION//g") | |
NULLPATH=${FILEPATH%/*} |
This file contains hidden or 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
#!/bin/bash | |
dirpath="/path/to/directory" | |
cd "$dirpath" | |
url=$1 | |
startTimestamps=$2 | |
endTimestamps=$3 | |
scriptname="segytb" |
This file contains hidden or 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
#!/bin/bash | |
cd "$(dirname "$0")" | |
echo "拖拽文件" | |
read filepath | |
fullname=$(basename $filepath) | |
filename=${fullname%.*} | |
nullpath=${filepath%.*} |
This file contains hidden or 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
#!/bin/sh | |
printf '\033[8;60;172t' | |
clear | |
LocalScriptVer="v1.0.5" | |
RemoteScriptVer="" | |
RemoteScriptPath="https://raw.githubusercontent.com/crazybirdy/MBR-Manual-Method/master/Q6-DownloadFullApp" | |
LocateScriptPath="$HOME/Desktop/" | |
ScriptName="installScript_110fullapp" |
This file contains hidden or 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
# Netflix 倍速 JavaScript 命令 | |
# 已在 Safari/Chrome/Edge 浏览器下测试有效 | |
# 使用方法:调用开发者工具 - 控制台 | |
# Netflix Custom Playback Rate Javascript Command | |
# Usage: you shall enter the command at the developer tool - console | |
# The command has been tested vaild on Safari/Chrome/Edge browsers. | |
# 示例/Examle: document.querySelector ('video').playbackRate = 1.6, 1.6 could be any float value |
This file contains hidden or 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
#Aliases | |
#Alias for uPic application | |
alias upic='/Applications/uPic.app/Contents/MacOS/uPic' | |
#Check if gif_temp existence and upload if true, and copy generated url link to clipboard | |
alias ugif=' | |
file=~/Desktop/gif_temp.gif; | |
if [ -e "$file" ]; then | |
echo "File exists"; |
This file contains hidden or 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
PATH=/users/<YOUR_USER_NAME>/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
*/10 * * * * cd ~/.scripts && ./oracle.sh > ~/.scripts/log/oracle.log 2>&1 |
This file contains hidden or 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
https://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/9d/2020liuyi_zhifeiji_thumb.png | |
https://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/f4/2020liuyi_bangbangtang_thumb.png | |
https://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/02/hot_wuhanjiayou_thumb.png | |
https://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/6d/2018new_zhongguozan_org.png | |
https://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/42/2018new_baobao_thumb.png | |
https://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/62/2018new_tanshou_org.png | |
https://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/75/2018new_gui_org.png | |
https://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/b3/hot_wosuanle_thumb.png | |
https://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/23/dianying_huamulan_thumb.png | |
https://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/4d/chuangzaoying_shoushi_thumb.png |
This file contains hidden or 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
#!/bin/bash | |
#change working directory to Desktop | |
cd ~/Desktop | |
# remove any previously existing compressed files | |
rm -f WeChat_history* | |
# generate the new updated | |
tar -vczf ~/Desktop/WeChat_history$(date +%F_%R).tgz ~/Library/Containers/com.tencent.xinWeChat/Data/Library/Application\ Support/com.tencent.xinWeChat |