- make an extfat partition for windows using disk utility
- make a bootable windows usb (just format disk as fat32 and rsync iso contents)
- boot windows installation, press
shift+f10
to open a console - type
diskpart
, thenlist volume
to figure out windows extfat partion drive letter - type
dism /Get-WimInfo /WimFile:D:\Sources\install.wim
to figure out what window version to install - type
dism /Apply-Image /ImageFile:D:\Sources\install.wim /index:1 /ApplyDir:C:\
to install specified version intoC:
- type
diskpart
, thenlist partition
to figure out EFI partition. - type
select partition #
, thenassign
to "mount" EFI partition, annotate EFI partition letter. - type
bcdboot C:\Windows /s E: /f uefi
to copy Windows UEFI stuff to EFI partition (E:
)
This file contains hidden or 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
# Get a list by executing: say -v "?" | |
# Install more from Accessibility -> Speech | |
VOICE = "Samantha" | |
DEFAULT_MESSAGES = File.read("en-US-taranis.csv").lines.reduce({}) do |result, line| | |
path, filename, message = line.chomp.split(";") | |
result[File.join(path, File.basename(filename, ".*"))] = message | |
result | |
end |
This file contains hidden or 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
defaults write -g InitialKeyRepeat -int 12 | |
defaults write -g KeyRepeat -int 2 | |
defaults write -g ApplePressAndHoldEnabled -bool false | |
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false | |
defaults write com.apple.finder WarnOnEmptyTrash -bool false | |
defaults write -g WebAutomaticTextReplacementEnabled -bool true | |
chflags nohidden ~/Library | |
This file contains hidden or 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
sudo apk add wireguard-tools wireguard-rpi libqrencode | |
echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf | |
echo "net.ipv4.conf.all.proxy_arp" >> /etc/sysctl.conf | |
sed -i 's/IPFORWARD="no"/IPFORWARD="yes"/g' /etc/conf.d/iptables | |
cd /etc/wireguard | |
umask 077 | |
wg genkey | tee peer1_privatekey | wg pubkey > peer1_publickey | |
wg genkey | tee server_privatekey | wg pubkey > server_publickey |
mkdir build
docker run -v "$PWD:/opentx" -w /opentx/build pafleraf/opentx-dev cmake -DPCB=X7 -DPCBREV=TLITE -DGVARS=YES -DLUA=YES -DHELI=NO -DDEBUG=NO -DCMAKE_BUILD_TYPE=Release ..
docker run -v "$PWD:/opentx" -w /opentx/build pafleraf/opentx-dev make -j4 firmware
This file contains hidden or 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
setup_var 0x502 0x00 |
This file contains hidden or 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
[{c:"#f7f2ea",a:6,w:1.5},"Esc","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12",{a:5},"Fn",{w:1.5},"Del"], | |
[{a:4},"~\n`","!\n1","@\n2","#\n3","$\n4","%\n5","^\n6","&\n7","*\n8","(\n9",")\n0","_\n-","+\n=",{a:6,w:2},"Backspace","Home"], | |
[{a:4,w:1.5},"Tab","Q","W","E","R","T","Y","U","I","O","P","{\n[","}\n]",{w:1.5},"|\n\\",{a:6},"Page Up"], | |
[{a:4,w:1.75},"Caps Lock","A","S","D","F","G","H","J","K","L",":\n;","\"\n'",{a:6,w:2.25},"Enter", "Page Down"], | |
[{w:2.25},"Shift",{a:4},"Z","X","C","V","B","N","M","<\n,",">\n.","?\n/",{a:6,w:1.25},"Shift",{a:7,w:1.25},"↑",{a:6,w:1.25},"End"], | |
[{w:1.25},"Ctrl",{w:1.25},"Win",{w:1.25},"Alt",{a:7,w:6.25},"",{a:6,w:1.25},"Alt","Ctrl",{a:7,w:1.25},"←",{w:1.25},"↓",{w:1.25},"→"] |
This file contains hidden or 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
void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { | |
uint8_t layer = get_highest_layer(layer_state); | |
for (uint8_t row = 0; row < MATRIX_ROWS; ++row) { | |
for (uint8_t col = 0; col < MATRIX_COLS; ++col) { | |
uint8_t index = g_led_config.matrix_co[row][col]; | |
keypos_t keypos = {col, row}; | |
if (g_led_config.flags[index] == LED_FLAG_NONE) { | |
rgb_matrix_set_color(index, RGB_OFF); | |
continue; |
For 3d printed stuff like cases, boxes and a-likes:
- Socket Head ISO 4762 / DIN 912 (Stainless Steel) M3 10/16/20mm.
- PROS:
- These lengths are by far the most common/useful. Any other length can be compensated using screw bosses.
- Heads don't wear easily so they can be re-used heavily and withstand oxidation.
- Powertool friendly.
- Mostly no need for nuts/drilling when using self-tapping holes (https://github.com/gregsaun/maker_cheatsheet/blob/master/3d_printing/sizes_petg.md#self-tapping-hole).
- PCB mounting holes usually fit them
- CONS: