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
#!/usr/bin/env python3 | |
import os | |
import sys | |
import vdf | |
import shlex | |
def remove_broken_shortcuts(vdf_path): | |
# Load the shortcuts.vdf file using Valve's vdf library. | |
with open(vdf_path, 'rb') as f: |
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
diff --git a/data/theme/gnome-shell-sass/_colors.scss b/data/theme/gnome-shell-sass/_colors.scss | |
index ffd4e9fc9..cbb3b716e 100644 | |
--- a/data/theme/gnome-shell-sass/_colors.scss | |
+++ b/data/theme/gnome-shell-sass/_colors.scss | |
@@ -65,5 +65,5 @@ $hover_fg_color: if($variant=='light', darken($fg_color,9%), lighten($fg_color, | |
$active_bg_color: if($variant=='light', darken($bg_color, 11%), lighten($bg_color, 12%)); | |
$active_fg_color: if($variant=='light', darken($fg_color, 11%), lighten($fg_color, 12%)); | |
-// selection colors | |
-$selected_borders_color: if($variant== 'light', darken($selected_bg_color, 15%), lighten($selected_bg_color, 15%)); |
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)=>{ |
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
setup_var 0x502 0x00 |
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 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 |
NewerOlder