Skip to content

Instantly share code, notes, and snippets.

View AmmarCodes's full-sized avatar

Ammar Alakkad AmmarCodes

View GitHub Profile
@AmmarCodes
AmmarCodes / .php_cs
Last active August 29, 2015 14:21
User config file for Phpcs sublime package.
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->in(__DIR__);
return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->fixers(array('-psr0', '-unalign_double_arrow', 'no_blank_lines_before_namespace', 'short_array_syntax', 'align_equals', 'concat_with_spaces'))
->finder($finder);
@AmmarCodes
AmmarCodes / Manjaro.md
Last active August 29, 2015 14:21
Manjaro after installation stuff

Basics

  • If using Lenovo laptop, install wireless driver (linux40-broadcom-wl) or replace 40 with kernel version.
  • Install Slim (instead of LightDM), and sudo systemctl disable lightdm.service && sudo systemctl disable lightdm-plymouth.service. and configure it for default user.
  • Install git, openssh, fish.

Appearance

  • Install fonts; ms fonts, tahoma, droid-arabic, powerline, PT Mono (install it to ~/.local/share/fonts).
  • Instal infinality

RTL Support for Slack

Example

Installation

  • You have the Stylish plugin to be installed in your browser (Chrome, Firefox).
  • Install the css file into Stylish plugin, go to style page and click + Install with Stylish button.

Features

Keybase proof

I hereby claim:

  • I am AAlakkad on github.
  • I am aalakkad (https://keybase.io/aalakkad) on keybase.
  • I have a public key whose fingerprint is 9AE7 3C1B 6350 9665 7417 49DE 718C 233A B848 FF4E

To claim this, I am signing this object:

@AmmarCodes
AmmarCodes / setup.md
Last active August 29, 2015 14:17
New PC setup

Assuming you're using Ubuntu/Mint.

Preparation

Base

sudo apt-get install zsh git-core wget curl software-properties-common build-essential

Oh My Zsh

@AmmarCodes
AmmarCodes / pagination.css
Last active August 29, 2015 14:16
Custom pagination for WordPress to be like Zurb Foundation Pagination, without the need to hook/change classes or items on the paginate_links() function.
/**
* Custom pagination for WordPress to be like Zurb Foundation Pagination, without the need to hook/change classes or items on the paginate_links() function.
* This style has been compile using the default Foundation settings.
* Final note: .page-number li has a float: right rule which isn't from Foundation, it's custom.
*/
ul.page-numbers {
display: block;
min-height: 1.5rem;
margin-left: -.3125rem;
}
@AmmarCodes
AmmarCodes / custom.sh
Created August 29, 2014 18:20
Vaprobash custom script
sudo apt-get install zsh
curl -L http://install.ohmyz.sh | sh
chsh vagrant -s /bin/zsh
@AmmarCodes
AmmarCodes / README.md
Created August 26, 2014 10:29
README.md base template

Project

Introduction

Dependencies

Local Development Setup

Configuration

@AmmarCodes
AmmarCodes / functions.php
Last active August 29, 2015 14:05
WordPress: Add Google News Sitemaps using WordPress SEO, for more explanation check the blog post: https://aalakkad.github.io/blog/wordpress-add-google-news-sitemaps/
<?php
//////////////////////////////////////////////////////////////////////////////////
// Google News Sitemap //
// //
// Refer to: https://aalakkad.github.io/blog/wordpress-add-google-news-sitemaps //
//////////////////////////////////////////////////////////////////////////////////
// Check for WPSEO_Sitemaps class from WordPress SEO plugin
if(class_exists('WPSEO_Sitemaps')) {
add_action('init', 'my_custom_google_news_sitemap');
To enable any of there plugins, go to: `Settings` -> `Plugins`
You'll find plugins in the first page, to get the others press `Browse repositories...` button.
- Apache config (.htaccess) support
- Bootstrap
- Color Ide
- CSS Support
- EditorConfig
- File Watchers
- Git Integration