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
/******************************************************************/ | |
/* Ensure 'report bug' dialog doesn't take over the entire screen */ | |
/******************************************************************/ | |
#mx_Dialog_Container div[aria-describedby="report_bug"] { | |
/* Don't take up the entire screen */ | |
width: fit-content; | |
height: fit-content; | |
padding: 20px; | |
border-radius: 20px; |
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
import RPi.GPIO as GPIO | |
from omxplayer import OMXPlayer | |
from time import sleep | |
from pathlib import Path | |
# GPIO pin number : | |
light = 7 | |
# Setup the player as shown in omxplayer-wrapper examples : | |
path = Path('./video.mp4') |
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
name: "Unifi" | |
type: "sw.application" | |
version: 2022.7.16 | |
description: "Unifi Controller allows you to setup your Ubiquiti Unifi devices" | |
post-provisioning: >- | |
## Usage instructions | |
Once your device joins the fleet you'll need to allow some time for it to download the application and unpack it. | |
Then use Local IP address to connect on port 8443 and HTTPS to start the setup. |
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
name: balena-mediaserver | |
type: sw.application | |
version: 2.0.6 |
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
$time_elapsed = timeAgo($time_ago); //The argument $time_ago is in timestamp (Y-m-d H:i:s)format. | |
//Function definition | |
function timeAgo($time_ago) | |
{ | |
$time_ago = strtotime($time_ago); | |
$cur_time = time(); | |
$time_elapsed = $cur_time - $time_ago; | |
$seconds = $time_elapsed ; |
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
#version: "3.8" #can be omitted nowadays | |
networks: | |
caddy: | |
external: true | |
default: | |
volumes: | |
caddy_data: {} |