Skip to content

Instantly share code, notes, and snippets.

Ali Raza a1iraxa

Block or report user

Report or block a1iraxa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
a1iraxa / latest-and-first.php
Created May 23, 2019 — forked from gbyat/latest-and-first.php
get latest and first post in WordPress
View latest-and-first.php
* get latest post
* use in loop if ( is_latest() ) { stuff; }
function is_latest() {
global $post;
$loop = get_posts( 'numberposts=1' );
$latest = $loop[0]->ID;
return ( $post->ID == $latest ) ? true : false;
a1iraxa / all-actions-list.php
Created Nov 28, 2018 — forked from thefuxia/all-actions-list.php
Plugin All Actions List
View all-actions-list.php
<?php # -*- coding: utf-8 -*-
Plugin Name: All Actions List
Description: Lists all actions run during one request.
Version: 1.0
Required: 3.1
Author: Thomas Scholz
Author URI:
License: GPL
a1iraxa / ssh.txt
Created Jul 19, 2018 — forked from bradtraversy/
SSH & DevOps Crash Course Snippets
View ssh.txt
# Login via SSH with password (LOCAL SERVER)
> ssh brad@
# Create folder, file, install Apache (Just messing around)
mkdir test
cd test
touch hello.txt
sudo apt-get install apache2
# Generate Keys
a1iraxa /
Created Apr 12, 2018 — forked from sgnl/
AJAX with Vanilla Javascript. (XMLHttpRequest)

Short XHR Examples

Examples shown are bare minimum needed to achieve a simple goal.


  • Google Chrome's Dev Tools' Network Panel c-c-c-c-c-ULTIMATE c-c-c-COMBO!!!
  • enpoints for your HTTP Requests as a free service.
a1iraxa / Date-Select-Markup.html
Created Apr 10, 2018 — forked from aleksblago/Date-Select-Markup.html
Markup: Select options for Month, Day, and Year.
View Date-Select-Markup.html
<select name="month">
<option value="January">January</option>
<option value="February">February</option>
<option value="March">March</option>
<option value="April">April</option>
<option value="May">May</option>
<option value="June">June</option>
<option value="July">July</option>
<option value="August">August</option>
a1iraxa / googlemap.html
Created Apr 4, 2018 — forked from brittanystoroz/googlemap.html
pin cities on a google map based on city name & country
View googlemap.html
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Google Maps - pin cities</title>
<style type="text/css">
html, body { height: 100%; margin: 0; padding: 0; }
#map_canvas { height: 100%; }
a1iraxa / woo-checkout-fields.php
Created Mar 2, 2018 — forked from bavington/woo-checkout-fields.php
Reorder Checkout Fields in WooCommerce
View woo-checkout-fields.php
// Reorder Checkout Fields
function reorder_woo_fields($fields) {
$fields2['billing']['billing_email'] = $fields['billing']['billing_email'];
$fields2['billing']['billing_first_name'] = $fields['billing']['billing_first_name'];
$fields2['billing']['billing_last_name'] = $fields['billing']['billing_last_name'];
$fields2['billing']['billing_country'] = $fields['billing']['billing_country'];
$fields2['billing']['billing_address_1'] = $fields['billing']['billing_address_1'];
$fields2['billing']['billing_address_2'] = $fields['billing']['billing_address_2'];
a1iraxa / wp_config.php
Created Dec 11, 2017 — forked from butlerblog/wp_config.php
Configure WordPress wp_mail function to send through SMTP server
View wp_config.php
* Set the following constants in wp-config.php
* These should be added somewhere BEFORE the
* constant ABSPATH is defined.
define( 'SMTP_USER', '' ); // Username to use for SMTP authentication
define( 'SMTP_PASS', 'smtp password' ); // Password to use for SMTP authentication
a1iraxa / Android TimeZone Ids
Created Nov 2, 2017 — forked from arpit/Android TimeZone Ids
List of all Android TimeZone ids
View Android TimeZone Ids
You can’t perform that action at this time.