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 / 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 / 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 / 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 / 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 / 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 / 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 / clean_pyc.sh
Last active July 11, 2017 19:33
Remove .pyc files only when corresponding (source) .py doesn't exist.
#!/usr/bin/env bash
set -e
pycfiles=($(find . -name "*.pyc"))
for i in "${pycfiles[@]}"; do
pyfile="${i%.pyc}.py"
if [ ! -e "$pyfile" ]; then
echo "Removing "$i" because source file ("$pyfile") doesn't exist."
rm $i
fi
done
@abdul
abdul / GitHub-Forking.md
Created July 11, 2017 18:32 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@abdul
abdul / docker-compose.yml
Last active July 22, 2017 16:19
WordPress Development with Docker
version: '3'
services:
wordpress:
image: wordpress:latest
ports:
- 8080:80
- 8084:443
volumes:
- ./data:/data
- ./src:/var/www/html
@abdul
abdul / localstack.md
Created August 10, 2017 20:27 — forked from lobster1234/localstack.md
Working with localstack on command line

Starting localstack

C02STG51GTFM:localstack mpandit$ make infra
. .venv/bin/activate; exec localstack/mock/infra.py
Starting local dev environment. CTRL-C to quit.
Starting local Elasticsearch (port 4571)...
Starting mock ES service (port 4578)...
Starting mock S3 server (port 4572)...
Starting mock SNS server (port 4575)...