Skip to content

Instantly share code, notes, and snippets.

#2 0x00007fffecf985d0 in ui::Accelerator::Accelerator(ui::KeyboardCode, int, ui::Accelerator::KeyState, base::TimeTicks) (this=0x7fffffff7dc0, key_code=ui::VKEY_Q, modifiers=4, key_state=ui::Accelerator::KeyState::PRESSED, time_stamp=...)
at ../../ui/base/accelerators/accelerator.cc:52
#3 0x0000000000d44fda in accelerator_util::StringToAccelerator(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, ui::Accelerator*) (shortcut=..., accelerator=0x7fffffff8280)
at ../../electron/atom/browser/ui/accelerator_util.cc:66
#4 0x0000000000dea4fe in mate::Converter<ui::Accelerator, void>::FromV8(v8::Isolate*, v8::Local<v8::Value>, ui::Accelerator*) (isolate=0x15419fc7b020, val=..., out=0x7fffffff8280) at ../../electron/atom/common/native_mate_converters/accelerator_converter.cc:20
#5 0x0000000000de0e1d in mate::ConvertFromV8<ui::Accelerator>(v8::Isolate*, v8::Local<v8::Value>, ui::Accelerator*) (isolate=0x15419fc7b020, input=..., result=0x7fffffff8280) at ../../elect
@ckerr
ckerr / gist:63e971b18f3f1e41a29d1224a1d23768
Created May 31, 2019 03:37
tool to run a png through a batch of lossless png compressors
#!/usr/bin/zsh
# Simple script to run a png through a pipeline of lossless png compressors
# to find the smallest output from all of them.
#
# The goal is the smallest losslessly-compressed file, so excessive switches
# are used, e.g. `advpng --shrink-insane`. This is computationally expensive.
#
# To run this on a file:
# $ pngmin.zsh filename.png
@ckerr
ckerr / gist:41f8e7c8add833074c8142ed4858da99
Created July 2, 2019 19:00
throwaway script to update apps links from http to https. Migrates the link iff the migration doesn't cause the link to break. Note: written quickly to just get the job done
#!/usr/bin/env node
const fetch = require('node-fetch')
const fsPromises = require('fs').promises
const isUrl = require('is-url')
const path = require('path')
const process = require('process')
const readdirp = require('readdirp')
const yaml = require('yamljs')
const { URL } = require('url')
@ckerr
ckerr / gist:2813640b6f0ac955d8c383fbd41c5206
Created August 15, 2019 04:49 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
We are using Node.js <span id="node-version"></span>,
Chromium <span id="chrome-version"></span>,
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
We are using Node.js <span id="node-version"></span>,
Chromium <span id="chrome-version"></span>,
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
We are using Node.js <span id="node-version"></span>,
Chromium <span id="chrome-version"></span>,
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
We are using Node.js <span id="node-version"></span>,
Chromium <span id="chrome-version"></span>,
@ckerr
ckerr / bittorrent-client-tests.md
Created September 20, 2019 22:21
BitTorrent Client Performance Tests

BitTorrent Client Performance Tests

Performance Constrained by Low-Speed 300 KB/s Down, 39 KB/s Up ADSL Provisioning

Benchmarks conducted 18-19, 22-24, 26-28 February; 01-07, 15-22 March 2010

BitTorrent Client Time to Download ubuntu-9.10-desktop i386.iso Memory Use While Downloading User CPU (MM:SS) Sys CPU (MM:SS) Engine GUI
BitTornado 0.3.18 1st run 53:33 19.3 MiB 2:15 0:53 Built-in Curses
@ckerr
ckerr / _e
Created October 14, 2019 17:35
zsh tab completion for https://github.com/electron/build-tools
#compdef e
# if using oh-my-zsh, install in ~/.oh-my-zsh/completions/
declare -a __e_options=()
function __e_get_cmd_options() {
local -a options=()
"$@" --help | \
awk '/^Options:/{flag=1;next}/^$/{flag=0}flag' | \
sed 's/ /;/g' | cut -f2 -d';' | \