Skip to content

Instantly share code, notes, and snippets.

View JosefJezek's full-sized avatar

Josef Ježek JosefJezek

  • Heart of Europe
View GitHub Profile
@JosefJezek
JosefJezek / install-and-setup-supportpress.md
Last active December 17, 2015 14:49
Install & Setup SupportPress
@JosefJezek
JosefJezek / ldap2csv.py
Last active April 23, 2022 07:49
Export Users from Active Directory / LDAP to CSV file with Python
#!/usr/bin/python
# http://www.packtpub.com/article/python-ldap-applications-ldap-opearations
# sudo apt-get install python-ldap
import ldap
host = 'ldap://example.com:389'
dn = 'ldap@example.com'
@JosefJezek
JosefJezek / eps-to-svg.md
Last active March 19, 2024 07:48
EPS to SVG Conversion using Inkscape

EPS to SVG using Inkscape Gittip

Author: Josef Jezek

# Install Inkscape on Ubuntu
sudo apt-get install inkscape
@JosefJezek
JosefJezek / ssd-benchmarking.md
Created June 3, 2013 08:43
SSD Benchmarking

SSD Benchmarking

Using hdparm

hdparm -Tt /dev/sda

Using dd

@JosefJezek
JosefJezek / how-to-wim.md
Last active December 18, 2015 07:38
How to Vim
@JosefJezek
JosefJezek / how-to-ntlm-with-apache.md
Last active July 27, 2021 02:42
How to NTLM with Apache
@JosefJezek
JosefJezek / csr.sh
Created June 13, 2013 07:57
Generate OpenSSL CSR with subjectAltNames
#!/bin/sh
# csr.sh: Certificate Signing Request Generator
# Copyright(c) 2005 Evaldo Gardenali <evaldo@gardenali.biz>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
@JosefJezek
JosefJezek / how-to-imagemagick.md
Created June 17, 2013 09:14
How to ImageMagick

How to ImageMagick

Install on Ubuntu

sudo apt-get install imagemagick

Usage

@JosefJezek
JosefJezek / wordpress-buddypress-search-default.php
Created June 18, 2013 13:14
WordPress BuddyPress Search Default Posts
<?php
/*
Plugin Name: BuddyPress Search Default
Plugin URI: https://gist.github.com/5805248
Description: Default search select is posts. Search on home URL for custom posts URL.
Author: Josef Jezek
Author URI: http://about.me/josefjezek
Version: 0.2
*/
@JosefJezek
JosefJezek / wordpress-submenu-shortcode.php
Created June 19, 2013 09:40
WordPress Plugin Submenu Shortcode
<?php
/**
* @package Submenu Shortcode
* @version 1.0
*/
/*
Plugin Name: Submenu Shortcode
Plugin URI: https://gist.github.com/5813043
Description: Add Submenu with a shortcode: [submenu menu="Menu" level=2]. A plugin based on a script by <a href="http://www.cozmoslabs.com/1170-wp_nav_menu-shortcode/">Cozmoslabs</a>. Dependency on <a href="http://wordpress.org/plugins/codepress-menu">Codepress Menu</a>.
Author: Josef Jezek