-
Create an empty file to prevent the service from starting
sudo touch /etc/cloud/cloud-init.disabled
This is a docker-compose template for a lemp stack.
Make sure to change both the root password under the mysql service, and the absolute URI on the phpmyadmin container.
You can also expose phpMyAdmin locally instead of remotely by properly configuring the ports.
Default locations:
(Original) -> (Your server)
/var/www/html
-> ./webroot
/etc/nginx
-> ./nginx
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
Ext.define('App.security.Firewall', { | |
singleton: true, | |
requires: [ | |
'App.security.TokenStorage' | |
], | |
isLoggedIn: function() { | |
return null !== App.security.TokenStorage.retrieve(); | |
}, |
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
# include <stdlib.h> | |
# include <stdio.h> | |
# include <sys/stat.h> | |
# include <pthread.h> | |
# include <fcgiapp.h> | |
const char* const sockpath = "/tmp/fcgicpp.sock"; |
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
/*POSIX/Linux multithreaded socket test | |
Copyright (c) 2006-2007 Richard Palethorpe | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
software and associated documentation files (the "Software"), to deal in the Software | |
without restriction, including without limitation the rights to use, copy, modify, | |
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to the following | |
conditions: |
The Raspberry Pi foundation have now released a beta version of an official 64-bit Kernel which can be installed using the rpi-update script. The rpi-update script can be found at https://github.com/Hexxeh/rpi-update/blob/master/rpi-update or through the Raspbian repositories
The objective of these instructions is to build a stock 64bit Linux Kernel for use on the Raspberry Pi 4B on a Debian x64 machine (Windows Subsystem for Linux in my case), and deploy on the Raspberry Pi.
Notes:
- Transfer to Pi is using my NAS in this example, replace with shared drive/memory stick etc. as required.
- (N: drive on Windows and /mnt/NAS on Linux in this example).
- For a specific Kernel version replace the 4.19 with the wanted version in the git clone command.
- Greater than 3GB RAM only currently available on Kernel 4.19
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
wget http://download.virtualbox.org/virtualbox/4.3.12/VBoxGuestAdditions_4.3.12.iso | |
sudo mkdir /media/iso | |
sudo mount -o loop ./VBoxGuestAdditions_4.3.12.iso /media/iso | |
sudo bash /media/iso/VBoxLinuxAdditions.run --nox11 | |
sudo umount /media/iso |
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
#!/bin/bash | |
# Determine if .deb package dependencies are met | |
if [[ -z "$1" || "$1" == '--help' || "$1" == "-h" ]]; then | |
echo "Usage $0 file.deb" | |
exit 0 | |
fi | |
if [[ ! -f "$1" ]]; then |
- Sector size and key size are fixed, you cannot change them!
- You can play with the hash but using less than sha256 is irresponsible!
- You can convert an already existing luks2 partition with
cryptsetup(8)
.