This file contains 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 | |
::::: C O N F I G ::::: | |
set source_path=D:\zh-tw_windows_server_2025_preview_x64_dvd_9b147dcd\sources | |
set driver_path=D:\Software\MegaRAID_Driver | |
set mount_path=C:\Dism_Mount | |
::::::::::::::::::::::: | |
cd "%source_path%" |
This file contains 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
main classes: | |
10000000 - Cross Site Scripting | |
20000000 - Cross Site Scripting (Extended) | |
30000000 - SQL Injection | |
40000000 - SQL Injection (Extended) | |
50000000 - Generic Attacks | |
60000000 - Generic Attacks(Extended) | |
70000000 - Trojans | |
80000000 - Information Disclosure | |
90000000 - Known Exploits |
This file contains 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 | |
set VHD_PATH=D:\data.vhdx | |
set NEW_SIZE_GB=2048 | |
set MOUNT_NAME=data | |
set WSL_DIST=Ubuntu | |
set /a NEW_SIZE_MB=%NEW_SIZE_GB%*1024 | |
echo: |
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\.jnlp] | |
@="jnlp_auto_file" | |
[HKEY_CLASSES_ROOT\jnlp_auto_file\shell\open\command] | |
@="\"C:\\Program Files\\ojdkbuild\\java-1.8.0-openjdk-1.8.0.332-1\\webstart\\javaws.exe\" \"%1\"" | |
This file contains 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
L3@p.Ah3@d |
This file contains 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
import struct | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from mpl_toolkits.basemap import Basemap | |
import cwbplot.cwb_colorbar as cwbcolor | |
##### C O N F I G ##### | |
fname_x = 'PPI_20220629074850_b_x_01_00.5' | |
fname_y = 'PPI_20220629074850_b_y_01_00.5' | |
fname_feild = 'PPI_20220629074850_bDZ_01_00.5' |
This file contains 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
import numpy as np | |
import matplotlib.pyplot as plt | |
from mpl_toolkits.basemap import Basemap | |
import netCDF4 as nc | |
# Note: Using "bin_to_nc.py" convert to NETCDF format first!! | |
##### C O N F I G ##### | |
ncfile = 'output.nc' | |
####################### |
This file contains 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
#Usage: https://cwbplot.readthedocs.io/en/dev/use_example.html#colorbar | |
#Put this file under same folder as your program | |
#and replace "import cwbplot.cwb_colorbar as cwbcolor" | |
#to "import cwb_colorbar as cwbcolor". | |
import matplotlib.colors as mcolors | |
def lightrain(tranp=0.5): | |
rain_light_temp = [[1. , 1. , 1. , 0.5 ], |
This file contains 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
########## N O T I C E ########## | |
#此版本尚未實做時間維度(TDEF)的轉換 | |
#因此只適用於轉換單一時間維度的檔案 | |
################################# | |
import numpy as np | |
import struct | |
import netCDF4 | |
import os, sys | |
import glob |
This file contains 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
def wissdom_getvar(filename, nx, ny, nz, feild_id): | |
#filename: wissdom_out bin檔位置 | |
#nx, ny, nz: 反演範圍大小,可參考Grads ctl檔的XDEF、YDEF、ZDEF | |
#feild_id: 欲讀取的參數場類別,可參考Grads ctl檔的VARS下面那一段 | |
# 照順序下來第一個參數場為0,第二個為1,以此類推 | |
# 常用0=u1, 1=v1, 2=w1, 3=u2, 4=v2, 5=w2 | |
#輸出為Numpy矩陣,維度是(nz, ny, nx) | |
data = [] | |
with open(filename,"rb") as f: | |
f.seek(4*nz*ny*nx*feild_id) #將指標偏移到欲讀取的參數場 |