A4988 Drivers
Vref set to ~90% of stepper rated current
Rs = 0.1ohm
X = 0,58v (0,725A)
Y = 0,58v (0,725A)
Z = 0,58v (0,725A)
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
// ==UserScript== | |
// @name lozideas.com | |
// @match http://www.lozideas.com/topic/info.aspx* | |
// @grant none | |
// @version 1.0 | |
// ==/UserScript== | |
$(document).off().find("*").off(); | |
Array.from(document.querySelectorAll(".lozimg")).forEach((img)=>{ |
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
// Installation: | |
// yarn add -D @codemod/cli @babel/plugin-syntax-jsx @babel/generator | |
import jsx from "@babel/plugin-syntax-jsx" | |
import generate from "@babel/generator" | |
const COLOR_MAP = { | |
"white": "white", | |
"near-white": "gray-100", | |
"light-gray": "gray-200", |
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
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 |
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:
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
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; |
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
[{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 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
# change modifier keys | |
# install brew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install mas | |
mas upgrade | |
# core utils | |
brew install findutils ssh-copy-id unrar wget git hub gnutls gnu-tar trash fzf |
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 IGNORE = [ | |
'constructor', | |
'componentDidMount', | |
'componentDidUpdate', | |
'componentWillReceiveProps', | |
'componentWillMount', | |
'componentWillUpdate', | |
'componentWillUnmount', | |
'getChildContext', | |
'getDefaultProps', |
NewerOlder