Skip to content

Instantly share code, notes, and snippets.

@lucysrausch
lucysrausch / altium_kicad.svg
Created March 16, 2020 17:56
Altium / KiCAD logo remake
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@marcan
marcan / canon-ef-protocol-notes.md
Last active May 16, 2024 20:47
Canon EF protocol notes

Testing done using a Canon EOS 600D and a Canon EF-S18-55mm f/3.5-5.6 IS II.

Pinout

  1. VBAT
  2. DET (common with P-GND on lens side)
  3. P-GND
  4. VDD
  5. DCL
  6. DLC
@rroohhh
rroohhh / stream.sh
Last active May 9, 2023 12:39
stream video to gpn badge
#!/bin/bash
xrandr --newmode "480x480_60.00" 17.50 480 496 536 592 480 483 493 500 -hsync +vsync
xrandr --addmode VIRTUAL1 480x480_60.00
xrandr --output VIRTUAL1 --mode 480x480_60.00 --left-of $(xrandr | head -n2 | tail -n1 | sed 's/\ .*$//g')
gst-launch-1.0 -q -e ximagesrc endx=479 endy=479 ! video/x-raw,format=BGRx,framerate=25/1,width=480,height=480 ! videoscale ! videoconvert ! videorate ! video/x-raw,format=RGB16,framerate=25/1,width=128,height=128 ! fdsink sync=false async=true | dd conv=swab bs=1024 | python3 -c "
import sys
import socket
import os
import time

This document has been superseded by the one maintained by chriskrycho.

Not yet implemented

  • #1199: simd-infrastructure well It is being rethout so the implementation will be written before stabilize, possibly with a new rfc.
  • #1214: projections-lifetimes-and-wf
  • #1331: grammar-is-canonical
  • #1358: repr-align
  • #1398: kinds-of-allocators
  • #1432: replace-slice
@japaric
japaric / build.sh
Last active May 12, 2022 14:29
rustc for x86_64-unknown-linux-musl
# Build an statically linked rustc (with host=x86_64-unknown-linux-musl)
# Last tested on: 9316ae515e2f8f3f497fb4f1559910c1eef2433d
# Usage:
# # patches must be in $(pwd)
# $ ls *.patch
# liblibc.patch rust.patch
#