Skip to content

Instantly share code, notes, and snippets.

@dacbarbos
dacbarbos / html5video.sh
Last active April 14, 2016 21:02 — forked from gabstv/cvwebv.sh
#!usr/bin/env bash
# For this to work, you need to have ffmpeg
# installed with libvorbis, theora and libvpx ENABLED
# to do that in Homebrew:
# brew reinstall ffmpeg --with-libvpx --with-libvorbis --with-theora
#
# encoding reference:
# https://blog.mediacru.sh/2013/12/23/The-right-way-to-encode-HTML5-video.html
@dacbarbos
dacbarbos / pdnsd.plist
Last active January 26, 2017 23:52
pdnsd launchd config
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>dacbarbos.services.pdnsd</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/sbin/pdnsd</string>
<string>-mut</string>
@dacbarbos
dacbarbos / pdnsd.conf
Last active April 15, 2016 03:22
pdnsd.conf
# pdnsd.conf
# man pdnsd
global {
perm_cache=4096;
cache_dir="/usr/local/var/cache/pdnsd";
pid_file="/usr/local/var/run/pdnsd.pid";
server_ip=127.0.0.1;
server_port=8053;
status_ctl=on;
@dacbarbos
dacbarbos / macos.pdnsd.md
Last active April 15, 2022 03:43
macOS Quick PDNSD HowTo

macOS quick PDNSD HowTo

Installing pdnsd

$ brew install pdnsd
# alt: sudo port install pdnsd

# sudo chown -R nobody /usr/local/var/cache/pdnsd

$ curl -L https://goo.gl/r1dZBf -o pdnsd.conf

$ mv pdnsd.conf /usr/local/etc

@dacbarbos
dacbarbos / macos.motd.md
Last active April 12, 2017 17:29
ephemeral motd note(s)

Create a meaningful motd for macOS

Easiest

system_profiler SPHardwareDataType SPSoftwareDataType -detailLevel mini |sudo tee /etc/motd

Slicker

brew install archey; archey |sudo tee /etc/motd
@dacbarbos
dacbarbos / Backup-Postgres.ps1
Last active March 2, 2017 02:36 — forked from stefanprodan/Backup-Postgres.ps1
PostgreSQL cluster base backup automation PowerShell script
#############################################
##
## PostgreSQL base backup automation
## Author: Stefan Prodan
## Date : 20 Oct 2014
## Company: VeriTech.io
#############################################
# path settings
$BackupRoot = 'C:\Database\Backup';
@dacbarbos
dacbarbos / vsftpd.conf
Last active February 13, 2017 14:22
vsftpd.conf
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
@dacbarbos
dacbarbos / curl-gh-api.md
Last active March 21, 2017 01:45 — forked from btoone/curl.md
Using curl with GitHub's API