2023年1月18日 星期三

Eightnight queeue problem

 # Online Python compiler (interpreter) to run Python online.

# Write Python 3 code in this online editor and run it.

def isValid(board, row, col):

    for i in range(row):

        if board[i] == col or abs(board[i] - col) == abs(i - row):

            return False

    return True


def eightQueens(board, row):

    print(f"borad: {board}, row: {row}")

 

    if row == 8:

        print("finally:")

        print(board)

        print("-"*20)

        return


    for i in range(8):

        if isValid(board, row, i):

            board[row] = i

            eightQueens(board, row + 1)


eightQueens([-1] * 8, 0)



2023年1月12日 星期四

IP network tools

 1. mask table

https://ithelp.ithome.com.tw/questions/10153316

OneFS guideline

 1.  version release note

https://www.delltechnologies.com/asset/en-us/products/storage/industry-market/h18031-wp-powerscale-onefs-prior-release-contents.pdf.external


2. cve

https://cve.report/software/dell/emc_powerscale_onefs


3. cmd line

https://www.delltechnologies.com/asset/en-us/products/storage/technical-support/docu95371.pdf


4. network design

https://www.delltechnologies.com/asset/en-us/products/storage/industry-market/h16463-isilon-advanced-networking-fundamentals.pdf


2023年1月10日 星期二

sqlit command

 https://sqlite.org/cli.html

junos

 1. Fw filter

https://www.juniper.net/documentation/us/en/software/junos/routing-policy/topics/concept/firewall-filter-stateless-guidelines-for-configuring.html

firewall {
    family family-name {
        filter filter-name {
            accounting-profile name; 
            instance-shared;
            interface-specific; 
            physical-interface-filter; 
            term term-name {
                filter filter-name; 
            }
            term term-name {
                from {
                    match-conditions; 
                    ip-version ip-version { 
                        match-conditions;
                        protocol (tcp | udp) {
                            match conditions; 
                        }
                    }
                }
                then {
                    actions;
                }
            }
        }
    }
}

2. From condition
https://www.juniper.net/documentation/us/en/software/junos/routing-policy/topics/concept/firewall-filter-match-conditions-for-ipv4-traffic.html

3. List keyword 
https://www.juniper.net/documentation/us/en/software/junos/routing-policy/topics/ref/statement/then-firewall-filter-ex-series.html

2023年1月3日 星期二

nano usage

 https://phoenixnap.com/kb/use-nano-text-editor-commands-linux