Skip to content

Instantly share code, notes, and snippets.

View abdul's full-sized avatar
🎯
Focusing

Abdul Qabiz abdul

🎯
Focusing
View GitHub Profile
@abdul
abdul / javascript-for-vim-refactoring.js
Created May 21, 2017 12:11 — forked from iamnewton/javascript-for-vim-refactoring.js
Moving faster with Vim (5-minute lightning talk presentation). I wasn't inspired to learn effective command of Vim until I saw some people flying around faster than I thought was possible. The goal of this presentation is to call out how slow "normal" text editing is, and how many keystrokes can be reduced by using increasingly more terse Vim co…
$(function() {
// good opportunity to combine into a single statement
// qq w cw <esc> A, <esc> 0 j q
var a = 10;
var b = 20;
var c = 30;
var d = 40;
var e = 50;
// opportunity to simplify syntax
@abdul
abdul / gist:0645000921de080319533d57b733d05f
Created May 19, 2017 11:05 — forked from akikoo/gist:6200960
Automatic Responsive screenshots creation with PhantomJS and CasperJS.
/*!
*
* Automatic Responsive screenshots creation with PhantomJS and CasperJS.
* Adapted from the Responsive Design Workflow book by Stephen Hay (http://responsivedesignworkflow.com/).
*
* Usage instructions:
- Install PhantomJS (http://phantomjs.org/) and CasperJS (http://casperjs.org/)
- Save this script as `screenshots-multipages.js` in a folder somewhere in your filesystem
- In the same folder, create a subfolder called `screenshots` (defined in `screenshotFolder` variable)
- Define the URLs you want to process in `baseUrl` (string) and `links` (array) variables
@abdul
abdul / LICENSE
Created April 29, 2017 21:47 — forked from commonsguy/LICENSE
deaar: Convert Android AAR Artifacts Into Library Projects
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
@abdul
abdul / theme-template.css
Created April 12, 2017 09:40 — forked from vagnerolliver2/theme-template.css
Css do Template Zendesk
/* ====================================================
Fonts
==================================================== */
@font-face {
font-family: 'Bryant_MOO_Pro';
src: local ("Bryant_MOO_Pro"),
src: url('//moo.zendesk.com/hc/theme_assets//148033/200069764/74127198--BryantMooPro-Regular.eot');
src: url('//moo.zendesk.com/hc/theme_assets//148033/200069764/74127198-BryantMooPro-Regular.eot?#iefix') format('eot'),
url('//moo.zendesk.com/hc/theme_assets/148033/200069764/901550293-BryantMooPro-Medium.woff') format('woff'),
url('//moo.zendesk.com/hc/theme_assets//148033/200069764/74127198-BryantMooPro-Regular.ttf') format('truetype'),
@abdul
abdul / 0001-BUGIFX-Magento-Zend-Framework-1-PHP5.6.patch
Created April 11, 2017 22:35 — forked from renttek/0001-BUGIFX-Magento-Zend-Framework-1-PHP5.6.patch
Bugfix for Zend Framework 1 in Magento (>= 1.7.*.*) + PHP 5.6
From 473846959772d8160b34b92ae3bcecddf24b972f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julian=20Nu=C3=9F?= <[email protected]>
Date: Tue, 23 Sep 2014 21:07:29 +0200
Subject: [PATCH 1/1] [BUGIFX] Zend Framework 1 + PHP5.6
---
lib/Zend/Locale/Format.php | 22 +++++++++++-----------
lib/Zend/Service/Audioscrobbler.php | 6 +++---
lib/Zend/Service/Technorati.php | 6 +++---
lib/Zend/Validate/Hostname.php | 4 ++--
@abdul
abdul / magento-nginx.conf
Created April 4, 2017 22:32 — forked from gwillem/magento-nginx.conf
Battle-tested Nginx configuration for Magento (source: www.hypernode.com)
# This is an annotated subset of the Nginx configuration from our Magento production platform @ www.hypernode.com
# See https://www.byte.nl/blog/magento-cacheleak-issue
# !!!! If you are a Hypernode customer, do not use this config as it will result in duplicate statements. !!!!!
user app;
worker_processes 4;
pid /var/run/nginx.pid;
events {
@abdul
abdul / zendesk-hc-template-and-components-doc.md
Created March 9, 2017 11:26 — forked from erikzrekz/zendesk-hc-template-and-components-doc.md
Zendesk Help Center Template and Components Documenation

The help center has a series of HTML templates with accompanying components. I put this together to brief myself on the available features within a help center. The official documentation can be found here

Table of Contents

  • Header
  • Footer
  • Home
  • Category
  • Section
  • Article
  • Contribution
@abdul
abdul / find_large_files.sh
Last active September 16, 2016 17:59
Filesystem - Unix Commands (GNU/Linux Only)
find . -type f -print0 | xargs -0 du -h | sort -hr | head -20
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d
@abdul
abdul / docker_clean_all_images.sh
Created September 16, 2016 17:55
Useful Docker Commands
docker rmi $(docker images -q)