Skip to content

Instantly share code, notes, and snippets.

View julianxhokaxhiu's full-sized avatar
🚀
Impossible Is Nothing.

Julian Xhokaxhiu julianxhokaxhiu

🚀
Impossible Is Nothing.
View GitHub Profile
# Install ttfautohint on Ubuntu 14.04 LTS
# @author: Jean Lescure
# 2015/08/17
# Clone ttfautohint git repo to 'tmp' dir and cd into resulting repo folder
cd /tmp
git clone http://repo.or.cz/ttfautohint.git
cd ttfautohint
# Required for compilation
@julianxhokaxhiu
julianxhokaxhiu / bs3-responsive-text.scss
Created April 23, 2015 08:54
Bootstrap 3 Responsive Text Align
// Extend Text Alignment to make it responsive
.text-left-not-xs,
.text-left-not-sm,
.text-left-not-md,
.text-left-not-lg {
text-align: left;
}
.text-center-not-xs,
.text-center-not-sm,
.text-center-not-md,
@julianxhokaxhiu
julianxhokaxhiu / gist:31eb2f1a4c13956d2673
Last active August 29, 2015 14:20
Initialize a Desktop & Mobile slider based on device + Detectizr class. Also link the Desktop slider to jQuery Slick, so they scroll together. Finally embed Slick internal content to Fancybox if specified through data attribute
// Initialize two different lightbox plugins based on the device where we are
$( '.desktop .lightbox' )
.fancybox({
loop: false,
minWidth: 400,
maxWidth: 600,
beforeShow: function() {
var $this = $(this.element),
iframe = $.fancybox.inner.find('iframe'),
src = iframe.attr('src'),
(function($){
/* addClass shim
****************************************************/
var addClass = $.fn.addClass;
$.fn.addClass = function(value) {
var orig = addClass.apply(this, arguments);
var elem,
i = 0,
@julianxhokaxhiu
julianxhokaxhiu / index.html
Last active January 21, 2018 17:38
Vertically Center Slick slide, content with background-image
<!--
Uses Bootstrap 3.x framework for grids, but you can adapt this to any Framework if you want.
It also uses jQuery Slick as a slider.
Everything is "auto-with" and "auto-height", which means no restrictions on width or height.
Works fine from tablets and more. Not suggested on Mobile, or at least, needs some fixes.
-->
<div class="slider-with-text-block">
<div class="slick-slider">
<div class="slick-slide">
<img class="img-responsive" src="..." alt="">
@julianxhokaxhiu
julianxhokaxhiu / .htaccess
Last active August 29, 2015 14:27
Allow google and developers IP access without pw
# Allow google and developers IP access without pw
AuthName "Authorized Users Only."
AuthType Basic
AuthUserFile /etc/httpd/conf/.htpasswd
require user testusr
Order deny,allow
Deny from all
Allow from 66.249.93.214 # PageSpeed Insights
Allow from 66.249.93.217 # PageSpeed Insights
Allow from 66.249.93.220 # PageSpeed Insights
@julianxhokaxhiu
julianxhokaxhiu / cleanup-docker.sh
Last active March 9, 2020 19:16
Cleanup docker images and containers on a machine
#!/bin/bash
docker rm -v $(docker ps -a -q -f status=exited)
docker rmi $(docker images -f "dangling=true" -q)
docker run -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker --rm martin/docker-cleanup-volumes
@julianxhokaxhiu
julianxhokaxhiu / guide.md
Last active August 29, 2015 14:27 — forked from mikkeloscar/guide.md
Setup armv7h chroot under x86_64 host (Archlinux/Archlinuxarm biased)

Setup armv7h chroot under x86_64 host (Archlinux/Archlinuxarm biased)

Simple way to setup an arm chroot for building packages for your arm devices. This is an alternative to cross-compiling where you are limited to only linking against the libs in your toolchain.

Setup chroot-fs

You can store the chroot wherever you like. I choose to store it in a disk-image which I mount to my filesystem.

@julianxhokaxhiu
julianxhokaxhiu / Readme.md
Last active March 25, 2019 12:39
Fix Chrome/Chromium ( also based browsers ) and Logitech SetPoints MediaKeys events ( Windows )
  1. Open C:\Program Files\Logitech\SetPointP\players.ini
  2. Add these lines to their respective sections
[Players]
GooglePlayMusic=key,chrome.exe,Chrome_WidgetWin_1,xxx,xxx,&0xB3,&0xB3,&0xB2,&0xB1,&0xB0,0,1,Google Play Music
# If you need support for a third party Chromium browser, for eg. Vivaldi, add this line
Vivaldi=key,vivaldi.exe,Chrome_WidgetWin_1,xxx,xxx,&0xB3,&0xB3,&0xB2,&0xB1,&0xB0,0,1,Vivaldi
# Basically you need to copy paste the line, change the "exe file name", the entry name ( before = ) and the last part after the ,

[Players.Run]
@julianxhokaxhiu
julianxhokaxhiu / README.md
Last active April 19, 2022 20:09
How to install OSX 10.11 El Capitan on VMWare

How to install OSX 10.11 El Capitan on VMWare

To accomplish this tutorial you already need a previous copy of OSX installed on VMWare Player or Workstation.

0) Acquire a copy of OSX 10.11 El Capitan

First of all you need to acquire a legal copy of OSX El Capitan from the App Store. This tutorial will not cover this part. Sorry :)

1) Unlock OSX option on VMWare

Download the latest version of VMWare Unlocker and use the relative binary to unlock it ( based on your Host OS ).