Platform Name | Graphics | Adds support for... |
---|---|---|
Ironlake | gen5 | MPEG-2, H.264 decode. |
Sandy Bridge | gen6 | VC-1 decode; H.264 encode. |
Ivy Bridge | gen7 | JPEG decode; MPEG-2 encode. |
Bay Trail | gen7 | - |
Haswell | gen7.5 | - |
Broadwell | gen8 | VP8 decode. |
Braswell | gen8 | H.265 decode; JPEG, VP8 encode. |
Skylake | gen9 | H.265 encode. |
This file contains 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/bash | |
# Requirements: | |
# - macOS | |
# - qemu - `brew install qemu` | |
# - A raw 64-bit Raspberry Pi system image to boot (Usually a .img) | |
set -e | |
if [[ -z "$1" ]]; then |
This file contains 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
# FBTFT xorg config file | |
# Assumes you don't have an HDMI screen connected (which would usually be /dev/fb0) | |
Section "ServerLayout" | |
Identifier "TFT" | |
Option "BlankTime" "10" | |
Screen 0 "ScreenTFT" | |
EndSection | |
Section "Screen" |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<body> | |
<button> | |
Play/pause | |
</button> | |
<script> | |
const audioElement = document.createElement('audio'); | |
audioElement.src = 'http://www.jamesreams.com/wp-content/uploads/2013/01/30-Sec-Acre.mp3'; |
This file contains 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/bash | |
function compile { | |
echo "$1" > tmp.ts | |
node_modules/.bin/tsc --noEmit --diagnostics tmp.ts | |
echo "" | |
} | |
echo "Empty file" | |
compile "" |
This file contains 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
git config --global alias.branch-list "for-each-ref --sort='-committerdate' --format='%(color:dim white)%(committerdate:relative)%(color:normal)%09%(color:no-dim magenta)%(refname:short) %(color:no-dim red)%(upstream:short)' refs/heads" | |
git branch-list |
https://github.com/joewalnes/filtrex https://github.com/TomFrost/Jexl https://github.com/aviaryan/BigEval.js https://www.npmjs.com/package/@code-dot-org/js-interpreter
https://github.com/ajaxorg/ace (generic code editor, how to create custom rule: https://medium.com/@jackub/writing-custom-ace-editor-mode-5a7aa83dbe50)
This file contains 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 { generateKeyPairSync, publicEncrypt, privateDecrypt } = require('crypto'); | |
const { publicKey, privateKey } = generateKeyPairSync('rsa', { | |
modulusLength: 4096, | |
publicKeyEncoding: { | |
type: 'spki', | |
format: 'pem', | |
}, | |
privateKeyEncoding: { | |
type: 'pkcs8', | |
format: 'pem' |
This file contains 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
# Compare packet loss to two destinations | |
# Works on macOS | |
(while true ; do | |
date | |
ping -c 1 192.168.1.1 | |
date | |
ping -c 1 1.1.1.1 | |
sleep 1 | |
done) \ |
This file contains 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
PARALLEL_JOBS=4 | |
parallel_curl() { | |
((i=i%$PARALLEL_JOBS)); ((i++==0)) && wait | |
curl "$@" & | |
} | |
parallel_curl https://url1.com | |
parallel_curl https://url2.com | |
parallel_curl https://url3.com |
NewerOlder