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:
I hereby claim:
To claim this, I am signing this object:
# 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" |
%{!?__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 |
%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 |
# $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 |
#!/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 |
#!/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 |
# 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') |
#!/usr/bin/env python | |
# | |
# I am so bored!!1 | |
# | |
import webbrowser, random | |
timeeaters = [ | |
'www.google.com', | |
'www.facebook.com', | |
'www.twitter.com', |