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
| public static class EnumExtensions | |
| { | |
| /// <summary> | |
| /// Gets all items for an enum value. | |
| /// </summary> | |
| /// <typeparam name="T"></typeparam> | |
| /// <param name="value">The value.</param> | |
| /// <returns></returns> | |
| public static IEnumerable<T> GetAllItems<T>(this Enum 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
| #!/bin/sh | |
| # You could also use a script as your XferCommand | |
| # in pacman.conf: XferCommand = /usr/local/bin/pacman-downloadhelper.sh %o %u | |
| # usage: pacman-downloadhelper %o %u | |
| outfile=$1 | |
| url=$2 | |
| # print debug output for the xfercommand | |
| set -x |
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 |