Keypad freeze - fedora 32
sudo rmmod i2c_hid
sudo modprobe i2c_hid
http://erikimh.com/touchpad-stops-working-after-sleep-resume-fedora-26-on-dell-xps/
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
| #!/bin/bash | |
| # qemu-img create win11-arm64.img 100G | |
| qemu-system-aarch64 \ | |
| -M virt -m 8G -cpu max,pauth-impdef=on -smp 8 \ | |
| -bios QEMU_EFI.fd \ | |
| -accel tcg,thread=multi\ | |
| -device ramfb \ | |
| -device qemu-xhci -device usb-kbd -device usb-tablet \ | |
| -nic user,model=virtio-net-pci \ |
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
| use std::{error::Error, fs::File, io::Write, path::Path}; | |
| use rsa::{ | |
| pkcs8::{EncodePrivateKey, EncodePublicKey, LineEnding}, | |
| RsaPrivateKey, RsaPublicKey, | |
| }; | |
| use tracing_subscriber::EnvFilter; | |
| /// Write to file if it doesn't exist. | |
| fn write_to_file(path: &str, data: &str) -> Result<(), Box<dyn Error>> { |
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
| https://github.com/homerchen19/github-file-icons | |
| https://github.com/refined-github/refined-github |
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
| #!/bin/sh | |
| uci batch << EOF | |
| add network switch_vlan | |
| set network.@switch_vlan[-1].device='switch0' | |
| set network.@switch_vlan[-1].ports='1t 5t' | |
| set network.@switch_vlan[-1].vlan='2' | |
| set network.guest='interface' | |
| set network.guest.type='bridge' |
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 dnf config-manager \ | |
| --add-repo \ | |
| https://download.docker.com/linux/fedora/docker-ce.repo | |
| sudo dnf install -y docker-ce docker-ce-cli containerd.io | |
| sudo systemctl start docker | |
| docker run -d -p 27000-27015:27000-27015/udp -p 6003:6003/udp -p 7002:7002/udp cm2network/steamcmd | |
| # login to container |
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
| docker run -v "cargo-cache:$HOME/.cargo" -v "$PWD:/volume" --rm -it clux/muslrust:1.44.0-nightly cargo build --bin wormhole_server --release |
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
| use postgres_types::{Type, ToSql, FromSql, IsNull, to_sql_checked}; | |
| use bytes::BytesMut; | |
| use std::error::Error; | |
| #[derive(Debug)] | |
| struct RawValue<'a> { | |
| type_: Type, | |
| raw: Option<&'a [u8]>, | |
| } |
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
| ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa | |
| ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa | |
| ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa |
use xenv to capture the keys which you want to replace
- Get original key mapping using
xmodmap -pke > ~/keymaptable
$ cat ~/.Xmodmap
! -*- coding: utf-8 -*-
! swapped 49 with 94
NewerOlder