Skip to content

Instantly share code, notes, and snippets.

@laggingreflex
laggingreflex / gist:df28777a34d61e9f16dbb5b6e8120a81
Created March 20, 2018 20:15
SpaceSniffer Script for exporting grouped-by-folder file report but with only folders >10GB & files >100MB
if {<%isfile%>} == {true} ? {
if {<%disksizebytes%>} > {100000000} ?
{ [{leftpad{<%disksize%>}{ }{8}}] <%file%>{&br} }
}:{
if {<%containsfiles%>} == {true} ? {
if {<%disksizebytes%>} > {10000000000} ?
{ {&br}<%pathfile%> [<%disksize%>]{&br} }
}
}
const serve = require('webpack-serve');
serve({ config: {} });
@laggingreflex
laggingreflex / README.md
Created December 22, 2018 22:43
SSD M.2 vs HDD: Running npm install on a typically large NodeJS project

HDD

[![][HDD_gif]][HDD_link] ~ 1 minute 26 sec

SSD

[![][SSD_gif]][SSD_link] ~ 20 sec

The node_modules in this project consisted of ~16k files and ~70MB

@laggingreflex
laggingreflex / Synaptics.reg
Created January 25, 2019 02:40
Disable Smartsense on Synaptics Touchpad
Windows Registry Editor Version 5.00
; See https://superuser.com/questions/1163025/no-option-to-disable-smartsense-in-synaptics-touchpad-driver/1384982#1384982
[HKEY_LOCAL_MACHINE\SOFTWARE\Synaptics\SynTP\Defaults]
"PalmKms0"=dword:00000000
"PalmKms0g"=dword:00000000
"PalmKms0p"=dword:00000000
"PalmKms1"=dword:00000000
"PalmKms1g"=dword:00000000
import { spawn } from 'child_process'
const cp = spawn('node', ['pong.mjs'], { shell: true })
cp.stdout.pipe(process.stdout)
cp.stderr.pipe(process.stderr)
process.stdin.pipe(cp.stdin)