All honour goes to http://www.blaicher.com/2013/01/accessing-an-encrypted-full-disc-image-lukslvm/
So I typically use a full disc encryption with LVM over LUKS. So assume you have got an image from your harddisk via
dd if=/dev/sda of=image.img
@echo off | |
cls | |
echo ======================================== | |
echo DNS Flush Utility - Windows | |
echo ======================================== | |
echo. | |
set /p userinput=Do you want to flush the DNS cache now? (y/n): | |
if /i "%userinput%"=="y" ( | |
echo. |
# find . -type f ! -name "*.sha256sum" -exec bash -c 'for f; do echo "Processing: $f"; (cd "$(dirname "$f")" && sha256sum "$(basename "$f")" > "$(basename "$f").sha256sum"); done' _ {} + | |
# find . -type f ! -name "*.sha256sum" -exec sh -c 'for f; do echo "Processing: $f"; (cd "$(dirname "$f")" && sha256sum "$(basename "$f")" > "$(basename "$f").sha256sum"); done' _ {} + | |
# find . -type f -name "*.sha256sum" -exec sh -c 'cd "$(dirname "{}")" && sha256sum -c "$(basename "{}")"' \; | |
# shred \r\n using dos2unix | |
# find . -type f -name "*.sha256sum" -exec sh -c 'cd "$(dirname "{}")" && echo "Dos2unix > $(dirname "{}")/$(basename "{}")" && dos2unix "$(basename "{}")"' \; |
FROM ubuntu:18.04 | |
ENV DEBIAN_FRONTEND=noninteractive | |
# Install core dependencies | |
RUN apt-get update && apt-get install -y \ | |
curl \ | |
bash \ | |
grep \ |
echo "Usb power status:" | |
echo "" | |
sudo cat /sys/bus/usb/devices/*/power/level | |
echo "" | |
echo "" | |
while true; do | |
read -p "Do you wish to change usb power status? " yn | |
case $yn in | |
[Yy]* ) make install; break;; |
sudo apt update | |
sudo apt-get install tigervnc-scraping-server | |
mkdir -p ~/.vnc | |
vncpasswd | |
x0vncserver -passwordfile ~/.vnc/passwd -display :0 | |
All honour goes to http://www.blaicher.com/2013/01/accessing-an-encrypted-full-disc-image-lukslvm/
So I typically use a full disc encryption with LVM over LUKS. So assume you have got an image from your harddisk via
dd if=/dev/sda of=image.img
//For digital pins | |
#define DIGITAL_PIN_COUNT 12 | |
char *digital_pins[] = {"D0", "D1", "D2" , "D3" , "D4" , "D5", "D6", "D7", "D8", "D9", "D10", "D11", "D12", "D13"}; | |
int *valid_digital_pins[] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}; | |
//////////////////////// | |
//For Aanlogue pin | |
#define ANALOG_PIN_COUNT 6 |
import shlex | |
import subprocess | |
def execute_command(command: str, path=None): | |
command_splited = shlex.split(command) | |
if path is None: | |
process = subprocess.Popen(command_splited) | |
else: | |
process = subprocess.Popen(command_splited, cwd=path) | |
process.communicate() |