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
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 |
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
#! /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 |
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
#!/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 () { |
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
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 |