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 Simple { | |
public static void main(String args[]) throws Exception { | |
Runtime.getRuntime().exec(args[0]); | |
} | |
} | |
--- | |
$ java Simple 'script -q /tmp/test.txt echo alma' | |
$ cat /tmp/test.txt |
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
Accipiter gentilis: Héja | |
Accipiter nisus: Karvaly | |
Aegithalos caudatus: Őszapó | |
Alcedo atthis: Jégmadár | |
Anser anser: Nyári lúd | |
Apus apus: Sarlósfecske | |
Aquila fasciata: Héjasas | |
Aquila heliaca: Parlagi sas | |
Ardea cinerea: Szürke gém | |
Ardeola ralloides: Üstökösgém |
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
# BIOS parameter block | |
pf.bpb .b.[8]zwbwbwwbwwwxx jmp oem_id bytes_per_sector sectors_per_cluster reserved_sectors num_fat num_dir_ent num_sectors type sectors_per_fat sectors_per_track num_heads num_hidden large_sectors | |
pf.ebpb16 bbbx[11]z[8]z[448].w drive_num ntflags_or_reserved signature volume_id volume_label system_id bootable_signature | |
pf.ebpb32 xwbbxww[12]bbbbx[11]z[8]z[420].w sectors_per_fat flags version.major version.minor root_cluster fsinfo_cluster backup_boot_cluster reserved drive_num ntflags_or_reserved signature volume_id volume_label system_id bootable_signature | |
pf.bpb16 ?? (bpb)bios_parameter_block (ebpb16)extended_boot_record | |
pf.bpb32 ?? (bpb)bios_parameter_block (ebpb32)extended_boot_record | |
# partition table entry | |
pf.pte b[3]bb[3]bdd boot_indicator starting_chs partition_type ending_chs starting_sector partition_size |
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
pkg install git gmake gcc-arm-embedded py27-pip | |
pip-2.7 install nrfutil | |
fetch https://www.nordicsemi.com/-/media/Software-and-other-downloads/SDKs/nRF5/Binaries/nRF5SDK153059ac345.zip | |
unzip nRF5SDK153059ac345.zip | |
cd nRF5_SDK_15.3.0_59ac345/examples/peripheral # does not have to be "examples/peripheral", only the directory depth is important (because of relative paths in the Makefile) | |
git clone https://github.com/mame82/LOGITacker | |
cd LOGITacker/pca10059/blank/armgcc/ | |
env GNU_INSTALL_ROOT=/usr/local/gcc-arm-embedded/bin/ GNU_VERSION=8.2.1 gmake # builds without GNU_VERSION, but don't know if there are any consequences | |
nrfutil pkg generate --debug-mode --hw-version 52 --sd-req 0x0 --application _build/logitacker_pca10059.hex dfu.zip # debug mode and unsigned for simplicity | |
nrfutil dfu usb-serial -pkg dfu.zip -p /dev/cuaU0 -b 115200 |