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.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 / 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 / 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 / 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 / uri-url-urn.w3c.md
Last active March 21, 2017 01:38
URIs, URLs, and URNs
@dacbarbos
dacbarbos / ieee.org.md
Last active March 21, 2017 01:43
IEEE Registration Authority

IEEE Registration Authority

Downloads

  1. MAC Address Block Large (oui) : TXT or CSV

  2. Company ID (cid) : TXT or CSV

  3. Ethertype (eth) : TXT or CSV

  4. ManufacturerID (manid) : TXT or CSV

@dacbarbos
dacbarbos / curl-gh-api.md
Last active March 21, 2017 01:45 — forked from btoone/curl.md
Using curl with GitHub's API
@dacbarbos
dacbarbos / macos.mov2gif.md
Last active March 29, 2017 04:06
macOS mov2gif

macOS mov2gif

Install toolkit and create a short video

brew install ffmpeg gifsicle imagemagick  

screencapture rec.mov // you'd use QuickTime

Convertion steps

ffmpeg -i rec.mov -r 24 rec-%03d.png