This file contains hidden or 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 fs = require('fs') | |
const CDP = require('chrome-remote-interface') | |
let traceStr = '' | |
let allEvts = []; | |
function delay(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)) | |
} |
This file contains hidden or 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
<html> | |
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1"> | |
<body> | |
Just try and figure out my TTCI (hint: it should be NEVER)<br> | |
This is a test to ensure we properly handle PerformanceObserver lifecycle, see | |
<a href="https://crbug.com/742530">https://crbug.com/742530</a> | |
<script> | |
/** | |
* Stalls the main thread for timeInMs | |
*/ |
This file contains hidden or 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
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
html, body, h1 { | |
margin: 0; | |
font-size: 150%; | |
} | |
.elem { |
This file contains hidden or 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
(alreadySeen => { | |
function downloadURI(uri) { | |
console.log('trying to download') | |
var link = document.createElement("a"); | |
link.download = name; | |
link.href = uri; | |
link.click(); | |
return new Promise(resolve => setTimeout(resolve, 2000 + Math.round(Math.random() * 1000))) | |
} |
This file contains hidden or 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
{ | |
"vsicons.presets.hideFolders": true, | |
"workbench.iconTheme": "vscode-icons", | |
"window.zoomLevel": 1, | |
"editor.tabSize": 2, | |
"files.insertFinalNewline": true, | |
"files.trimTrailingWhitespace": true, | |
"files.exclude": { | |
"**/.git": true, | |
"**/.svn": true, |
This file contains hidden or 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
{ | |
"\UF729" = moveToBeginningOfLine:; | |
"\UF72B" = moveToEndOfLine:; | |
"$\UF729" = moveToBeginningOfLineAndModifySelection:; | |
"$\UF72B" = moveToEndOfLineAndModifySelection:; | |
} |
This file contains hidden or 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
// TAKEN FROM https://icanbeyourlighthouse.firebaseapp.com/ | |
(function() { | |
'use strict'; | |
class Loader { | |
constructor(url=null) { | |
this.url = url; | |
} |
This file contains hidden or 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
/* | |
dcraw.c -- Dave Coffin's raw photo decoder | |
Copyright 1997-2016 by Dave Coffin, dcoffin a cybercom o net | |
This is a command-line ANSI C program to convert raw photos from | |
any digital camera on any computer running any operating system. | |
No license is required to download and use dcraw.c. However, | |
to lawfully redistribute dcraw, you must either (a) offer, at | |
no extra charge, full source code* for all executable files |
This file contains hidden or 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
docker rmi $(docker images | grep "^<none>" | awk '{print $3}') # Remove all untagged images | |
docker rm $(docker ps -a | grep -E '^[a-f0-9]+\s+[a-f0-9]+\s' | awk '{print $1}') # Remove all containers running untagged images |
This file contains hidden or 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 | |
ps aux | grep ssh[:] | awk {'print $2'} | xargs kill -9 |