Linux command

find -name '*.conf' -exec grep 'server.pem' {} + grep ERROR splunkd.log | awk '{count[$5]++} END {for (ERROR in count) print ERROR, count[ERROR]}' | sort -k2 -nr dd if=/dev/zero of=/opt/splunk/var/lib/splunk/tmptestfile bs=8k count=$((4*1024*1024/8)) conv=fdatasync,fsync oflag=direct

openssl command:

openssl s_client -showcerts -connect 10.10.10.10:9997 openssl x509 -noout -in server.pem -text

SH Knowledge bundles:

distsearch.conf -- SH side maxBundleSize server.conf - IDX side max_content_length Knowledge bundles locations: SH -- var/run/*.bundle or *.delta IDX-- var/run/searchpeer *.bundle or *.delta

CL Auto git steps:

1. git add -A 2. git commit -m "" 3. git status 4. git push -u origin master 5. git pull

Python to get the stock prices

import yfinance as yf stockcode = ["MSFT", "AAPL", "SPLK", "CSCO", "GOOG", "TSLA", "NOK"] stocks = [] for item in stockcode: #print(item) s = yf.Ticker(item) stock_instance = { "code": item, "website": s.info['website'], "price": s.info['regularMarketPrice'] } stocks.append(stock_instance) #print(s.info['website']) #print(stock_instance) print(stocks)

Git commands

echo "#Django" >> README.md git init git add README.md git commit -m "first commit" git branch -M master git remote add https://github.com/appletreecy/Django.git git push -u origin master git pull

First Previous 2 3 4 5 6 Next Last

Our Sidebar

You can put any information here you'd like.

  • Latest Posts
  • Announcements
  • Calendars
  • etc