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
a1iraxa / app-1.js
Created Mar 31, 2020 — forked from igorbenic/app-1.js
Using React to Render Content from WP REST API | https://ibenic.com/react-render-content-wp-rest-api
View app-1.js
class App extends React.Component {
render() {
return (
bla
)
}
}
const element = <App />
@a1iraxa
a1iraxa / Component.jsx
Created Mar 29, 2020 — forked from krambertech/Component.jsx
ReactJS: Input fire onChange when user stopped typing (or pressed Enter key)
View Component.jsx
import React, { Component } from 'react';
import TextField from 'components/base/TextField';
const WAIT_INTERVAL = 1000;
const ENTER_KEY = 13;
export default class TextSearch extends Component {
constructor(props) {
super();
@a1iraxa
a1iraxa / macos_high_sierra_apache_php_brew_2018.md
Created Mar 28, 2020 — forked from karlhillx/macos_high_sierra_apache_php_brew_2018.md
macOS High Sierra Setup: Homebrew + Apache + PHP + MariaDB + SSL
View macos_high_sierra_apache_php_brew_2018.md

macOS High Sierra Setup: Homebrew + Apache + PHP + MariaDB + SSL

Homebrew Installation

First let's install Homebrew.

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

@a1iraxa
a1iraxa / # php - 2020-03-28_02-36-40.txt
Created Mar 28, 2020
php on macOS 10.15.3 - Homebrew build logs
View # php - 2020-03-28_02-36-40.txt
Homebrew build logs for php on macOS 10.15.3
Build date: 2020-03-28 02:36:40
@a1iraxa
a1iraxa / # php@5.6 - 2020-03-28_02-56-40.txt
Created Mar 28, 2020
php@5.6 (exolnet/deprecated/php@5.6) on macOS 10.15.3 - Homebrew build logs
View # php@5.6 - 2020-03-28_02-56-40.txt
Homebrew build logs for exolnet/deprecated/php@5.6 on macOS 10.15.3
Build date: 2020-03-28 02:56:40
@a1iraxa
a1iraxa / rm_mysql.md
Created Oct 18, 2019 — forked from vitorbritto/rm_mysql.md
Remove MySQL completely from Mac OSX
View rm_mysql.md

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

    brew remove mysql
    
@a1iraxa
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
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: http://toscho.de
License: GPL
*/
@a1iraxa
a1iraxa / ssh.txt
Created Jul 19, 2018 — forked from bradtraversy/ssh.md
SSH & DevOps Crash Course Snippets
View ssh.txt
# Login via SSH with password (LOCAL SERVER)
> ssh brad@192.168.1.29
# Create folder, file, install Apache (Just messing around)
mkdir test
cd test
touch hello.txt
sudo apt-get install apache2
# Generate Keys
@a1iraxa
a1iraxa / _notes.md
Created Apr 12, 2018 — forked from sgnl/_notes.md
AJAX with Vanilla Javascript. (XMLHttpRequest)
View _notes.md

Short XHR Examples

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

Resources

  • Google Chrome's Dev Tools' Network Panel c-c-c-c-c-ULTIMATE c-c-c-COMBO!!!
  • requestb.in enpoints for your HTTP Requests as a free service.
You can’t perform that action at this time.