Skip to content

Instantly share code, notes, and snippets.

cezaraugusto /
Created November 27, 2019 13:01
error log executing videos in an extension
[52100:775:1126/] Blank frame: No overlays or CALayers
[52106:85763:1126/] MediaEvent: MEDIA_ERROR_LOG_ENTRY {"error":"Could not parse slice header"}
[52106:85763:1126/] MediaEvent: MEDIA_ERROR_LOG_ENTRY {"error":"VDA Error 3"}
[52106:85763:1126/] MediaEvent: MEDIA_ERROR_LOG_ENTRY {"error":"video decode error"}
[52106:85763:1126/] Failed to send packet for decoding: -1094995529
[52106:85763:1126/] MediaEvent: MEDIA_ERROR_LOG_ENTRY {"error":"Failed to send audio packet for decoding: timestamp=3900952 duration=23220 size=375 side_data_size=0 is_key_frame=1 encrypted=0 discard_padding (us)=(0, 0)"}
cezaraugusto / tsconfig.json
Created September 22, 2019 21:59
JSON schema for the TypeScript compiler's configuration file
View tsconfig.json
"title": "JSON schema for the TypeScript compiler's configuration file",
"$schema": "",
"definitions": {
"filesDefinition": {
"properties": {
"files": {
"description": "If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. When a 'files' property is specified, only those files and those specified by 'include' are included.",
"type": "array",
cezaraugusto / broken_topsites.js
Created February 1, 2018 02:58
top sites bad profile
View broken_topsites.js
cezaraugusto / darkmode.css
Created August 25, 2017 13:52
dark mode for webviews
View darkmode.css
/** That's it. Thank you. */
filter: sepia(0.9) brightness(0.8);
cezaraugusto / gpg_fix.txt
Last active November 3, 2023 17:03
fixing `gpg failed to sign data` error on macOS
View gpg_fix.txt
For troubleshooting, two things to first try:
run `git config --global gpg.program gpg2`, to make sure git uses gpg2 and not gpg
run `echo "test" | gpg2 --clearsign`, to make sure gpg2 itself is working
If that all looks all right, one next thing to try:
run `brew install pinentry` to ensure you have a good tool installed for passphrase entry
If after that install and you re-try git commit and still get the "failed to sign the data" error:
run `gpgconf --kill gpg-agent` to kill any running agent that might be hung
cezaraugusto /
Created June 16, 2017 01:19 — forked from paulirish/
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.


Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()
cezaraugusto / .profile
Created December 28, 2016 17:58 — forked from bmhatfield/.profile
Automatic Git commit signing with GPG on OSX
View .profile
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info

Keybase proof

I hereby claim:

  • I am cezaraugusto on github.
  • I am cezaraugusto ( on keybase.
  • I have a public key whose fingerprint is 684F C83A 5EDD 5FD2 3741 A4D0 6104 DCBB 0892 716B

To claim this, I am signing this object:

cezaraugusto /
Created February 18, 2016 12:55 — forked from staltz/
The introduction to Reactive Programming you've been missing