Skip to content

Instantly share code, notes, and snippets.

Direct copy of pre-encoded file:

$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8

@dizda
dizda / install-bitcoind.sh
Last active July 18, 2022 06:41
Install bitcoind on debian wheezy
wget https://github.com/bitcoin/bitcoin/archive/v0.9.3.tar.gz
tar xvzf v0.9.3.tar.gz
mv bitcoin-0.9.3/ daemon/
apt-get install build-essential libtool autotools-dev autoconf libssl-dev libboost-all-dev pkg-config
# Get configure
./autogen.sh
# Enable hardening is more secure
@amirkdv
amirkdv / php_mdb.rst
Last active August 25, 2023 13:14
How to handle MS Access MDB files in Linux with PHP5 PDO and ODBC

To be able to use PHP5 PDO with MS Access mdb files the following is required (the same applies for the PHP4 style of using odbc_X except for the obviously PDO specific requirements):

PHP ODBC module

In Linux this is achieved by intalling the php5-odbc package:

<link rel="stylesheet" href="http://static.ak.fbcdn.net/rsrc.php/zD5ZK/hash/4146lpfk.css" type="text/css" />
<script type="text/javascript">
var fbURL = PASTE_FACEBOOK_URL_HERE;
function insertLikeButton() {
var container = document.getElementById('flbCont');
var w = container.style.width;
var h = container.style.height;
fbFrame = document.createElement("IFRAME");
fbFrame.setAttribute("src", fbURL);
fbFrame.setAttribute("scrolling", "no");