- Using a ready-to-use Ubuntu image
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 modprobe fbcon | |
| sudo systemctl enable --now getty@tty1 | |
| sudo apt install xfce4 lightdm xfce4-terminal | |
| ark@xu10:~$ cat .vnc/xstartup | |
| #!/bin/sh | |
| xrdb "$HOME/.Xresources" | |
| xsetroot -solid grey |
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::rc::Rc; | |
| struct Parent { | |
| count: u32, | |
| } | |
| struct Child { | |
| parent: Rc<Parent>, | |
| } |
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
| telnet 192.168.1.1 | |
| wget http://192.168.1.208:8000/x-wrt-24.01-b202401270830-ramips-mt76x8-xiaomi_mi-router-4c-squashfs-sysupgrade | |
| flash erase 0x160000 0xea0000 | |
| flash write 0x160000 0x80000000 0xea0000 | |
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
| adb shell getprop ro.build.version.sdk | |
| aapt dump badging youbube.apk | |
| adb shell pm list packages | |
| adb shell monkey -p com.google.android.youtube 1 | |
| adb shell am start -n com.google.android.youtube/Main |
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
| hf 14a config --bcc ignore | |
| hf mf wrbl --force --blk 0 -k FFFFFFFFFFFF -d 010203040408040000004A495256494E | |
| hf 14a config --bcc std |
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
| #!/usr/bin/python | |
| # vim: set ts=4 sw=4 expandtab syntax=python: | |
| """ | |
| FTDI device permission fixer | |
| Can be called from a udev rule to ensure connected FTDI devices have | |
| world-writable permissions for use by user applications | |
| J. Hipps <jacob@ycnrg.org> |
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 pacman -S sof-firmware alsa-ucm-conf |
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 | |
| # Enable kernel module | |
| echo "g_serial" >> /etc/modules | |
| nano /etc/inittab | |
| ``` | |
| ::respawn:/sbin/getty -L ttyAM0 115200 vt100 | |
| ::respawn:/sbin/getty -L ttyGS0 115200 vt100 | |
| ``` |
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
| # Install QEMU-6.1.0 | |
| wget https://download.qemu.org/qemu-6.1.0.tar.xz | |
| tar xvJf qemu-6.1.0.tar.xz | |
| cd qemu-6.1.0 | |
| ./configure | |
| make | |
| sudo make install | |
| # Download Armbian (Ubuntu Focal 20.04) for OrangePi PC | |
| wget https://mirrors.netix.net/armbian/dl/orangepipc/archive/Armbian_21.08.1_Orangepipc_focal_current_5.10.60.img.xz |
NewerOlder