Skip to content

Instantly share code, notes, and snippets.

View dplesca's full-sized avatar
👀

Dragos Plesca dplesca

👀
  • Bucharest, Romania
View GitHub Profile
package main
import (
"fmt"
"log"
"os/exec"
"path/filepath"
"sync"
)
@dplesca
dplesca / gifenc.sh
Last active September 15, 2020 10:04
#gif with text overlay #generator using #ffmpeg - inspired by http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
#!/bin/bash
#parameters:
# $1 - mp4 url
# $2 - start time in format hh:mm:ss.mic
# $3 - duration in seconds
# $4 - text for gif overlay
# $5 - output file without extension
if [ "$#" -ne 5 ]
then
echo "Usage: gifenc.sh \$1 \$2 \$3 \$4 \$5
@dplesca
dplesca / list.md
Last active September 7, 2017 10:19
checklist for new #raspbian install on #raspberry pi

Checklist for pi fresh install

  • before everything, add ssh file in /boot/
  • update & upgrade sudo apt-get update & sudo apt-get upgrade
  • install tmux, ntfs-3g, mediainfo sudo apt install tmux ntfs-3g mediainfo
  • unmount external HDD & mount with ntfs-3g
  • download go-omxremote
  • use caddy
  • install transmission
@dplesca
dplesca / deezer.php
Created September 12, 2013 14:03
sample deezer app
<?php
$app_id = "YOUR_APP_ID";
$app_secret = "YOUR_APP_SECRET";
$my_url = "YOUR_CALLBACK_URL";
session_start();
$code = $_REQUEST["code"];
if(empty($code)){
@dplesca
dplesca / grid.css
Created August 20, 2013 12:49
#purecss.io fixed 810px grid for #facebook apps
.fb-row {
letter-spacing: -0.31em;
*letter-spacing: normal;
*word-spacing: -0.43em;
text-rendering: optimizespeed;
}
.opera-only :-o-prefocus,
.fb-row {
word-spacing: -0.43em;