Skip to content

Instantly share code, notes, and snippets.

View 0xDaksh's full-sized avatar
🦄
Layer 2 DeFi is going to be fun!

Daksh 0xDaksh

🦄
Layer 2 DeFi is going to be fun!
View GitHub Profile
@0xDaksh
0xDaksh / gist:384af6911e702397ca7315ac08f91672
Created November 22, 2017 09:19 — forked from jnrbsn/gist:4268258
Loads a JavaScript file asynchronously with a callback, like jQuery's `$.getScript()` except without jQuery.
function j(u, c) {
var h = document.getElementsByTagName('head')[0], s = document.createElement('script');
s.async = true; s.src = u;
s.onload = s.onreadystatechange = function () {
if (!s.readyState || /loaded|complete/.test(s.readyState)) {
s.onload = s.onreadystatechange = null; if (h && s.parentNode) { h.removeChild(s) } s = undefined;
if (c) { c() }
}
};
h.insertBefore(s, h.firstChild);
@0xDaksh
0xDaksh / Fuckthisshit.js
Last active December 22, 2017 11:22
;_;
fetch("https://cors-anywhere.herokuapp.com/https://www.validator.pizza/email/mishra.istasis@gmail.com").then(res => res.json()).then(console.log)
@0xDaksh
0xDaksh / _readme.md
Created January 10, 2018 11:32 — forked from pongstr/_readme.md
HTTP/2 Recipe: Nginx + Node.js

Imgur

Recipe

Install homebrew/services, this will be helpful, you'll see later. :D

$ brew tap homebrew/services 
@0xDaksh
0xDaksh / ContextCmder-Disable.reg
Created July 24, 2018 10:28 — forked from jojobyte/ContextCmder-Disable.reg
Cmder Context (Right-Click) Menu for Windows 7/8
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]
@0xDaksh
0xDaksh / Gemfile
Created December 17, 2020 07:29 — forked from dhh/Gemfile
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
@0xDaksh
0xDaksh / HallOfBlame.md
Created February 22, 2024 16:08 — forked from yorickdowne/HallOfBlame.md
Great and less great SSDs for Ethereum nodes

Overview

Syncing an Ethereum node is largely reliant on IOPS, I/O Per Second. Budget SSDs will struggle to an extent, and some won't be able to sync at all.

This document aims to snapshot some known good and known bad models.

For size, 2TB come recommended as of late 2023. This should last an Ethereum full node until late 2025 or thereabouts, with crystal ball uncertainty.

High-level, QLC and DRAMless are far slower than "mainstream" SSDs. QLC has lower endurance as well. Any savings will be gone when the drive fails early and needs to be replaced.