Skip to content

Instantly share code, notes, and snippets.

@dmpanch
dmpanch / howto_create_online_radio_macos_sierra.txt
Last active June 30, 2024 06:14
How to create internet radio on MacOS Sierra 10.12
All actions are performed in Terminal.app.
1. Install Homebrew http://brew.sh/
2. Install Jack (route audio tool) http://jackaudio.org/. Current stable version from official website doesn't work with
MacOS Sierra (I use 10.12.3) so you need to download beta version from there https://yadi.sk/d/JwT10b7v3Dm5yy.
After installing reboot your computer.
3. Install Darkice (audio streamer) via brew.
version: '3'
services:
https-portal:
image: steveltn/https-portal:1
links:
- syspass
ports:
- '80:80'
- '443:443'
2020-05-07 16:44:27+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.2.31+maria~bionic started.
2020-05-07 16:44:28+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2020-05-07 16:44:28+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.2.31+maria~bionic started.
2020-05-07 16:44:29 140664051476160 [Note] mysqld (mysqld 10.2.31-MariaDB-1:10.2.31+maria~bionic) starting as process 1 ...
2020-05-07 16:44:29 140664051476160 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-05-07 16:44:29 140664051476160 [Note] InnoDB: Uses event mutexes
2020-05-07 16:44:29 140664051476160 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-05-07 16:44:29 140664051476160 [Note] InnoDB: Using Linux native AIO
2020-05-07 16:44:29 140664051476160 [Note] InnoDB: Number of pools: 1
2020-05-07 16:44:29 140664051476160 [Note] InnoDB: Using SSE2 crc32 instructions
[Thu May 07 16:45:45.502690 2020] [:error] [pid 716] [client 192.168.112.3:44234] [INFO] [Extensions checked] SP\\Core\\PhpExtensionChecker::checkMandatory, referer: https://example.com/index.php?r=install/index
[Thu May 07 16:45:45.505626 2020] [:error] [pid 716] [client 192.168.112.3:44234] [INFO] [Saved icons cache] SP\\Core\\UI\\Theme::saveIcons, referer: https://example.com/index.php?r=install/index
[Thu May 07 16:45:45.506835 2020] [:error] [pid 716] [client 192.168.112.3:44234] [INFO] [Loaded actions cache] SP\\Core\\Acl\\Actions::loadCache, referer: https://example.com/index.php?r=install/index
[Thu May 07 16:45:46.006725 2020] [:error] [pid 716] [client 192.168.112.3:44234] [EXCEPTION] [Unable to connect to DB\n#0 /var/www/html/sysPass/lib/SP/Storage/Database/Database.php(216): SP\\Storage\\Database\\MySQLHandler->getConnection()\n#1 /var/www/html/sysPass/lib/SP/Storage/Database/Database.php(175): SP\\Storage\\Database\\Database->prepareQueryData(Object(SP\\Storage\\Database\\QueryData))\n#2 /var/www
@dmpanch
dmpanch / gist:90d7c9bc2d9cb08cc016f7ecbc68725e
Created May 7, 2020 16:56
docker-inspect-syspass-internal
[
{
"Name": "syspass_internal",
"Id": "5edfb0365e3c3b33bc91d912e555a999a4e7af1993fc0e4dbc01aeaeb6a6ba0e",
"Created": "2020-05-07T18:44:26.936385058+02:00",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
version: '3'
services:
nexmo:
image: nexmodev/nexmo-oas-renderer:latest
ports:
- '4567:4567'
restart: always
environment:
Errno::ENOENT at /definitions/API_v972_swagger-1.7.0
No such file or directory - Could not find definition 'definitions/API_v972_swagger-1.7' in './'
file: open_api_definition_resolver.rb location: find line: 14
/lib/nexmo/oas/renderer/services/open_api_definition_resolver.rb in find
raise Errno::ENOENT, "Could not find definition '#{name}' in '#{API.oas_path}'"
/lib/nexmo/oas/renderer/presenters/open_api_specification.rb in definition
@definition ||= OpenApiDefinitionResolver.find(@definition_name)
/lib/nexmo/oas/renderer/presenters/open_api_specification.rb in initialize
@groups = Groups.new(definition)
PostgreSQL Database directory appears to contain a database; Skipping initialization
2020-06-11 13:36:37.393 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2020-06-11 13:36:37.394 UTC [1] LOG: listening on IPv6 address "::", port 5432
2020-06-11 13:36:37.402 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-06-11 13:36:37.462 UTC [20] LOG: database system was shut down at 2020-06-11 13:36:30 UTC
2020-06-11 13:36:37.477 UTC [1] LOG: database system is ready to accept connections
2020-06-11 13:36:37.685 UTC [27] ERROR: database "homer_data" already exists
2020-06-11 13:36:37.685 UTC [27] STATEMENT: CREATE DATABASE homer_data
2020-06-11 13:36:37.685 UTC [27] ERROR: role "homer_user" already exists
# enable pwm on GPIO 13
dtparam=audio=on
dtoverlay=pwm,pin=13,func=4,enable_jack
# display settings
gpio=0-9=a2
gpio=12-17=a2
gpio=20-25=a2
dtoverlay=dpi24
enable_dpi_lcd=1
import RPi.GPIO as GPIO
import time
import os
os.system('raspi-gpio set 13 ip')
GPIO.setmode(GPIO.BCM)
GPIO.setup(26, GPIO.IN, pull_up_down=GPIO.PUD_UP)
os.system('amixer sset "PCM" 0%')