Testing done using a Canon EOS 600D and a Canon EF-S18-55mm f/3.5-5.6 IS II.
- VBAT
- DET (common with P-GND on lens side)
- P-GND
- VDD
- DCL
- DLC
| #!/bin/sh | |
| # PNG Gamma trick (by @marcan42 / marcan@marcan.st) | |
| # | |
| # This script implements an improved version of the gamma trick used to make | |
| # thumbnail images on reddit/4chan look different from the full-size image. | |
| # | |
| # Sample output (SFW; images by @Miluda): | |
| # https://mrcn.st/t/homura_gamma_trick.png | |
| # https://www.reddit.com/r/test/comments/6edthw/ (click for fullsize) | |
| # https://twitter.com/marcan42/status/869855956842143744 |
| # CephFS pool/layout migration tool ("transcoder") | |
| # | |
| # Loosely inspired by: | |
| # https://git.sr.ht/~pjjw/cephfs-layout-tool/tree/master/item/cephfs_layout_tool/migrate_pools.py | |
| # https://gist.github.com/ervwalter/5ff6632c930c27a1eb6b07c986d7439b | |
| # | |
| # MIT license (https://opensource.org/license/mit) | |
| import os, stat, time, signal, shutil, logging, sys | |
| from concurrent.futures import ThreadPoolExecutor |
| #!/usr/bin/python3 | |
| import mido, sys | |
| mid = mido.MidiFile(sys.argv[1]) | |
| new_track = mido.MidiTrack() | |
| sustain = 0 | |
| last = 0 | |
| t = 0 | |
| for ev in mido.merge_tracks(mid.tracks): |
| /* | |
| * Algorithm to process Wiimote IR tracking data into a usable pointer position | |
| * by tracking the sensor bar. | |
| * | |
| * Copyright (c) 2008-2011 Hector Martin "marcan" <marcan@marcan.st> | |
| * All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions are met: | |
| * |
| #!/usr/bin/env python3 | |
| from __future__ import print_function | |
| import sys, argparse, codecs | |
| from PIL import Image, ImagePalette | |
| xterm256colors = [ # http://pln.jonas.me/xterm-colors | |
| 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x80, 0x80, 0x00, | |
| 0x00, 0x00, 0x80, 0x80, 0x00, 0x80, 0x00, 0x80, 0x80, 0xc0, 0xc0, 0xc0, | |
| 0x80, 0x80, 0x80, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0xff, 0xff, 0x00, | |
| 0x00, 0x00, 0xff, 0xff, 0x00, 0xff, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, |
| /* | |
| mini - a Free Software replacement for the Nintendo/BroadOn IOS. | |
| ghettohci - debug over FT232 over OHCI | |
| Copyright (C) 2012 Hector Martin "marcan" <marcan@marcansoft.com> | |
| # This code is licensed to you under the terms of the GNU GPL, version 2; | |
| # see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt | |
| */ |
| # /etc/udev/rules.d/90-usb-nvme.rules | |
| # Adjust ID_MODEL to match your enclosure | |
| SUBSYSTEM=="block", KERNEL=="sd*", ENV{ID_MODEL}=="ASM236X_NVME", IMPORT{program}="/usr/local/bin/nvme-usb-id $tempnode" |
| #!/boot/bzImage | |
| # Linux kernel userspace initialization code, translated to bash | |
| # (Minus floppy disk handling, because seriously, it's 2017.) | |
| # Not 100% accurate, but gives you a good idea of how kernel init works | |
| # GPLv2, Copyright 2017 Hector Martin <marcan@marcan.st> | |
| # Based on Linux 4.10-rc2. | |
| # Note: pretend chroot is a builtin and affects the current process | |
| # Note: kernel actually uses major/minor device numbers instead of device name |
restic and autoresticsudo mkdir -p /var/cache/restic/etc/autorestic.yml roughly as follows:backends:
mybackend:
# Your backend options here, see the documentation
global:
all:
cache-dir: /var/cache/restic