Skip to content

Instantly share code, notes, and snippets.

View faleev's full-sized avatar

Pavlo Falieiev faleev

View GitHub Profile
@faleev
faleev / list.md
Created February 25, 2021 09:27 — forked from ih2502mk/list.md
Quantopian Lectures Saved
@faleev
faleev / gist:7805157
Created December 5, 2013 13:30
run custom firefox binary
protected WebDriver driver;
private void startFirefoxDriver() {
//driver = new FirefoxDriver();
FirefoxBinary binary = new FirefoxBinary(new File("/Users/username/Downloads/Firefox.app/Contents/MacOS/firefox-bin"));
FirefoxProfile profile = new FirefoxProfile();
this.driver = new FirefoxDriver(binary, profile);
}
@faleev
faleev / gist:6068267
Created July 24, 2013 05:32
Enable Java in browsers
Follow these instructions to enable Java in your web browser on Ubuntu Linux.
Google Chrome
Become the root user by running the su command and then enter the super-user password. Type:
sudo -s
Create a directory called plugins if you do not have it. Type:
mkdir -p /opt/google/chrome/plugins
Go to Google chrome plugins directory before you make the symbolic link. Type:
cd /opt/google/chrome/plugins
Create a symbolic link. Type:
@faleev
faleev / delete-old-kernels-ubuntu.md
Last active July 21, 2018 05:57
Delete old kernels on Ubuntu/Debian
dpkg -l | grep ii | awk '{print $2}' | \
grep -E 'linux-(image|headers|ubuntu-modules|restricted-modules)' | \
grep -vE 'linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)' | \
grep -v $(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g') | \

xargs apt-get -y purge

@faleev
faleev / gist:5627558
Created May 22, 2013 13:32
Fedora tweaks
### Install Ubuntu font ###
1. Let’s work from your Downloads folder.
cd ~/Downloads
2. Download the Ubuntu Fonts package from Ubuntu.
wget http://font.ubuntu.com/download/ubuntu-font-family-0.80.zip
3. Extra the downloaded zip file.
unzip ubuntu-font-family-0.80.zip
4. Rename the extracted directory. (Not a must)
mv ubuntu-font-family-0.80 ubuntu-font-family
5. Copy the extracted directory to the system shared fonts directory.
/etc/rc.local:
#!/bin/sh -e
#
# rc.local
#
watch -t -n 1 sh -c "echo -en ''; date '+%d.%m.%y' | figlet -w 70 -c; date '+%H:%M' | figlet -w 70 -c -f banner; cat /tmp/unntweather" &
exit 0
@faleev
faleev / jdk4ubuntu.md
Created May 22, 2013 13:22
Install JDK on Ubuntu
@faleev
faleev / gist:5627377
Created May 22, 2013 13:03
Skype Chat commands
/help
Вывод списка команд с некоторым описанием.
Работает как в Win7 так и в Ubuntu.
/add [Skype_Name]
Добавляет пользователя Skype_Name к чату.
Win7 — работает, при этом если чат был изначально с 1 собеседником, групповой чат создается в новом окне, иначе контакт добавляется в это же окно.
Ubuntu — работает групповой чат создается в окне в котором была введена команда.
/alertsoff
@faleev
faleev / gist:3938842
Created October 23, 2012 13:48
Interactive wrapper for watching stream TV from http://tv.jampo.com.ua using cvlc player.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Bassed on https://gist.github.com/2494781
# Topmenu and the submenus are based of the example found at this location http://blog.skeltonnetworks.com/2010/03/python-curses-custom-menu/
# The rest of the work was done by Matthew Bennett and he requests you keep these two mentions when you reuse the code :-)
# Basic code refactoring by Andrew Scheller
import os
import sys
@faleev
faleev / gist:3435377
Created August 23, 2012 10:38
Compile FFmpeg on Ubuntu

Compile FFmpeg on Ubuntu

This guide supports Ubuntu Precise Pangolin 12.04, Ubuntu Oneiric Ocelot 11.10, Ubuntu Natty Narwhal 11.04, and Ubuntu Maverick Meerkat 10.10. Separate guides are available for Ubuntu Lucid Lynx 10.04 and Ubuntu Hardy Heron 8.04. This guide will enable several external encoding and decoding libraries: libfaac (AAC encoder), libfdk-aac (AAC encoder), libmp3lame (MP3 encoder), libopencore-amr (AMR encoder/decoder), librtmp (for additional RTMP protocols), libtheora (Theora encoder), libvorbis (Vorbis encoder), libvpx (VP8 encoder/decoder), and libx264 (H.264 encoder). These are optional and may be omitted if desired. This guide will also install many filters (see the filter list in the [Filtering Guide](https://ffmpeg.org/trac/ffmpeg/wiki/Fi