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
apt-get purge netplan.io | |
/etc/rc.local | |
ip -6 route add 2604:180:3::1 dev ens3 | |
ip -6 route add default via 2604:180:3::1 | |
/etc/systemd/network/10-ens3.network |
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
// ==UserScript== | |
// @name 河北云教育挂课加速器 www.hebyunedu.com | |
// @namespace Violentmonkey Scripts | |
// @version 1.1 | |
// @description 河北云教育平台学习课件加速助手 | |
// @match http://www.hebyunedu.com/lms/learning/courseware/* | |
// @require http://libs.baidu.com/jquery/2.0.0/jquery.min.js | |
// @grant none | |
// ==/UserScript== | |
(function(){ |
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
八号字 5 | |
七号字 5.5 | |
小六 6.5 | |
六号 7.5 | |
小五 9 | |
五号 10.5 | |
小四 12 | |
四号 14 | |
小三 15 | |
三号 16 |
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
git stash create | |
git archive --worktree-attributes --verbose --format=tar.gz --prefix="openssl-1.1.1b-dev/" HEAD > "openssl-1.1.1b-dev.tar.gz" | |
git archive --worktree-attributes --verbose --format=tar.gz --prefix="openssl-1.1.1c-dev/" f31b2ceb9560f46cbef98ff84227c7f7f0e1516f > "openssl-1.1.1c-dev.tar.gz" | |
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
Oracle11gR2中空表是不会分配segment的。当含有空表,使用exp导出整个用户的时候报EXP-00003: no storage definition found for segment(0, 0)错误。 | |
解决办法: | |
方法一:如果有些表数据量较大,在分析数据量上花费的时间较多。总体来说推荐这种方法 | |
1、重新分析表的数据量,因为num_rows行数并不是准确的行数。 | |
SELECT 'analyze table ' || TABLE_NAME || ' compute statistics;' FROM USER_TABLES; | |
2、生成以下动态SQL,之后执行查询生成结果。 | |
select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0; |
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://www.google.com/intl/zh-CN/chrome/browser/?system=true&standalone=1&platform=win64 | |
If you want to install Chrome for your own user account: | |
Download Google Chrome Full Standalone Offline Installer (32-bit) | |
https://www.google.com/chrome/eula.html?standalone=1&platform=win | |
Download Google Chrome Full Standalone Offline Installer (64-bit) |
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
the first step in the process would be to disable apport. | |
This can be done by editing the /etc/default/apport file, and setting enabled=0. | |
systemctl stop apport | |
systemctl disable apport | |
Then change kernel core_pattern | |
echo "kernel.core_pattern=/tmp/%e.%t.%p.%s.core" > /etc/sysctl.d/60-core-pattern.conf | |
sysctl --system |
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
@ECHO OFF | |
echo . | |
echo Simple Script to Hard reset Windows updates | |
echo . | |
PAUSE | |
echo . | |
net stop bits | |
net stop wuauserv | |
net stop appidsvc | |
net stop cryptsvc |
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 | |
export GOPATH=$PWD/transsocks | |
GOOS=linux GOARCH=amd64 go build -a -ldflags="-s -w" github.com/cybozu-go/transocks/... | |
GOOS=linux GOARCH=amd64 go install -a -ldflags="-s -w" github.com/cybozu-go/transocks/... |
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
两台电脑均从救援/备用系统启动,并挂掉原/新根目录到 /mnt。联网并在旧系统启动 sshd,然后: | |
``` | |
rsync -aviHAXKh --partial --delete old_computer:/mnt /mnt | |
``` | |
然后装引导、写引导配置,改 /etc/fstab,重启。 |