Skip to content

Instantly share code, notes, and snippets.

View npsolution's full-sized avatar

Nicola Passarelli npsolution

View GitHub Profile
@npsolution
npsolution / camera.md
Created April 13, 2021 11:34 — forked from gabonator/camera.md
Cheap chinese IP camera with H264 encoding based on Hisilicon 8M (Hi3518E) chip

Cheap chinese IP camera with H264 encoding based on Hisilicon 8M (Hi3518E) chip

Video stream url for VLC/DVR:

  • rtsp://192.168.1.93:554/user=admin&password=&channel=&stream=.sdp?real_stream--rtp-caching=100

Telnet access

  • telnet 192.168.1.10 23
  • Localhost login: root
  • Password: xmhdipc
@npsolution
npsolution / graylog-install.sh
Created August 27, 2023 15:32 — forked from cyberkryption/graylog-install.sh
Graylog 5 Install script
#!/bin/bash
echo "[+] Checking for root permissions"
if [ "$EUID" -ne 0 ];then
echo "Please run this script as root"
exit 1
fi
echo "[+] Seeting needrestart to automatic to prevent restart pop ups"
sudo sed -i 's/#$nrconf{restart} = '"'"'i'"'"';/$nrconf{restart} = '"'"'a'"'"';/g' /etc/needrestart/needrestart.conf
@npsolution
npsolution / syno_hb_hcio.sh
Created March 24, 2024 14:42 — forked from luckman212/syno_hb_hcio.sh
Script to ping healthchecks.io if Synology HyperBackup was successful
#!/usr/bin/env bash
ENDPOINT='https://hc-ping.com/{insert-HealthChecks-UUID-here}'
LOGFILE='/var/log/synolog/synobackup.log'
[[ -e $LOGFILE ]] || exit 1
awk -f- $LOGFILE <<'EOF'
BEGIN {
FS="\t";