https://blokas.io/patchbox-os/
sudo nano /boot/config.txt
enable_uart=1
dtoverlay=midi-uart0| #!/usr/bin/env bash | |
| set -e | |
| usage() { | |
| cat <<EOF >&2 | |
| USAGE: c++expr [-c CXX | -C | -I] [-i INCLUDE] [-b STEPS] [-t TESTS] [-o FILE] [-O CXX_OPTS...] [-g 'GLOBAL CODE'] 'MAIN CODE' | |
| OPTIONS: | |
| -c CXX use specified c++ compiler | |
| -C use cmake | |
| -I integrate into ClickHouse build tree in current directory |
https://blokas.io/patchbox-os/
sudo nano /boot/config.txt
enable_uart=1
dtoverlay=midi-uart0| Decrypt | |
| openssl enc -d -des-ede3-cbc -in save_config.bin -out save_config.dec -K f1da33a298120612060792ffaa998811998877445588aabb -iv 0 | |
| dd if=save_config.dec bs=4 skip=1 | tar -xzf - | |
| ls preserve_config/ | |
| bmc_hostname hostname_for_dhcp network SDRBlock tag | |
| ddns ipctrl ntp server.pem timezone | |
| DDNS_CONFIG lighttpd.conf OEMPSBlock service.conf wsman | |
| ddns.key lighttpd_port.conf PSBlock snmpd.conf | |
| ddns.private log ps.xml syslog.conf |
| 'use strict'; | |
| // На текущий момент страница со списком устройств на сайте /e/ поменяла дизайн, | |
| // так что проверка поддерживает ли устройство /e/ не работает. Но раньше работало :) | |
| const fs = require('fs').promises; | |
| const path = require('path'); | |
| const axios = require('axios'); | |
| const cheerio = require('cheerio'); | |
| const Iconv = require('iconv').Iconv; |
While messing with a CF-U1 handheld PC that I bought off ebay I managed to mess up the BIOS and it
seems it reverted to previous settings which included an unknown BIOS password, it would however still
boot into windows. Since I could still boot windows I was able to dump the bios flash using
AFUWINGUI.EXE the version I used was 3.09.03.1462 which is available here:
https://www.ami.com/support-other/
Click on Aptio 4 AMI Firmware Update Utility
| #include <stdio.h> | |
| #include <Windows.h> | |
| #include <winternl.h> | |
| #pragma comment(lib,"ntdll.lib") | |
| EXTERN_C NTSTATUS NTAPI NtTerminateProcess(HANDLE,NTSTATUS); | |
| EXTERN_C NTSTATUS NTAPI NtReadVirtualMemory(HANDLE,PVOID,PVOID,ULONG,PULONG); | |
| EXTERN_C NTSTATUS NTAPI NtWriteVirtualMemory(HANDLE,PVOID,PVOID,ULONG,PULONG); | |
| EXTERN_C NTSTATUS NTAPI NtGetContextThread(HANDLE,PCONTEXT); |
| # This code is based on tutorial by slicktechies modified as needed to use oauth token from Twitch. | |
| # You can read more details at: https://www.junian.net/2017/01/how-to-record-twitch-streams.html | |
| # original code is from https://slicktechies.com/how-to-watchrecord-twitch-streams-using-livestreamer/ | |
| import requests | |
| import os | |
| import time | |
| import json | |
| import sys | |
| import subprocess |
| /* | |
| * Copyright 2009 Johannes Berg <[email protected]> | |
| * Copyright 2010 Luis R. Rodriguez <[email protected]> | |
| * | |
| * Permission to use, copy, modify, and/or distribute this software for any | |
| * purpose with or without fee is hereby granted, provided that the above | |
| * copyright notice and this permission notice appear in all copies. | |
| * | |
| * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
| * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| @ This is Linux/arm EABI system call sample program. | |
| @ | |
| @ Build with following command: | |
| @ as -o arm-mmap.o arm-mmap.s | |
| @ ld -o arm-mmap arm-mmap.o | |
| @ | |
| @ You can see the program issues system calls by following command: | |
| @ strace ./arm-mmap | |
| @ |
| #!/bin/bash | |
| if [ "$4" == "" ]; then | |
| echo "usage: $0 <local_ip> <remote_ip> <new_local_ip> <new_remote_ip>" | |
| echo "creates an ipsec tunnel between two machines" | |
| exit 1 | |
| fi | |
| SRC="$1"; shift | |
| DST="$1"; shift |