Skip to content

Instantly share code, notes, and snippets.

View faleev's full-sized avatar

Pavlo Falieiev faleev

View GitHub Profile
@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:5627377
Created May 22, 2013 13:03
Skype Chat commands
/help
Вывод списка команд с некоторым описанием.
Работает как в Win7 так и в Ubuntu.
/add [Skype_Name]
Добавляет пользователя Skype_Name к чату.
Win7 — работает, при этом если чат был изначально с 1 собеседником, групповой чат создается в новом окне, иначе контакт добавляется в это же окно.
Ubuntu — работает групповой чат создается в окне в котором была введена команда.
/alertsoff
@faleev
faleev / jdk4ubuntu.md
Created May 22, 2013 13:22
Install JDK on Ubuntu
/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 / 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.
@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 / 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 / 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 / video4android.sh
Created August 22, 2012 21:04
Convert video for HTC Desire
#!/bin/sh
# Convert widescreen-clips to mp4 for android
# http://www.linux.org.ru/forum/mobile/5042707
# How to compile FFMPEG:
# https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
INPUT="$1"
if [ ! -f "$INPUT" ] ; then
echo File $INPUT not found
@faleev
faleev / list.md
Created February 25, 2021 09:27 — forked from ih2502mk/list.md
Quantopian Lectures Saved