Skip to content

Instantly share code, notes, and snippets.

@ryancdavison
ryancdavison / iPad-Pro-Magic-Keyboard-Portrait-Mode-DIY-Smart-Connector-Cable.md
Last active June 6, 2024 06:50
iPad Pro 12.9 (2020) Magic Keyboard Portrait Mode DIY Smart Connector Cable

iPad Pro 12.9" (2020) Magic Keyboard Portrait Mode DIY Smart Connector Cable

I wanted my iPad Pro to be able to use the Magic Keyboard in portrait mode, but the current Smart Connector configuration does not allow this. With too much time on my hands, I made a short jumper cable using a section of USB cable, 5-pin POGO connectors (the 5-pin works using pins 1, 3, and 5, and removing pins 2 and 4), a small electrical project box, 3mm N52 magnets, and some epoxy and Sugru to pack everything into place. My cable and connections orientation had more to do with the boxes I found to encase the connector (with holes on the small end) than anything else. Obviously, there will be many ways to do this.

WARNING: Getting any of these steps wrong will probably ruin your iPad.

Note: These measurements are for the 12.9" (2020) model. The magnets did not line up and the polarity was different for my wife's iPad Pro 11" (2021).

![iPad-Pro-MmagicKeyboard-Jumper-Cable-min](https://user-images.githubusercontent.c

@ryancdavison
ryancdavison / do-ipcrm.sh
Last active October 24, 2023 02:18
remove shared memory objects owned by "me".
#!/bin/bash
ME=`whoami`
ipcs -m
IPCS_M=`ipcs -m | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "`
for id in $IPCS_M; do
echo "ipcrm -m $id"
ipcrm -m $id;

How to gather activity data from Microsoft Teams

Teams Class Insights

We can use this app and the data presented to gather attendance data even after a Teams meeting has ended. This will also present general student Teams activity.

Add the Insights app to your available tabs

#include <iostream>
using namespace std;
class A {
// no constructors or assignment operators are defined, so using compiler generated ones
public:
void setA(int value) { a = value; }
int getA() { return a; }
void setF(float value) { f = value; }