gifsicle intro-gif.gif -d200 "#-1" -o intro-gif-last-frame.gif | |
gifsicle intro-gif.gif --loop --append intro-gif-last-frame.gif -o intro-gif-appended-looped.gif |
From: https://lobste.rs/s/by7kff/what_have_you_learned_by_working_remote
What are some tips/things that you have learned after working remote for the first time that you wish you knew before you began?
https://lobste.rs/s/by7kff/what_have_you_learned_by_working_remote#c_rpoimx
I’ve been working remote for 10 years, and spend the 10 previous years in an office. Not sure I know what I wish I knew 10 years ago,
[{"pid":2339,"tid":775,"ts":101462461255,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":24,"tdur":19,"tts":4727567139}, | |
{"pid":2339,"tid":775,"ts":101462461304,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":8,"tdur":7,"tts":4727567183}, | |
{"pid":2339,"tid":775,"ts":101462461333,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":9,"tdur":7,"tts":4727567213}, | |
{"pid":2339,"tid":775,"ts":101462461363,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":9,"tdur":9,"tts":4727567242}, | |
{"pid":2339,"tid":775,"ts":101462461394,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":" |
[{"pid":2339,"tid":775,"ts":94987529710,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":20,"tdur":20,"tts":4117667121}, | |
{"pid":2339,"tid":775,"ts":94987529787,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":9,"tdur":9,"tts":4117667198}, | |
{"pid":2339,"tid":775,"ts":94987529816,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":7,"tdur":8,"tts":4117667227}, | |
{"pid":2339,"tid":775,"ts":94987529841,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":7,"tdur":6,"tts":4117667252}, | |
{"pid":2339,"tid":775,"ts":94987529864,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEn |
https://stackoverflow.com/questions/12213597/how-to-see-which-plugins-are-making-vim-slow
:profile start profile.log
:profile func *
:profile file *
" At this point do slow actions
:profile pause
Code from:
puppeteer/puppeteer#1505 (comment)
Transformed to async function for practicing.
There were recently two very serious security vulnerabilities disclosed ([Spectre][] & [Meltdown][]) that affect pretty much anything that can run code on your machine.
That includes browsers, so major vendors have started rolling out mitigations for such attacks so that the vulnerabilities can't be exploited from JavaScript. Here is some info in case you haven't followed:
performance.now
is going to be rounded to avoid exposing the high precision timer- to 1ms in Safari, 20µs in Firefox, 20µs with 20µs jitter in Edge, unspecified in Chrome
- SharedArrayBuffer is going to be disabled for now since it can be used to create high precision timers from JS
function debounce (f, t) { | |
let tid = null | |
let r = _ => { tid = null; f() } | |
return _ => { | |
if (tid) clearTimeout(tid) | |
tid = setTimeout(r, t) | |
return () => { clearTimeout(tid); tid = null } | |
} | |
} |
#!/bin/bash | |
git clone https://github.com/wikimedia/marvin.git | |
cd marvin/ | |
npm i | |
npm run build | |
# Run node server to get the HTML | |
node dist/server/index.js & | |
# Save the HTML to dist/ | |
curl http://localhost:3000/ > dist/index.html |