- [] radare2 - brew
- [] cutter (radare2) - brew cask
- [] ghidra - brew cask
- [] ida-free - brew cask
- [] nmap - brew
- [] proxychains - brew (https://gist.github.com/allenhuang/3792521)
- [] sqlmap - brew
- [] powershell - brew cask
- [] impacket scripts - git
- [] powersploit - git
This file contains hidden or 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
<?php | |
// php-reverse-shell - A Reverse Shell implementation in PHP | |
// Copyright (C) 2007 [email protected] | |
// | |
// This tool may be used for legal purposes only. Users take full responsibility | |
// for any actions performed using this tool. The author accepts no liability | |
// for damage caused by this tool. If these terms are not acceptable to you, then | |
// do not use this tool. | |
// | |
// In all other respects the GPL version 2 applies: |
This file contains hidden or 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
(defun mean (sequence) | |
(/ (reduce #'+ sequence) (length sequence))) | |
(defun variance (sequence) | |
(let ((m (mean sequence)) | |
(n (length sequence))) | |
(/ (reduce #'+ (map 'vector (lambda (x) (expt (- x m) 2)) sequence)) | |
(length sequence)))) | |
(defun std-dev (sequence) |
This file contains hidden or 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 yfinance as yf | |
import numpy as np | |
def get_data(ticker, start_date, end_date): | |
stock_data = yf.download(ticker, start=start_date, end=end_date) | |
return stock_data['Adj Close'] | |
def compute_beta(stock_prices, index_prices): | |
stock_returns = stock_prices.pct_change().dropna() | |
index_returns = index_prices.pct_change().dropna() |
This file contains hidden or 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
(defun run-today-p () | |
"Should we run zalgo today?" | |
(local-time:with-decoded-timestamp | |
(:day-of-week weekday :day today-day) (local-time:now) | |
(when (or (= weekday 0) (= weekday 6)) (return-from run-today-p nil)) | |
(let ((markets-list (get-markets-list))) | |
(loop for market in markets-list | |
do (if (string= (gethash "name" market) "NYSE") | |
(local-time:with-decoded-timestamp | |
(:day d) (local-time:parse-timestring (gethash "startTime" market)) |
This file contains hidden or 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
;;;;; this goes into init.el | |
(defvar bootstrap-version) | |
(let ((bootstrap-file | |
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) | |
(bootstrap-version 6)) | |
(unless (file-exists-p bootstrap-file) | |
(with-current-buffer | |
(url-retrieve-synchronously | |
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el" |
This file contains hidden or 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
{ | |
"data": { | |
"values": [ | |
{ | |
"date": "2020-12-31", | |
"open": 12852.959961, | |
"high": 12904.089844, | |
"low": 12804.75, | |
"close": 12888.280273, | |
"adjClose": 12888.280273, |
We can't make this file beautiful and searchable because it's too large.
This file contains hidden or 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
spxdate,open,high,low,close | |
1990-01-02,353.3999938964844,359.69000244140625,351.9800109863281,359.69000244140625 | |
1990-01-03,359.69000244140625,360.5899963378906,357.8900146484375,358.760009765625 | |
1990-01-04,358.760009765625,358.760009765625,352.8900146484375,355.6700134277344 | |
1990-01-05,355.6700134277344,355.6700134277344,351.3500061035156,352.20001220703125 | |
1990-01-08,352.20001220703125,354.239990234375,350.5400085449219,353.7900085449219 | |
1990-01-09,353.8299865722656,354.1700134277344,349.6099853515625,349.6199951171875 | |
1990-01-10,349.6199951171875,349.6199951171875,344.32000732421875,347.30999755859375 | |
1990-01-11,347.30999755859375,350.1400146484375,347.30999755859375,348.5299987792969 | |
1990-01-12,348.5299987792969,348.5299987792969,339.489990234375,339.92999267578125 |
This file contains hidden or 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
(defun sum(l) | |
(reduce #'+ l)) | |
(defun avg (a &rest rest) | |
(/ (apply #'+ a rest) (+ 1 (length rest)))) | |
(defun fact(n) | |
(if (or (= n 1) (= n 0)) | |
1 | |
(* n (fact (- n 1))))) |
This file contains hidden or 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
108.162.219.193 - - [08/Jun/2020:03:47:03 +0000] "GET /?type=shoutcast&ip=scj.jejestreaming.com&port=9000&cover_t=large&mount=&ruid=&json=1 HTTP/1.1" 200 396 "-" "-" | |
108.162.219.107 - - [08/Jun/2020:03:47:16 +0000] "GET /?type=shoutcast&ip=scj.jejestreaming.com&port=8242&cover_t=large&mount=&ruid=&json=1 HTTP/1.1" 200 396 "-" "-" | |
162.158.63.173 - - [08/Jun/2020:03:47:25 +0000] "GET /?type=shoutcast&ip=scj.jejestreaming.com&port=9000&cover_t=large&mount=&ruid=&json=1 HTTP/1.1" 200 396 "-" "-" | |
173.245.52.74 - - [08/Jun/2020:03:47:31 +0000] "GET /?type=shoutcast&ip=scj.jejestreaming.com&port=8242&cover_t=large&mount=&ruid=&json=1 HTTP/1.1" 200 396 "-" "-" | |
108.162.219.115 - - [08/Jun/2020:03:47:47 +0000] "GET /?type=shoutcast&ip=scj.jejestreaming.com&port=8242&cover_t=large&mount=&ruid=&json=1 HTTP/1.1" 200 396 "-" "-" | |
162.158.63.115 - - [08/Jun/2020:03:47:47 +0000] "GET /?type=shoutcast&ip=scj.jejestreaming.com&port=9000&cover_t=large&mount=&ruid=&json=1 HTTP/1.1" 200 396 "-" "-" | |
162.158.63.203 - - [08/Jun/2020: |