wget -O vscode.deb https://code.visualstudio.com/sha/download\?build\=stable\&os\=linux-deb-arm64 && sudo apt install ./vscode.deb --fix-broken -y && rm vscode.deb
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
| function FindProxyForURL(url, host) { | |
| // ==================== 配置区域 ==================== | |
| // SOCKS5 代理配置 | |
| var PROXY = "SOCKS5 127.0.0.1:1080"; | |
| // 需要走代理的域名列表(支持通配符) | |
| var proxyDomains = [ | |
| "server-urule-prod.tidbi-it.cc", | |
| "server-urule-pre.tidbi-it.cc", |
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 | |
| eval "files=($(ls ./*/*))" | |
| for f in "${files[@]}"; do | |
| # printf '%s\n' "$f" | |
| # printf '%s\n' './wangwangduimp3/'"$f"'.mp3' | |
| ffmpeg -i $f -map 0:a -acodec libmp3lame -y './wangwangduimp3/'"$f"'.mp3' | |
| done |
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 | |
| parse_yaml() { | |
| local prefix=$2 | |
| local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034') | |
| sed -ne "s|^\($s\)\($w\)$s:$s\"\(.*\)\"$s\$|\1$fs\2$fs\3|p" \ | |
| -e "s|^\($s\)\($w\)$s:$s\(.*\)$s\$|\1$fs\2$fs\3|p" $1 | | |
| awk -F$fs '{ | |
| indent = length($1)/2; | |
| vname[indent] = $2; | |
| for (i in vname) {if (i > indent) {delete vname[i]}} |
在virtualbox中装好Ubuntu后,发现硬盘空间太小,怎样才能增加硬盘容量?那就是再建一个硬盘:
-
添加新硬盘
设置 -> Storage -> SATA控制器->右击,选择“添加虚拟硬盘”
然后,根据需求创建合适的硬盘
-
重启虚拟机
查看现有系统的磁盘空间
vim ~/lib/python3.6/dbm/gnu.py from
from _gdbm import *
to
from _dbm import *
yum -y install epel-release
yum -y update
yum install make gcc kernel-headers kernel-devel perl dkms bzip2
export KERN_DIR=/usr/src/kernels/$(uname -r)
mount -r /dev/cdrom /media
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
| VBoxManage modifyvm "vm" --hostonlyadapter5 vboxnetX | |
| VBoxManage modifyvm "vm" --nic5 hostonly | |
| VBoxManage modifyvm "vm" --hostonlyadapter6 vboxnetX | |
| VBoxManage modifyvm "vm" --nic6 hostonly |
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
| include RELEASE-VERSION | |
| include version.py | |
| # Anything else you normally use | |
NewerOlder