Skip to content

Instantly share code, notes, and snippets.

View garmjs's full-sized avatar
🏍️
Lover

Armend Gashi garmjs

🏍️
Lover
  • Prishtine
View GitHub Profile
@garmjs
garmjs / PHP Configuration Compile param
Last active December 25, 2015 05:49 — forked from JeffreyWay/gist:3185773
PHP Configuration Compile param
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--sysconfdir=/private/etc \
--with-apxs2=/usr/sbin/apxs \
--enable-cli \
--with-config-file-path=/etc \
--with-libxml-dir=/usr \
--with-openssl=/usr \
# Colorful Bash Prompt, inspired by "Extravagant Zsh Prompt"
# Screenshot: http://img.gf3.ca/d54942f474256ec26a49893681c49b5a.png
# A big thanks to \amethyst on Freenode
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then export TERM=gnome-256color
elif infocmp xterm-256color >/dev/null 2>&1; then export TERM=xterm-256color
fi
if tput setaf 1 &> /dev/null; then
tput sgr0
@garmjs
garmjs / User.default (OSX).sublime-keymap
Last active January 1, 2016 19:39
Remap keys on sublime text 3
[
// hide toggle_side_bar
{ "keys": ["ctrl+b"], "command": "toggle_side_bar" },
{
// Switch on layout (Window) 1
"keys": ["ctrl+1"],
"command": "set_layout",
"args":
{
@garmjs
garmjs / Default (OSX).sublime-keymap
Last active February 23, 2016 15:07
My keymap for easy navigation on Sublime Text 3 Remap keymap # jj to switch on vim mode # Hidde sidebar = ctrl + b # Switch layouts exp: vertical split = vS , Switch in one layout = ctrl + 0 When you are on split layouts you can move file with key # Move Right = mR , Move Left = mL # Resize window right = rR ,Resize window left = rL # If you nee…
[
// Hidde Sidebar
{ "keys": ["ctrl+b"], "command": "toggle_side_bar" },
// Switch with one layout
{
"keys": ["ctrl+0"],
"command": "set_layout",
"args":
{
@garmjs
garmjs / Vimium Chrome remap keys
Created January 16, 2014 22:02
Vimium Chrome remap keys
map b goBack
map w goForward
map s toggleViewSource
map gR goToRoot
Navigating the page
j, <c-e> : Scroll down (scrollDown)
k, <c-y> : Scroll up (scrollUp)
@garmjs
garmjs / 0_reuse_code.js
Created January 24, 2014 00:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@garmjs
garmjs / SassMeister-input.scss
Created June 14, 2014 00:33
Generated by SassMeister.com.
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
@media screen and (min-width: 900px) {
@at-root (with: media) {
body {
background-color: lighten(red, 30%);
}
@garmjs
garmjs / SassMeister-input-HTML.html
Created June 20, 2014 00:53
Generated by SassMeister.com.
<div class="box home">
<h1>Lorem</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi, nobis!</p>
</div>
<div class="box about">
<h1>Lorem</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illo, excepturi consequatur ipsa quod doloremque perferendis dolores itaque qui officia vitae architecto sunt laudantium praesentium impedit nam ab nulla vero quos.</p>
</div>
<div class="box contact">
<H1>Lorem</H1>
@garmjs
garmjs / SassMeister-input-HTML.html
Created June 20, 2014 01:38
Generated by SassMeister.com.
<a href="#" class="btn">btn</a>
@garmjs
garmjs / map.js
Created September 18, 2014 15:10
Custom Google MAP
function init() {
var mapCanvas = document.getElementById('map_canvas');
var mapOptions = {
center: new google.maps.LatLng(find.latitude, find.longitude),
zoom: 17,
scrollwheel: false,
styles:
[
{
"stylers": [