Skip to content

Instantly share code, notes, and snippets.

Jean Pierre Kolb JPKCom

Block or report user

Report or block JPKCom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
JPKCom /
Created Nov 6, 2018 — forked from Superbil/
auto update chromium on osx
# Chromium update script
# - by shad <>
# - by superbil <>
LATEST=$(wget -q -O - ${SITE}${OS}/LATEST)
JPKCom /
Created Apr 19, 2018 — forked from dhlavaty/
Create RAM disk in macOS High Sierra (10.13.3)

Create RAM disk in macOS High Sierra (10.13.3)


$ diskutil list



Keybase proof

I hereby claim:

  • I am jpkcom on github.
  • I am jpkcom ( on keybase.
  • I have a public key ASBD3ijZFv23dYO0feXCbba9azKXpEJWAaXK2PfiiiJv9Ao

To claim this, I am signing this object:

JPKCom / CssServer.php
Created May 2, 2017 — forked from dstorozhuk/CssServer.php
Extends the Leafo\ScssPhp\Server. Add source map. Part of Drupal 8 module.
View CssServer.php
* Created by PhpStorm.
* User: dima
* Date: 11/12/16
* Time: 11:58 AM
namespace Drupal\bootstrap_sass_helper;
JPKCom / gist:5854207a20087c1b2489212fb9a1edf2
Created Jul 25, 2016 — forked from robdvr/gist:7451695
Adding Bootstrap Forms to WooCommerce
View gist:5854207a20087c1b2489212fb9a1edf2
add_filter('woocommerce_billing_fields', 'custom_woocommerce_billing_fields');
function custom_woocommerce_billing_fields( $fields ) {
$fields['billing_address_1']['class'] = array( 'form-group' );
$fields['billing_address_1']['input_class'] = array( 'form-control' );
return $fields;
View .htaccess
# Add correct content-type for fonts
AddType application/ .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType font/x-woff .woff
AddType image/svg+xml .svg
# Compress compressible fonts
AddOutputFilterByType DEFLATE font/ttf font/otf image/svg+xml
JPKCom / label-to-placeholder.js
Created Feb 22, 2016 — forked from makeusabrew/label-to-placeholder.js
Simple jQuery snippet to convert form labels into inline placeholders
View label-to-placeholder.js
$("form :input").each(function(index, elem) {
var eId = $(elem).attr("id");
var label = null;
if (eId && (label = $(elem).parents("form").find("label[for="+eId+"]")).length == 1) {
$(elem).attr("placeholder", $(label).html());
JPKCom / Usage
Created Feb 16, 2016 — forked from input/Usage
Add a jQuery UI library to a Drupal 7 site via template.php
View Usage
Place the 'themename_preprocess_html()' function in your theme's template.php file.
Rename 'themename' to your theme's actual name,
e.g. for 'bartik' the function name would be changed to 'bartik_preprocess_html'.
Change 'ui.slider' to whichever jQuery UI library you want to add.
In Drupal 7, jQuery UI library files are stored in '/misc/ui'.
See: for reference.
JPKCom / nginx.conf
Created Feb 10, 2016 — forked from jrom/nginx.conf
nginx hack for multiple conditions
View nginx.conf
if ($request_uri = /) {
set $test A;
if ($host ~* {
set $test "${test}B";
if ($http_cookie !~* "auth_token") {
set $test "${test}C";

#Letsencrypt Ubuntu 14.04 Nginx Letsencrypt ( is an initative which aims to increase the use of encryption for websites. It basically allows people to apply for free certificates provided that they prove the they control the requested domain.

Note: As of 7th Dec 2015 letsencrypt is still in public beta.

##Installation To install the client, clone the repostiory from github.

git clone
You can’t perform that action at this time.