Skip to content

Instantly share code, notes, and snippets.

#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
@andi34
andi34 / remove.sh
Created August 16, 2023 21:30 — forked from HonbraDev/remove.sh
Ubuntu Server 20.04 LTS Firefox kiosk
# Stop the kiosk service
sudo systemctl stop kiosk
# Remove the kiosk service from startup
sudo systemctl disable kiosk
# Remove the kiosk service
sudo rm -f /etc/systemd/system/kiosk.service
# Reload systemctl daemons
@andi34
andi34 / mainline_guide.md
Created July 14, 2023 14:23 — forked from lategoodbye/mainline_guide.md
Raspberry Pi: How to cross-compile and use Mainline Kernel

Raspberry Pi: How to cross-compile and use Mainline Kernel

Notes on how to set up a new Ubuntu 18.04 LTS x64 environment, how to build the Mainline Kernel and place it on a Raspberry Pi OS SD card.

Procedure

  1. Install tools needed:
$ apt install git make gcc g++ device-tree-compiler bc bison flex libssl-dev libncurses-dev python3-ply python3-git libgmp3-dev libmpc-dev
@andi34
andi34 / Raspberry Pi 4 Arm64 Kernel Cross-Compile.md
Created July 14, 2023 14:23 — forked from G-UK/Raspberry Pi 4 Arm64 Kernel Cross-Compile.md
Building the Raspberry Pi 4 Arm64 Linux Kernel

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

Introduction

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
<?php
require_once '../lib/config.php';
if ($os == 'linux') {
$get_ip = shell_exec('hostname -I | cut -d " " -f 1');
if (!$get_ip) {
$IP = $_SERVER['HTTP_HOST'];
} else {
$IP = $get_ip;
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include "DHT.h"
// Uncomment one of the lines below for whatever DHT sensor type you're using!
//#define DHTTYPE DHT11 // DHT 11
//#define DHTTYPE DHT21 // DHT 21 (AM2301)
#define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321
/*Put your SSID & Password*/
// beMyValentine Codebeispiel für den AZ-Delivery Blogbeitrag Valentinstag 2020
// https://www.az-delivery.de/blogs/azdelivery-blog-fur-arduino-und-raspberry-pi/valentinstag-projekt-2020
// V1.0 von AZcp 14.02.2020 - GNU Lesser General Public License v2.1
// Verwendet die Bibliothek MD_MAX72XX von Marco Colli / MajicDesigns : https://github.com/MajicDesigns/MD_MAX72XX
// Teile dieses Codes basieren auf den Beispielen der MD_MAX72XX Bibliothek
#include <MD_MAX72xx.h>
#define HARDWARE_TYPE MD_MAX72XX::FC16_HW // falls die Darstellung fehlerhaft ist, ersetze FC16_HW durch PAROLA_HW oder GENERIC_HW
#define MAX_DEVICES 4 // Anzahl der 8x8 Module, in unserem Fall 4
sudo apt install -y git php-gd gphoto2 libimage-exiftool-perl
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install -y yarn
sudo chown -R www-data:www-data /var/www/
cd /var/www/
sudo -u www-data -s
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remove-project name="platform/external/libvorbis" />
<project path="external/libvorbis" name="LineageOS/android_external_libvorbis" remote="github" revision="cm-13.0" groups="pdk-cw-fs,pdk-fs" />
</manifest>
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="andi34/android_device_samsung_golden" path="device/samsung/golden" remote="github" revision="kk4.4" />
<project name="andi34/android_kernel_samsung_golden" path="kernel/samsung/golden" remote="github" revision="blackhawk2" />
<project name="andi34/android_hardware_u8500" path="hardware/u8500" remote="github" revision="kk4.4" />
<project name="andi34/android_vendor_samsung_golden" path="vendor/samsung/golden" remote="github" revision="kk4.4" />