Skip to content

Instantly share code, notes, and snippets.

@Abreto
Abreto / crystal-disk-mark-fio-bench.sh
Created December 27, 2022 12:55 — forked from O1ahmad/crystal-disk-mark-fio-bench.sh
CrystalDiskMark-esque Disk Benchmark (using fio)
#!/bin/bash
LOOPS=5 #How many times to run each test
SIZE=1024 #Size of each test, multiples of 32 recommended for Q32 tests to give the most accurate results.
WRITEZERO=0 #Set whether to write zeroes or randoms to testfile (random is the default for both fio and crystaldiskmark); dd benchmarks typically only write zeroes which is why there can be a speed difference.
QSIZE=$(($SIZE / 32)) #Size of Q32Seq tests
SIZE+=m
QSIZE+=m
@Fartomy
Fartomy / ytshorts.md
Created January 11, 2024 17:30
Destroy YouTube Shorts

🔴🤯 Destroy YouTube Shorts

Do yourself a favor and follow the steps below to get rid of this curse:

Steps

  1. Install uBlock Origin Extension
  2. Go to settings
  3. Open the My Filters option
  4. Copy and paste it in there
@dhondta
dhondta / README.md
Last active May 13, 2024 16:44
Tinyscript steganography tool implementing the Pixel Value Differencing algorithm

StegoPVD

This Tinyscript-based tool allows to apply steganography based on PVD (Pixel Value Differencing) in order to retrieve hidden data from an image.

$ pip install tinyscript
$ tsm install stegopvd

You nerd <3
object(WP_Styles)[749]
public 'base_url' => string 'http://fse.local' (length=21)
public 'content_url' => string 'http://fse.local/wp-content' (length=32)
public 'default_version' => string '5.9.2' (length=5)
public 'text_direction' => string 'ltr' (length=3)
public 'concat' => string '' (length=0)
public 'concat_version' => string '' (length=0)
public 'do_concat' => boolean false
import twilio from "twilio";
async function wait(second) {
return new Promise((resolve) => {
setTimeout(resolve, second * 1000);
});
}
async function makeCall(event) {
const accountSid = "";
@baymaxium
baymaxium / content.md
Created October 18, 2017 08:31
闲扯比特币套利交易系统的设计

原文:程序人生

关于比特币套利交易的文章,坊间一搜一大堆,尤以 2014,2015 为甚。那时交易所间价差相当可观,套利的机会很多,躺着赚钱并非难事。如今,套利区间收窄,留在沙场上的估计只剩下大玩家,想要不费力气躺赢机会渺茫。最近帮朋友牵线寻找币圈量化交易的机会,本欲做个打酱油的中间人,事了拂衣去,安安静静做个三河市微胖界扛把子,谁料还是一时技痒,不小心昨夜搭进去六七个小时。

关于如何做套利交易,我就不赘述,大家可以看这篇文章,有内容有故事:https://daily.zhihu.com/story/4831821。

本文没有故事,只有技术和产品上的分析。

既然要做可行性分析,那么第一步就是观察交易数据。国内的交易市场虽然在政策要求下清场出局,国外的交易市场还算红火。从 bitfinex,kraken 一路到 bithumb,korbit 等,都提供 rest API,少量提供 websocket 接口。虽然文档欠缺,但这些接口都很简单,上手并不困难。

@v1mkss
v1mkss / JetBrains Activation.md
Last active May 13, 2024 16:36
JetBrains Activation

JetBrains Activation

  • No proxy for:
*.apache.org, *.github.com, *.github.io, *.githubusercontent.com, *.gitlab.com, *.google.com, *.gradle.org, *.jetbrains.space, *.maven.org, cache-redirector.jetbrains.com, cloudconfig.jetbrains.com, download-cdn.jetbrains.com, download.jetbrains.com, downloads.marketplace.jetbrains.com, ea-report.jetbrains.com, github.com, gitlab.com, google.com, gradle.org, jcenter.bintray.com, plugins.jetbrains.com, resources.jetbrains.com, www.jetbrains.com

Activation Key:

UX394X3HLT-eyJsaWNlbnNlSWQiOiJVWDM5NFgzSExUIiwibGljZW5zZWVOYW1lIjoiSG9uZ2lrIFVuaXZlcnNpdHntmY3snbXrjIDtlZnqtZAiLCJsaWNlbnNlZVR5cGUiOiJDTEFTU1JPT00iLCJhc3NpZ25lZU5hbWUiOiLkvJfliJvkupEg5bel5L2c5a6kIiwiYXNzaWduZWVFbWFpbCI6ImhhbmF6YXdhbWl0b0BnbWFpbC5jb20iLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJGb3IgZWR1Y2F0aW9uYWwgdXNlIG9ubHkiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IkdPIiwicGFpZFVwVG8iOiIyMDI0LTEyLTEzIiwiZXh0ZW5kZ
@muink
muink / NCSI.md
Created November 20, 2021 09:15
常見網絡連接狀態指示器 (NCSI) 及強制門戶 (Captive Portal) 認證

常見網絡連接狀態指示器 (NCSI) 及強制門戶 (Captive Portal) 認證地址

常見網絡連接狀態指示器 (NCSI) 檢測用網絡地址

  • Windows:
    • Edge:
      • http(s)://edge.microsoft.com/captiveportal/generate_204 HTTP連接檢測, 有效值為204
    • 10-11:
      • http://www.msftconnecttest.com/connecttest.txt HTTP下載檢測, 有效值為Microsoft Connect Test
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],