Skip to content

Instantly share code, notes, and snippets.

View Thell's full-sized avatar

Thell 'Bo' Fowler Thell

  • Pyrapat Inc.
  • Arkansas, USA
View GitHub Profile
const axios = require('axios')
/**
* To get your TradeAuth_Session and __RequestVerificationToken cookies,
* you need to login to your region's web trade market.
*
* Below is a list of all regions and their respective web market URLs, choose
* your region and login to the web market. Once logged in, open your DevTools
* (in Chrome: Ctrl + Shift + I or F12) and click the Network tab.
*
* On the Web Market, click on a category and then subcategory from the
@p-rs
p-rs / 0_ubuntu_opencti_installer.sh
Last active August 19, 2022 12:37
Automates install OpenCTI based on manual deployment: https://www.notion.so/Manual-deployment-b911beba44234f179841582ab3894bb1 - Tested successfully on Ubuntu 18.04/20.04 and OpenCTI 3.3.2
#! /bin/bash -e
# script: ubuntu_opencti_installer.sh
# purpose: to automate install opencti based on manual deployment below
# process: https://www.notion.so/Manual-deployment-b911beba44234f179841582ab3894bb1
# disclaimer: script is written for testing and runs as root
# check the code and use at your own risk!
# The author is not liable for any damages or unexpected explosions!
# license: Apache 2.0
@Thell
Thell / apt-fast-progress.sh
Last active March 19, 2022 19:16
Aria2 rpc based progress monitor for apt-fast in non-interactive shells.
#!/bin/sh
# Aria2 rpc based progress output for apt-fast
# trigger using --on-download-complete callback.
# Provide bytesNeeded in the parent environment...
# apturis=$(apt-get -qq --print-uris "$@")
# export DLLISTBYTES=$( echo "$apturis"| awk -F " " '{bytes+=$3} END{print bytes}' )
aria2_rpc () {
@jboner
jboner / latency.txt
Last active May 7, 2024 19:39
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