Skip to content

Instantly share code, notes, and snippets.

Dmitry Patsura ovr

View GitHub Profile
@ovr
ovr / gist:7bba0c7a079b7bbc320c5b01c39140b5
Created January 16, 2019 23:01 — forked from jestan/gist:4411538
MAP Protocol Error Codes

MAP Protocol Error Codes

Generic errors

34 System failure

35 Data Missing

36 Unexpected Data Value

21 Facility Not Supported

@ovr
ovr / ffmpeg2.2.sh
Created February 27, 2016 17:08 — forked from peterbe/ffmpeg2.2.sh
#!/bin/bash
rm -fr /tmp/ffmpeg2.2-experiment
mkdir /tmp/ffmpeg2.2-experiment
ffmpeg -ss 00:01:09 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-01.jpg
ffmpeg -ss 00:02:19 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-02.jpg
ffmpeg -ss 00:03:29 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-03.jpg
ffmpeg -ss 00:04:39 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-04.jpg
ffmpeg -ss 00:05:49 -i mp4.mp4 -vframes 1 /tmp/ffmpeg2.2-experiment/screencap-05.jpg
@ovr
ovr / screenshare
Last active August 29, 2015 14:26 — forked from Saicheg/screenshare
Share screenshots on Ubuntu using Dropbox
#!/bin/bash
################
# Description:
# This script will take screenshot of your desktop
# or only active window ( running with -u param ),
# copy it to /Dropbox/Public/share/ with uniq name
# and save path to clipboard
#################
# Requirements:
# Dropbox
#Download Elementary OS from here:
#http://sourceforge.net/projects/elementaryos/files/stable/
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
@ovr
ovr / 0_reuse_code.js
Created February 5, 2014 13:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#! /bin/bash
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
# Further changes by Javier Fernandez-Sanguino <jfs@debian.org>
# Modified for sphinx by Radu Spineanu <radu@debian.org>
#
#
#! /bin/bash
### BEGIN INIT INFO
# Provides: memcached
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start memcached daemon