Skip to content

Instantly share code, notes, and snippets.

View AmmarCodes's full-sized avatar

Ammar Alakkad AmmarCodes

View GitHub Profile
@AmmarCodes
AmmarCodes / README.md
Created August 26, 2014 10:29
README.md base template

Project

Introduction

Dependencies

Local Development Setup

Configuration

@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 / 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 / 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

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:

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

@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
@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 / phpfmt.sublime-settings
Created August 18, 2016 14:03
Sublime phpfmt package configuration
{
"passes":
[
"AlignPHPCode",
"NewLineBeforeReturn",
"AutoSemicolon",
"SmartLnAfterCurlyOpen",
"SpaceBetweenMethods",
"AlignEquals",
"AlignTypehint",
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
} from 'react-native';
import Tabs from 'react-native-tabs';