This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Jakub Jedelsky <[email protected]> | |
# | |
# Simple UTL shortener using google API (outcome | |
# address is goo.gl). | |
# | |
# GNU GPLv2+ | |
# | |
import urllib2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# I am so bored!!1 | |
# | |
import webbrowser, random | |
timeeaters = [ | |
'www.google.com', | |
'www.facebook.com', | |
'www.twitter.com', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{!?__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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
OlderNewer