Skip to content

Instantly share code, notes, and snippets.

View hdml's full-sized avatar

Jesús R. Robles hdml

  • Guadalajara, MX
View GitHub Profile
@hdml
hdml / nut_osx.txt
Last active March 28, 2024 06:55 — forked from 2b/nut_osx.txt
Network UPS Tools on macOS High Sierra (netclient)
#install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#install network ups tools
brew update
brew install nut
#create directories and change permissions
sudo mkdir -p /var/state/ups/upssched/
sudo chown -R `whoami`:nobody /var/state/ups
sudo chmod 775 /var/state/ups/
@hdml
hdml / installing pi-signage as a system service.md
Last active March 17, 2016 01:23
Pi-Signage node as a system service in CentOS 7

##Pi-Signage node as a system service ###Installing a node instance as a system service in CentOS 7

You need a user with sudo privileges, but limited to running node. This example will use the user mediaservice

$ visudo

Change the line Defaults: requiretty

To

@hdml
hdml / - Syncthing + start on boot.md
Last active November 22, 2023 19:26
How to install Syncthing on Raspberry Pi + start on boot [semi-automatic]

##Run install_syncthing.sh

$ curl -s https://gist.githubusercontent.com/hdml/7b079c114d3e20bf69f1/raw/1cd3647b1db4f80726c145fba725e27993a7fcdb/install_syncthing.sh | sudo bash

Start syncthing

$ syncthing

Wait until you get something like:

@hdml
hdml / latest-ffmpeg-centos6.sh
Last active April 4, 2020 11:55 — forked from mustafaturan/latest-ffmpeg-centos6.sh
Installs latest ffmpeg on Centos 6
# source: https://trac.ffmpeg.org/wiki/CentosCompilationGuide
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xzvf yasm-1.2.0.tar.gz
cd yasm-1.2.0