sh -c "$(curl -fsSL https://gist.githubusercontent.com/sarkrui/ae2dcd9698665c92387336fca3b9cd65/raw/a6b00b901b8d1ef8a6b83178aff4aa38ca97c8d9/install.sh"
Please use Better BibTeX for Zotero to generate the URLs of your literature collections.
on run {input, parameters}
Get a list of collections using:
https://api.zotero.org/users/[USER ID]/collections?key=[API KEY]
Where:
[USER ID]
: Listed here: https://www.zotero.org/settings/keys[API KEY]
: Create one here: https://www.zotero.org/settings/keys
Find the "key" attribute corresponding to the collection you want to use. This is your [COLLECTION ID]
.
Then, in Overleaf, create a new file. Select "From External URL", then insert the following URL:
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 | |
file=$1 | |
pre="IP-CIDR," | |
suff=",no-resolve" | |
ext="list" | |
name=`echo "$1" | cut -d'.' -f1` | |
release=${name}.${ext} | |
echo "Exporting to ${release}..." |
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
vgdisplay | |
lvextend /dev/mapper/centos-root -L +20G | |
resize2fs /dev/mapper/centos-root | |
xfs_growfs /dev/mapper/centos-root | |
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
#!/usr/bin/env bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
#================================================= | |
# System Required: CentOS 7/8,Debian/ubuntu,oraclelinux | |
# Description: BBR+BBRplus+Lotserver | |
# Version: 1.3.2.78 | |
# Author: 千影,cx9208,YLX | |
# 更新内容及反馈: https://blog.ylx.me/archives/783.html | |
#================================================= |
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 | |
# Author:Nahsoagoac | |
# 更换centos服务器yum源和epel源 | |
if [ ! -f /etc/redhat-release ]; then | |
OS='ubuntu' | |
else | |
CENTOS_VER=$(rpm -q centos-release|cut -d- -f3) | |
fi |
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
IP-CIDR,3.7.35.0/25,no-resolve | |
IP-CIDR,3.21.137.128/25,no-resolve | |
IP-CIDR,3.22.11.0/24,no-resolve | |
IP-CIDR,3.23.93.0/24,no-resolve | |
IP-CIDR,3.25.41.128/25,no-resolve | |
IP-CIDR,3.25.42.0/25,no-resolve | |
IP-CIDR,3.25.49.0/24,no-resolve | |
IP-CIDR,3.80.20.128/25,no-resolve | |
IP-CIDR,3.96.19.0/24,no-resolve | |
IP-CIDR,3.101.32.128/25,no-resolve |
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
``` | |
cat *.config | grep -v '^#' | grep -v '^[[:space:]]*$' | |
``` |
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 | |
videoFMT=.mov | |
audioFMT=.aac | |
absAudio(){ | |
for i in *$videoFMT;do | |
# ffmpeg -i $i -vn -ar 44100 -ac 2 -ab 320k -f mp3 $i.mp3; | |
ffmpeg -i $i -vn -acodec copy $i.aac; | |
mv "$i$audioFMT" "$(echo "$i$audioFMT" | sed -r "s/$videoFMT//")" ; |