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
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 | |
| # Get a random number on Windows BusyBox alike, also works on most Unixes | |
| PoorMansRandomGenerator() { | |
| local digits="${1}" # The number of digits of the number to generate | |
| local minimum=1 | |
| local maximum | |
| local n=0 |
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
| I did the following to install devtoolset-7: | |
| yum install centos-release-scl | |
| yum install devtoolset-7-gcc-c++ | |
| Every time I want gcc to default to using GCC 7, I run the following: | |
| scl enable devtoolset-7 bash |
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
| <? | |
| $_colors = array( | |
| 'LIGHT_RED' => "[1;31m", | |
| 'LIGHT_GREEN' => "[1;32m", | |
| 'YELLOW' => "[1;33m", | |
| 'LIGHT_BLUE' => "[1;34m", | |
| 'MAGENTA' => "[1;35m", | |
| 'LIGHT_CYAN' => "[1;36m", | |
| 'WHITE' => "[1;37m", |
- Ubuntu 16.04+
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt update
$ sudo apt install nginx php7.1-fpm php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-mysql php7.1-phpdbg php7.1-mbstring php7.1-gd php7.1-imap php7.1-ldap php7.1-pgsql php7.1-pspell php7.1-recode php7.1-soap php7.1-tidy php7.1-dev php7.1-intl php7.1-curl php7.1-zip php7.1-xml php-xdebug
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
| semanage fcontext -a -t samba_share_t /root/downloads | |
| chcon -R -t samba_share_t /root/downloads |
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
| function log(s) { | |
| var p = document.createElement("p"); | |
| p.style.wordWrap = "break-word"; | |
| p.textContent = s; | |
| output.appendChild(p); | |
| } |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script data-main="usage" src="http://requirejs.org/docs/release/1.0.8/comments/require.js"></script> | |
| </head> | |
| <body> | |
| <p>Check your JavaScript console for output!</p> | |
| </body> | |
| </head> |
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
| (function (global) { | |
| function SkelClass() { | |
| // handle cases where "new" keyword wasn't used | |
| if (!(this instanceof SkelClass)) { | |
| return new SkelClass(arguments[0]); | |
| } | |
| // if no arguments, then nothing needs to be set | |
| if (arguments.length === 0) | |
| throw new Error('Missing Argument: You must pass a valid argument'); |
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 | |
| N=/dev/null; | |
| C=`tput op` O=$(echo -en "\n`tput setaf 2`>>> `tput op`"); | |
| for mod in $(cat /proc/modules|cut -d" " -f1); | |
| do | |
| md=/sys/module/$mod/parameters; | |
| [[ ! -d $md ]] && continue; | |
| m=$mod; | |
| d=`modinfo -d $m 2>$N | tr "\n" "\t"`; |
NewerOlder