Skip to content

Instantly share code, notes, and snippets.

View datascientist1976's full-sized avatar

c1ph3r_5h3ll datascientist1976

  • United States Of America
View GitHub Profile
@datascientist1976
datascientist1976 / userscript.js
Created February 24, 2025 02:47 — forked from lfhbento/userscript.js
Download all your Kindle books before Feb 26, 2025
// ==UserScript==
// @name Kindle Download
// @namespace http://tampermonkey.net/
// @version 2025-02-20
// @description Download all your kindle books
// @author You
// @match https://www.amazon.com/hz/mycd/digital-console/contentlist/booksPurchases/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=amazon.com
// @grant none
// ==/UserScript==
@datascientist1976
datascientist1976 / userscript.js
Created February 24, 2025 02:47 — forked from JohanKlos/userscript.js
Download all your Kindle books before Feb 26, 2025
// ==UserScript==
// @name Amazon Kindle Auto-Downloader (Start/Stop Buttons)
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Adds Start/Stop buttons to automatically download Kindle books from each page
// @author
// @match https://www.amazon.com/hz/mycd/digital-console/contentlist/booksPurchases/dateDsc?pageNumber=*
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_addStyle
@datascientist1976
datascientist1976 / grokking_to_leetcode.md
Created March 28, 2022 21:20 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

How to pass the OSCP

  1. Recon
  2. Find vuln
  3. Exploit
  4. Document it

Recon

Unicornscans in cli, nmap in msfconsole to help store loot in database.

@datascientist1976
datascientist1976 / latency.txt
Created June 29, 2021 21:36 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@datascientist1976
datascientist1976 / MinGW-w64.sublime-build
Created May 16, 2020 16:34 — forked from sagebind/MinGW-w64.sublime-build
Sublime Text 3 C++ build system for mingw-w64
{
"cmd": ["g++", "-o", "${file_path}/${file_base_name}.exe", "-static-libgcc", "-static-libstdc++", "*.cpp"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.cpp, source.c++",
"path": "c:/Program Files/mingw-w64/mingw64/bin",
"shell": true,
"variants": [
{
"name": "Run",
@datascientist1976
datascientist1976 / README.md
Created June 9, 2019 23:39 — forked from m-kyle/README.md
A tutorial for learning how to use git and GitLab

GitLab Tutorial

This document is still a work in progress. It will be used as a tutorial to help explain the basics of Git and GitLab to users unfamiliar with them.

Table of Contents

Git

@datascientist1976
datascientist1976 / System Design.md
Created December 4, 2018 02:18 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?