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
@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 / position-fixed.css
Created August 16, 2012 09:14 — forked from subtleGradient/position-fixed.css
Make position:fixed work in IE6
/*Make position:fixed work in IE6!*/
.fixed-top /* position fixed Top */{position:fixed;bottom:auto;top:0;}
.fixed-bottom /* position fixed Bottom */{position:fixed;bottom:0;top:auto;}
.fixed-left /* position fixed Left */{position:fixed;right:auto;left:0;}
.fixed-right /* position fixed right */{position:fixed;right:0;left:auto;}
* html,* html body /* IE6 Fixed Position Jitter Fix */{background-image:url(about:blank);background-attachment:fixed;}
* html .fixed-top /* IE6 position fixed Top */{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));}
* html .fixed-right /* IE6 position fixed right */{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)||0)-(parseInt(this.currentStyle.marginRight,10)||0));}
@julianxhokaxhiu
julianxhokaxhiu / demo.html
Last active November 18, 2015 11:51
BS3 Collapse without IDs
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse-parent-next" href="#">
Collapsible Group Item #1
</a>
</h4>
</div>
<div class="panel-collapse collapse in">
@julianxhokaxhiu
julianxhokaxhiu / PKGBUILD
Created December 13, 2015 16:49 — forked from fredmorcos/PKGBUILD
SDL2 Archlinux PKGBUILD for the Raspberry Pi
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Modified by Fred Morcos <fred.morcos@gmail.com> for the Raspberry Pi
pkgname=sdl2
pkgver=2.0.3
pkgrel=1
pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2)"
arch=('i686' 'x86_64' 'armv6h')
url="http://www.libsdl.org"
license=('MIT')
depends=('glibc' 'libxext' 'libxrender' 'libx11' 'libgl' 'libxcursor')
@julianxhokaxhiu
julianxhokaxhiu / enable_mongo.sh
Created February 7, 2016 14:21 — forked from sgnn7/enable_mongo.sh
Mongodb 3.2 on Ubuntu 15.10
echo '[Unit]
Description=High-performance, schema-free document-oriented database
After=syslog.target network.target
[Service]
User=mongodb
Group=mongodb
ExecStart=/usr/bin/mongod -f /etc/mongod.conf
[Install]
@julianxhokaxhiu
julianxhokaxhiu / update.sh
Last active February 21, 2016 00:25
OpenVPN VPNGate OpenElec 6.x update script
#!/bin/bash
# This shell script is based on http://brianhornsby.com/kodi_addons/openvpn addon
# and https://github.com/julianxhokaxhiu/vpngate-ovpn-exporter python script
# Make sure that you place this file and the python script inside /storage/vpn path
# This script is currently scraping for IT country code. Adapt it to your own flavor.
mkdir -p /storage/.kodi/userdata/addon_data/script.openvpn # Create the folder if it does not exist
rm -R /storage/.kodi/userdata/addon_data/script.openvpn/* IT 2>/dev/null # Make sure it's really empty
@julianxhokaxhiu
julianxhokaxhiu / _realurl_domain_language_mapping.md
Created April 7, 2016 08:13 — forked from a-r-m-i-n/_realurl_domain_language_mapping.md
RealURL Configuration for Domain == Language

This config shows an example of TYPO3 RealURL configuration, to map languages to domains.

Lets say the default language (L=0) is german and the foreign language is english (L=1). Normally RealURL would create links like that:

This example is about getting rid of the /en path segment.

# 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 / gist:d4d8da6a0240de1de2cf3fea2308f871
Created February 3, 2017 10:27 — forked from Manu343726/gist:ca0ceb224ea789415387
Running ARM docker image with QEMU on x86_64 Arch Linux host
# Install quemu, docker, etc
yaourt -S qemu qemu-user-static binfmt-support
# The quemu-user-static AUR package is outdated and broken. The .deb package they pull is no longer in the ubuntu repository.
# Edit the PKGBUILD and use qemu-user-static_2.4+dfsg-3_amd64.deb (With SHA1 sum "84d83a16c60c82b6c579f2f750b04a3ac26c249b")
# Enable ARM emulation
update-binfmts --enable qemu-arm
@julianxhokaxhiu
julianxhokaxhiu / _bs3_same-height-cols.scss
Created September 15, 2014 13:50
Vertical alignment on Bootstrap 3 columns with equal height
// Source by http://www.minimit.com/articles/solutions-tutorials/bootstrap-3-responsive-columns-of-same-height
// columns of same height styles
.container-xs-height {
display:table;
padding-left:0px;
padding-right:0px;
}
.row-xs-height {
display:table-row;