Skip to content

Instantly share code, notes, and snippets.

View jakubjedelsky's full-sized avatar

Jakub Jedelsky jakubjedelsky

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jakubjedelsky on github.
  • I am jakubjedelsky (https://keybase.io/jakubjedelsky) on keybase.
  • I have a public key whose fingerprint is DFD5 1CD2 ECB8 AE6B 101C 857C B028 6C16 782C 0BA2

To claim this, I am signing this object:

@jakubjedelsky
jakubjedelsky / 00-touchapd-synaptics.conf
Created February 27, 2015 10:37
Touchpad Synaptics Config
# source: https://major.io/2013/08/24/get-a-rock-solid-linux-touchpad-configuration-for-the-lenovo-x1-carbon/
# softlink this file into:
# /etc/X11/xorg.conf.d
# and prevent the settings app from overwriting our settings:
# gsettings set org.gnome.settings-daemon.plugins.mouse active false
Section "InputClass"
Identifier "touchpad catchall"
@jakubjedelsky
jakubjedelsky / py3status.spec
Last active August 29, 2015 14:08
SPEC file for py3status
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Name: py3status
Version: 1.6
Release: 1%{?dist}
Summary: An extensible i3status wrapper written in python
Group: User Interface/Desktops
License: BSD
@jakubjedelsky
jakubjedelsky / asciinema.spec
Last active December 29, 2015 10:09
asciinema rpm spec file
%global debug_package %{nil}
%global provider github
%global provider_tld com
%global pkgname asciinema
%global project %{pkgname}-cli
%global import_path %{provider}.%{provider_tld}/%{pkgname}/%{project}
%global commit b68b7e6333e971fc1960c647b4ccfb451ca7f39c
%global shortcommit %(c=%{commit}; echo ${c:0:7})
#!/bin/bash
# CentOS 6
yum -y remove httpd bind ; yum -y update
rpm -ivh http://ftp.linux.cz/pub/linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
yum -y install puppet git
wget "https://raw.github.com/jakubjedelsky/puppet/9c49519266c7a3f9f761bc5f6041c66d42c80d1f/lib/puppet/provider/service/monit.rb" -O /usr/lib/ruby/site_ruby/1.8/puppet/provider/service/monit.rb
git clone https://github.com/jakubjedelsky/puppet-monit-httpd.git
cd puppet-monit-httpd
@jakubjedelsky
jakubjedelsky / rsync-fadvise.spec
Created November 19, 2012 10:42
rsync-fadvise SPEC file
# $Id$
# Authority: dag
# Upstream: Martin Pool <mbp$sourcefrog,net>
# Rationale: rsync 2.6.3+ uses less resources and has lots of improvements
### EL6 ships with rsync-3.0.6-5.el6
### EL5 ships with rsync-2.6.8-3.1
### EL4 ships with rsync-2.6.3-1
### EL3 ships with rsync-2.5.7-5.3E
### EL2 ships with rsync-2.5.7-3.21AS.1
@jakubjedelsky
jakubjedelsky / check_mem.sh
Created August 9, 2012 10:27
Memory leak keeper
#!/bin/bash
#
# Memory leak keeper
#
# simple log
LOG_FILE='/dev/stdout'
# system info, can be $LOG_FILE
COL_FILE=$LOG_FILE
# mem limit in percent
@jakubjedelsky
jakubjedelsky / vhost-reader.py
Created July 19, 2012 09:59
Simple VirtualHost parser
#!/usr/bin/env python
#
# simle'n'stupid vhost "parser"
#
# Usage: ./vhosts-reader.py FILE
# FILE is a apache config file
import re
import sys
import os.path
@jakubjedelsky
jakubjedelsky / gist:1164518
Created August 23, 2011 06:59
ssh & paramiko - základy
# http://www.minvolai.com/blog/2009/09/how-to-ssh-in-python-using-paramiko/
import os
import paramiko
ssh = paramiko.SSHClient()
ssh.load_host_keys(os.path.expanduser(os.path.join('~', '.ssh', 'known_hosts')))
# using ssh keys
key_filename = os.path.expanduser(os.path.join('~', '.ssh', 'id_dsa'))
ssh.connect('servername', username='username' key_filename=key_filename)
stdin, stdout, stderr = ssh.exec_command('ls -l /tmp')
@jakubjedelsky
jakubjedelsky / booooring.py
Created May 26, 2011 12:46
I am so bored!!1
#!/usr/bin/env python
#
# I am so bored!!1
#
import webbrowser, random
timeeaters = [
'www.google.com',
'www.facebook.com',
'www.twitter.com',