Skip to content

Instantly share code, notes, and snippets.

🎧
Eat Sleep Code Repeat

Frank Hassanabad FrankHassanabad

🎧
Eat Sleep Code Repeat
Block or report user

Report or block FrankHassanabad

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@FrankHassanabad
FrankHassanabad / url-notes.txt
Created Jun 17, 2019
Links for ML jobs examples
View url-notes.txt
## Generic links from ML back to SIEM Application
#
# Several tests runs with each and adding/removing
# them to see which ones were effective
#
Network Overview Links
---
# Network Overview By User Name (KQL Query: user.name $user.name$)
@FrankHassanabad
FrankHassanabad / output.txt
Created Apr 22, 2019
Run Tests Repeatedly
View output.txt
running test for the 1 time with total 0 errors so far
running test for the 2 time with total 0 errors so far
running test for the 3 time with total 0 errors so far
running test for the 4 time with total 0 errors so far
running test for the 5 time with total 0 errors so far
running test for the 6 time with total 0 errors so far
running test for the 7 time with total 0 errors so far
running test for the 8 time with total 0 errors so far
running test for the 9 time with total 0 errors so far
running test for the 10 time with total 0 errors so far
View es_query_snippets.txt
#
# Full text queries
#
# Match all
GET /auditbeat-*/_search
{
"query": {
"match_all": {}
}
@FrankHassanabad
FrankHassanabad / aliases.sh
Last active Jan 10, 2019
Helpful aliases I use for kibana
View aliases.sh
export PLUGIN_NAME=secops
# Start kibana
alias start-kibana='cd $HOME/projects/kibana && yarn start --no-base-path'
# Start bootstrap
alias start-bootstrap='cd $HOME/projects/kibana && yarn kbn bootstrap'
# Start typecheck
alias start-type-check='cd $HOME/projects/kibana && node scripts/type_check.js'
View keybase.md

Keybase proof

I hereby claim:

  • I am frankhassanabad on github.
  • I am frankhassanabad (https://keybase.io/frankhassanabad) on keybase.
  • I have a public key ASCNJL2XvQ2jA2QIWsLLIbAz1Loxl3DzoUlhZ6TaFZDFjQo

To claim this, I am signing this object:

View rust_futures_examples.rs
extern crate futures;
use futures::{future, Future};
use std::*;
/// Returns an empty future, empty error
fn return_empty_result() -> impl Future<Item = (), Error = ()> {
future::lazy(|| future::ok::<(), ()>(()))
}
@FrankHassanabad
FrankHassanabad / medium_non_optimal_ui_3.sh
Last active Jul 27, 2018
For Non Optimal UI/UX medium article
View medium_non_optimal_ui_3.sh
http://localhost:8500/v1/kv/?recurse&pretty=true
...
{
"LockIndex": 0,
"Key": "application/configs/",
"Flags": 0,
"Value": null, <-- Wait, what's this null?
"CreateIndex": 73975,
"ModifyIndex": 73975
@FrankHassanabad
FrankHassanabad / medium_non_optimal_ui_2.sh
Created Jul 27, 2018
For Medium Article (Non Optimal UI/UX)
View medium_non_optimal_ui_2.sh
...
018-07-26T10:08:14.055-06:00 [INFO] [test_application] The parameter is incorrect
(application crashes)
...
@FrankHassanabad
FrankHassanabad / medium_non_optimal_ui.sh
Created Jul 27, 2018
For Medium Article (Non Optimal UI)
View medium_non_optimal_ui.sh
...
2018-07-25T09:55:09.851-06:00 [INFO] [test_application] setting to
...
View bathroom-correction-at-work.py
import math
# This as written will fail saying 1 and 4 are prime.
# Those two numbers are not prime.
# Also, checking up to square root is more efficient.
def IsPrime(n):
if (n == 1 or n == 4):
return False
for divisor in range(2, int(math.ceil(math.sqrt(n)))):
if n % divisor == 0:
You can’t perform that action at this time.