# install useful tools
sudo apt-get update
sudo apt-get install --no-install-recommends -y nano mc git
# prepare /boot
sudo umount /boot/efi
sudo mv /boot /boot.bak
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/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c | |
index 166f6a728..1bb8139cb 100644 | |
--- a/drivers/net/phy/realtek.c | |
+++ b/drivers/net/phy/realtek.c | |
@@ -1348,7 +1348,7 @@ static struct phy_driver realtek_drvs[] = { | |
.read_mmd = rtl822x_read_mmd, | |
.write_mmd = rtl822x_write_mmd, | |
}, { | |
- PHY_ID_MATCH_EXACT(0x001cc840), | |
+ PHY_ID_MATCH_EXACT(0x001cc841), |
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
import std.mem; | |
import std.sys; | |
import std.core; | |
using MyDevice = u32; | |
// convention: | |
// _lowercase - zero certainty what is that | |
// _CamelCase - have an idea what is that | |
// CamelCase - we are certain what is that |
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
0. Don't have a SIM card in when you're updating radio firmware or it will bomb out partway through as it changes from internal IP to IP passthrough | |
1. Disable external IP passthrough mode: Network Setting -> Broadband -> Cellular APN -> #1 -> Modify icon -> "IP Passthrough" slider to off | |
2. Use "management" Wi-Fi AP as general Wi-Fi AP (with limitations) -> Network Setting -> Bridge1 -> Modify icon -> Move the Wi-Fi AP interface to the pane on the right alongside LAN1 | |
NOTE: by default, once you do the above, the router will happily pass traffic from devices on the Wi-Fi AP to other devices on the LAN1 subnet, but will block traffic originating from the Wi-Fi AP from exiting to the Internet via the LTE side of the device. You can clumsily hack around this by setting another device, e.g. another Wi-Fi AP or Raspberry Pi or Cray supercomputer, as the default gateway for the LAN1 subnet in your DHCP server config, and pointing *that* device at the Zyxel as *its* default GW. This adds additional hops, but enabl |
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 bash | |
set -e | |
function prepare_layout() { | |
wipefs -a -f "$DISK1" | |
dd if=/dev/zero of="$DISK1" bs=50M count=1 | |
partprobe | |
udevadm settle |
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 bash | |
set -x | |
set -e | |
PREFIX=$1 | |
buckets=$(aws s3api list-buckets | jq -r '.Buckets | map(.Name) | .[] | select(. | startswith("'${PREFIX}'-"))') | |
for bucket in $buckets; do | |
aws s3 rb s3://$bucket --force |
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
{ config, pkgs, lib, ... }: | |
{ | |
#... | |
services.pixiecore = let | |
nixos = (import "${lib.cleanSource pkgs.path}/nixos/lib/eval-config.nix" { | |
system = "x86_64-linux"; | |
modules = [ ./pxe.nix ]; | |
}); | |
build = nixos.config.system.build; |
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
services.pixiecore = | |
let | |
key = "..."; | |
nixpkgs = lib.cleanSource pkgs.path; | |
nixos = (import "${lib.cleanSource pkgs.path}/nixos/lib/eval-config.nix" { | |
system = "x86_64-linux"; | |
modules = | |
[ | |
"${lib.cleanSource pkgs.path}/nixos/modules/installer/netboot/netboot.nix" | |
({ pkgs, ... }: { |
scaling hidpi: everything is very small needed steps:
- settings -> display -> scale = 1
- settings -> enforce fonts dpi -> 162dpi
- settings -> symbols -> scale up
meta/win/idea issue:
- settings -> input -> keyboard -> extended -> toggle left
alt
with leftwin
- idea: help -> custom properties:
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
class GoogleClient() { | |
import com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeTokenRequest | |
import com.google.api.client.http.javanet.NetHttpTransport | |
import com.google.api.client.json.jackson2.JacksonFactory | |
import com.google.api.services.oauth2.Oauth2 | |
import com.google.auth.http.HttpCredentialsAdapter | |
import com.google.auth.oauth2.{AccessToken, UserCredentials} | |
import scala.jdk.CollectionConverters._ | |
// shared data |
NewerOlder