Skip to content

Instantly share code, notes, and snippets.

View mailopl's full-sized avatar

Marcin Wawrzyniak mailopl

View GitHub Profile
#!/bin/bash
echo "------------------------------------"
echo " NIMIQ Skypool installation script "
echo "------------------------------------"
printf "Enter machine name: "
read -r name
@mailopl
mailopl / .htaccess
Last active June 9, 2016 20:42
mod_pagepseed full config with comments
<IfModule pagespeed_module>
ModPagespeed On
ModPagespeedRewriteLevel PassThrough
#ModPagespeedEnableFilters convert_jpeg_to_webp,convert_jpeg_to_progressive
# The 'Add Instrumentation' filter injects two small blocks of JavaScript into every HTML page. These blocks measure the time the client spends
# loading and rendering the page, and report that measurement back to the server.
# LOW RISK
ModPagespeedEnableFilters add_instrumentation
C:\VirtualVMS\dev-standalone-vagrant>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["hostonlyif", "create"]
Stderr: 0%...
function FastClick(b){var c,a=this;this.trackingClick=false;this.trackingClickStart=0;this.targetElement=null;this.touchStartX=0;this.touchStartY=0;this.lastTouchIdentifier=0;this.touchBoundary=10;this.layer=b;if(!b||!b.nodeType){throw new TypeError("Layer must be a document node");}this.onClick=function(){return FastClick.prototype.onClick.apply(a,arguments);};this.onMouse=function(){return FastClick.prototype.onMouse.apply(a,arguments);};this.onTouchStart=function(){return FastClick.prototype.onTouchStart.apply(a,arguments);};this.onTouchMove=function(){return FastClick.prototype.onTouchMove.apply(a,arguments);};this.onTouchEnd=function(){return FastClick.prototype.onTouchEnd.apply(a,arguments);};this.onTouchCancel=function(){return FastClick.prototype.onTouchCancel.apply(a,arguments);};if(FastClick.notNeeded(b)){return;}if(this.deviceIsAndroid){b.addEventListener("mouseover",this.onMouse,true);b.addEventListener("mousedown",this.onMouse,true);b.addEventListener("mouseup",this.onMouse,true);}b.addEventListe
function FastClick(b){var c,a=this;this.trackingClick=false;this.trackingClickStart=0;this.targetElement=null;this.touchStartX=0;this.touchStartY=0;this.lastTouchIdentifier=0;this.touchBoundary=10;this.layer=b;if(!b||!b.nodeType){throw new TypeError("Layer must be a document node");}this.onClick=function(){return FastClick.prototype.onClick.apply(a,arguments);};this.onMouse=function(){return FastClick.prototype.onMouse.apply(a,arguments);};this.onTouchStart=function(){return FastClick.prototype.onTouchStart.apply(a,arguments);};this.onTouchMove=function(){return FastClick.prototype.onTouchMove.apply(a,arguments);};this.onTouchEnd=function(){return FastClick.prototype.onTouchEnd.apply(a,arguments);};this.onTouchCancel=function(){return FastClick.prototype.onTouchCancel.apply(a,arguments);};if(FastClick.notNeeded(b)){return;}if(this.deviceIsAndroid){b.addEventListener("mouseover",this.onMouse,true);b.addEventListener("mousedown",this.onMouse,true);b.addEventListener("mouseup",this.onMouse,true);}b.addEventListe
[echo] Regenerating CSS files from scss using Compass
/var/lib/jenkins/workspace/ipc-sites-trustedreviews-frontend-sf2/ipc-sites-trustedreviews-frontend-sf2
directory ../src/Ipc/TrBundle/Resources/public/generated-css/
directory ../src/Ipc/TrBundle/Resources/public/generated-css/pages/
error bootstrap.scss (Line 5: File to import not found or unreadable: sass-bootstrap/sass/variables.
Load paths:
/var/lib/jenkins/workspace/ipc-sites-trustedreviews-frontend-sf2/ipc-sites-trustedreviews-frontend-sf2/src/Ipc/TrBundle/Resources/public/compass
/opt/ipc/lib/ruby/gems/1.9.1/gems/compass-0.12.2/frameworks/blueprint/stylesheets
/opt/ipc/lib/ruby/gems/1.9.1/gems/compass-0.12.2/frameworks/compass/stylesheets
@mailopl
mailopl / jq_disqus_onscroll.js
Created November 15, 2013 12:29
Loads Disqus when scrolled down to disqus div.
/*
|---------------------------------------------------------------------------------------
| This function disqus when you scroll down to disqus div.
|
| @author Marcin Wawrzyniak
|---------------------------------------------------------------------------------------
*/
(function($){
var loadDisqus = function() {
var ipc = ipc || {};
// Step 1: Maintain BC with ipc.adtech
ipc.adloader = ipc.adtech = function () {
/**
* DFP acount ID
*/
var _dfp_account_id = '',
test
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "http://connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>