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
| # sudo apt install -y linux-tools-$(uname -r) | |
| sudo apt install -y linux-tools-generic | |
| # sudo turbostat --interval 1 --debug | |
| sudo turbostat -s Core,CPU,Avg_MHz,Busy%,Bzy_MHz,TSC_MHz,CoreTmp,PkgTmp,PkgWatt -c core -i 1 | |
| while :; do :; 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 | |
| sudo apt-get -y update | |
| sudo apt-get -y upgrade | |
| sudo apt-get -y dist-upgrade | |
| sudo do-release-upgrade |
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.microsoft.com/en-us/download/details.aspx?id=17062 | |
| -- https://supportdownloads.adobe.com/detail.jsp?ftpID=5542 | |
| -- https://helpx.adobe.com/acrobat/kb/pdf-search-breaks-110-install.html | |
| -- add C:\Program Files\Adobe\Adobe PDF iFilter 11 for 64-bit platforms\bin to PATH | |
| EXEC sp_fulltext_service 'verify_signature', 0 | |
| EXEC sp_fulltext_service 'load_os_resources', 1 | |
| EXEC sp_fulltext_service 'Restart_all_fdhosts' | |
| EXEC sp_help_fulltext_system_components 'filter' |
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
| Welcome to NVIDIA DGX Station Version 4.0.7 (GNU/Linux 4.15.0-47-generic x86_64) | |
| user@user-DGX-Station:~$ lscpu | |
| Architecture: x86_64 | |
| CPU op-mode(s): 32-bit, 64-bit | |
| Byte Order: Little Endian | |
| CPU(s): 40 | |
| On-line CPU(s) list: 0-39 | |
| Thread(s) per core: 2 | |
| Core(s) per socket: 20 | |
| Socket(s): 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
| sp_configure 'show advanced options' | |
| go | |
| sp_configure 'show advanced options', 1 | |
| go | |
| RECONFIGURE | |
| go | |
| sp_configure 'max full-text crawl range' | |
| go | |
| sp_configure 'max full-text crawl range', 16 | |
| go |
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
| from keras import backend as K | |
| import tensorflow as tf | |
| config = tf.ConfigProto() | |
| config.gpu_options.allow_growth = True | |
| session = tf.Session(config=config) | |
| K.set_session(session) | |
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
| # 顯示目前mirror | |
| cat /etc/apt/sources.list | grep main | awk '{ print $2 }' | cut -d'/' -f3 | sed -n '3P' | |
| # 國網中心 | |
| sudo sed -i 's/archive.ubuntu.com/tw.archive.ubuntu.com/g' /etc/apt/sources.list |
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
| USE [master]; | |
| GO | |
| CREATE DATABASE [TaiwanBioBank] | |
| CONTAINMENT = NONE | |
| ON PRIMARY ( | |
| NAME = N'TaiwanBioBank' | |
| , FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA\TaiwanBioBank.mdf' | |
| , SIZE = 8192 KB | |
| , FILEGROWTH = 65536 KB |
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
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| using (var reader = OleDbEnumerator.GetRootEnumerator()) | |
| { | |
| var colIndex = 0; | |
| for (int i = 0; i < reader.FieldCount; i++) | |
| { | |
| if (reader.GetName(i) == "SOURCES_NAME") |
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
| tensorflow 1.4.0 on windows with avx2 & cuda 9.1 & cudnn 7 by cmake | |
| win 10 1703 | |
| git 2.14.1 | |
| cmake 3.9.6 | |
| anaconda3 5.0.0 | |
| cuda 9.1.85 | |
| cudnn 7.0.5 with cuda9.1 | |
| visual studio 2017 15.4 (msvc 1911) | |
| # Note vs 15.5 (msvc 1912) didn't work with cuda 9.1.85 |