Skip to content

Instantly share code, notes, and snippets.

@dacbarbos
dacbarbos / isohybrid.pl
Last active July 12, 2017 05:35 — forked from jsarenik/isohybrid.pl
isohybrid.pl from Syslinux-6.03
#!/usr/bin/env perl
## -----------------------------------------------------------------------
##
## Copyright 2002-2008 H. Peter Anvin - All Rights Reserved
## Copyright 2009 Intel Corporation; author: H. Peter Anvin
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, Inc., 53 Temple Place Ste 330,
## Boston MA 02111-1307, USA; either version 2 of the License, or
@dacbarbos
dacbarbos / ObjectStorageUploader.py
Last active May 29, 2017 23:26 — forked from follower46/ObjectStorageUploader.py
Object Storage Uploader Script
# Article --> https://sldn.softlayer.com/blog/ashaw/object-storage-uploader
# ================================================================================
# ObjectStorageUploader.py
# © Copyright IBM Corporation 2014.
# LICENSE: MIT (http://opensource.org/licenses/MIT)
# ================================================================================
import argparse
import os
@dacbarbos
dacbarbos / travis-ssh-keys.sh
Last active April 18, 2017 23:47 — forked from koter84/travis_secure_private_key.sh
Create a private key-pair and encrypt it for use in .travis.yml with working code for decrypting it on both Linux and macOS builders
#!/bin/env bash
ssh-keygen -t rsa -N "" -C travis -f ./travis_key
# tested on Linux only (according the author)
# on macOS you'll need gsplit instead of split
# decryption should work on both Linux and macOS travis-workers
# official doc/help page https://docs.travis-ci.com/user/encryption-keys
# see also http://stackoverflow.com/questions/18027115/committing-via-travis-ci-failing
@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 / 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 / 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