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 / 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
@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 / installing-pisignage-server-centos7.2.md
Last active March 15, 2016 23:25
Installing PiSignage on CentOS 7.2

#Installing colloqui's PiSignage on CentOS 7.2 https://github.com/colloqi/pisignage-server

##Create the server user sudo adduser mediaservice sudo gpasswd -a mediaservice wheel

This user will run your PiSignage server instance

##Installing Mongo DB

@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 / bancomer-filtros-ublock.txt
Last active October 20, 2017 16:48
Filtros para uBlock Origin para el portal de Bancomer
bbvanet.com.mx##div.promo
bbvanet.com.mx##div.bannerNomina
bbvanet.com.mx##img.banner
bbvanet.com.mx##div.campNomina
bbvanet.com.mx##div#promocionesPG
bbvanet.com.mx##div.donaCruzRoja
bbvanet.com.mx##div#sin-tarjeta-container
@hdml
hdml / anorex.css
Last active December 3, 2016 02:18
Stylesheet from What.cd rehosted for its preservation.
*{padding:0em;margin:0em;}html{min-width:930px;width:100%;}body{width:100%;background:url('https://ptpimg.me/i95w6f.png');font-family:tahoma,helvetica,sans-serif;font-size:8pt;color:#492802;}a{color:#6B481E;text-decoration:none;border:none;}a:hover{text-decoration:none;color:#A56A22;}h1,h2,h3,h4{margin:5px 0px;}h2{text-align:center;}h4{font-size:8pt;}p{margin:10px 5px;}li{margin:5px 15px;}input{padding:2px 3px;}textarea{padding:2px 3px;}img{border:none;}.r00{color:#FF0000;}.r01{color:#FF1300;}.r02{color:#FF1300;}.r03{color:#FF2600;}.r04{color:#FF4C00;}.r05{color:#FF5E00;}.r06{color:#FF5E00;}.r07{color:#FF7100;}.r08{color:#FF9700;}.r09{color:#FFAA00;}.r10{color:#74C42E;}.r20{color:#418B00;}.r50{color:#418B00;}.r99{color:#418B00;}span.size1{font-size:0.75em;}span.size2{font-size:1em;}span.size3{font-size:1.25em;}span.size4{font-size:1.5em;}span.size5{font-size:1.75em;}span.size6{font-size:2em;}span.size7{font-size:2.25em;}span.size8{font-size:2.5em;}span.size9{font-size:2.75em;}span.size10{font-size:3em;}ul.thi
@hdml
hdml / custom_ssl_unifi_controller.md
Last active June 9, 2024 16:57
Installing a custom SSL cert on a Unifi Controller

##Installing a custom SSL cert on Unifi Controller

Requirements:

  • Domain certificate (*.crt)
  • Certificate key (*.key)
  • Intermediate certificate from CA (*.crt, *.pem)
  • Permissions to restart the unifi service
  • Debian or Ubuntu Unifi Controller installation
@hdml
hdml / custom-ssl-cert-rdp.md
Created April 19, 2017 21:24
Custom SSL Certificate for Windows RDP Service

##Custom SSL Certificate for Windows RDP Service

Requirements

  • Windows 8+ or Server 2012+
  • Certificate with private key (*.p12)
  • Intermediate CA certificate (*.cer)
  • Administrative rights to modify the certificate store
@hdml
hdml / solution.md
Created August 1, 2017 02:12
Apple Motion too slow when dragging a picture

Does your Motion Project beachballs to a halt when you try and drag a picture?

Fear not! just disable Inset View and your problems will be over.

@hdml
hdml / nut_osx.txt
Last active August 15, 2024 16:40 — 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/