Skip to content

Instantly share code, notes, and snippets.

View cjemorton's full-sized avatar

Clement Morton cjemorton

View GitHub Profile
##
## Arch Linux repository mirrorlist
## Filtered by mirror score from mirror status page
## Generated on 2024-02-27
##
## Germany
#Server = https://ftp.fau.de/archlinux/$repo/os/$arch
## New Zealand
#Server = https://mirror.2degrees.nz/archlinux/$repo/os/$arch
[nix-shell:~/oracle_images]$ nix-build '<nixpkgs/nixos>' -A config.system.build.OCIImage --argstr system x86_64-linux --option system-features kvm -o oci-image
error: attribute 'OCIImage' in selection path 'config.system.build.OCIImage' not found
@cjemorton
cjemorton / dahdi_
Last active February 6, 2024 22:53
dahdi_ finding nothing.
root@rocky ~# systemctl status dahdi.service
● dahdi.service - LSB: DAHDI kernel modules
Loaded: loaded (/etc/rc.d/init.d/dahdi; generated)
Active: active (exited) since Tue 2024-02-06 17:37:20 EST; 2min 58s ago
Docs: man:systemd-sysv-generator(8)
Process: 1394 ExecStart=/etc/rc.d/init.d/dahdi start (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 48932)
Memory: 0B
CGroup: /system.slice/dahdi.service
root@rocky /u/s/asterisk# phreaknet update
+ AST_CONFIG_DIR=/etc/asterisk
+ AST_VARLIB_DIR=/var/lib/asterisk
+ AST_SOURCE_PARENT_DIR=/usr/src
+ AST_ALT_VER=
+ AST_MIN_PREFERRED_VER=20
+ AST_DEFAULT_MAJOR_VER=21
+ AST_NEXT_MAJOR_VER=22
+ AST_MAJOR_VER=21
+ AST_MM_VER=0
@cjemorton
cjemorton / phreaknet_20240206_1:30PM
Last active February 6, 2024 22:01
Example of phreaknet.sh run on 2024 02 06 @ 1:30Am
root@rocky /u/s/asterisk# phreaknet update
Updating PhreakScript...
Upstream: https://docs.phreaknet.org/script/phreaknet.sh
Successfully updated PhreakScript from 1.1.1 (2024-01-12) to 1.1.1 (2024-01-12)
root@rocky /u/s/asterisk# phreaknet install --force --dahdi
Real time pusling is not compatible or has been disabled for this build.
WARNING: You are installing Asterisk to run as root. This is not recommended.
Specify -u or --user to specify a run user
Starting installation with country code 1
@cjemorton
cjemorton / phreaknet_20240205_8:37PM
Created February 6, 2024 03:38
Example run of phreaknet.sh on 2024 02 05 @ 8:37PM
root@rocky /u/s/a/patches# phreaknet examples
========= PhreakScript Example Usages =========
Presented in the logical order of usage, but with multiple variations for each command.
Installation commands:
phreaknet install Install the latest version of Asterisk.
phreaknet install --cc=44 Install the latest version of Asterisk, with country code 44.
phreaknet install --force Reinstall the latest version of Asterisk.
#!/bin/sh
# Detect the shell
if [ -n "$BASH_VERSION" ]; then
SHELL_NAME="bash"
elif [ -n "$ZSH_VERSION" ]; then
SHELL_NAME="zsh"
else
SHELL_NAME="unknown"
fi
@cjemorton
cjemorton / 2024-02-02-make_log.txt-4.18.0-513.11.1.el8_9.x86_64
Created February 3, 2024 04:06
2024-02-02-make_log.txt-4.18.0-513.11.1.el8_9.x86_64 | Linux rocky 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 10 22:58:54 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux | d885c822405e22eee4267c569b80c2f41bdb5028
make -C drivers/dahdi/firmware firmware-loaders
make[1]: Entering directory '/usr/src/asterisk/dahdi-linux/drivers/dahdi/firmware'
make[1]: Leaving directory '/usr/src/asterisk/dahdi-linux/drivers/dahdi/firmware'
make -C /lib/modules/4.18.0-513.11.1.el8_9.x86_64/build M=/usr/src/asterisk/dahdi-linux/drivers/dahdi DAHDI_INCLUDE=/usr/src/asterisk/dahdi-linux/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory '/usr/src/kernels/4.18.0-513.11.1.el8_9.x86_64'
CC [M] /usr/src/asterisk/dahdi-linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.o
CC [M] /usr/src/asterisk/dahdi-linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.o
CC [M] /usr/src/asterisk/dahdi-linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_open.o
CC [M] /usr/src/asterisk/dahdi-linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_stats.o
CC [M] /usr/src/asterisk/dahdi-linu
apt update
apt upgrade -y
apt install -y libpve-network-perl dnsmasq frr-pythontools
cat /etc/network/interfaces
echo "source /etc/network/interfaces.d/*" >> /etc/network/interfaces
cat /etc/network/interfaces
​panic: initializing configuration: While parsing config: yaml: control characters are not allowed [recovered]
panic: Panic: initializing configuration: While parsing config: yaml: control characters are not allowed
goroutine 1 [running]:
main.handleError({0x1f27e00?, 0xc0003c9420})
github.com/stashapp/stash/cmd/stash/main.go:53 +0x7c
main.recoverPanic()
github.com/stashapp/stash/cmd/stash/main.go:44 +0x58
panic({0x15b1cc0, 0xc0004369c0})
runtime/panic.go:884 +0x212