Skip to content

Instantly share code, notes, and snippets.

View raftaar1191's full-sized avatar
🏠
Working from home

Deepak Gupta raftaar1191

🏠
Working from home
View GitHub Profile
@raftaar1191
raftaar1191 / pretty-link-creation.php
Created April 1, 2024 05:50 — forked from DumahX/pretty-link-creation.php
Creating new pretty links through code
@raftaar1191
raftaar1191 / Beanstalk_to_GitHub
Created July 22, 2019 08:16 — forked from DevinWalker/Beanstalk_to_GitHub
Move Git Repository from Beanstalk to GitHub with full repository history
#Example moving the DPSG Global Library
# 1 Checkout the Beanstalk Repo
git clone --bare git@codeandtheory.beanstalkapp.com:/dpsg-global-library.git
# 2 Push into your desired GitHub repo. (Please note that you must create the github repo prior to this step)
git push --mirror git@github.com:codeandtheory/dpsg-global-library.git
@raftaar1191
raftaar1191 / installConfig.sh
Created December 15, 2017 20:49 — forked from growdigital/installConfig.sh
Install script for brew and cask for Mac OS X
#!/bin/sh
#
# Brew packages
#
brew install git
# brew install node - having npm install issues, so installed manually
brew install wget
brew install homebrew/php/php56
brew install homebrew/php/composer
# brew install task - didn't install with gnutls, had to make from source
@raftaar1191
raftaar1191 / wp-config.php
Last active December 18, 2017 06:11 — forked from emgk/wp-config.php
WP Debug Configurations
define( 'WP_DEBUG', true );
define( 'SCRIPT_DEBUG', true );
if ( WP_DEBUG ) {
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );
@ini_set( 'log_errors', 'On' );
@ini_set( 'display_errors', 'Off' );
@ini_set( 'error_reporting', E_ALL );
@raftaar1191
raftaar1191 / wp-config.php
Last active February 24, 2023 10:04 — forked from emgk/wp-config.php
WP Debug Configurations
define( 'WP_DEBUG', true );
define( 'SCRIPT_DEBUG', true );
if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'log_errors', 'On' );
@ini_set( 'display_errors', 'Off' );
@ini_set( 'error_reporting', E_ALL );
@ini_set( 'error_log', 'php_error.log' );
@raftaar1191
raftaar1191 / setup-phpunit.sh
Created November 10, 2017 10:09 — forked from keesiemeijer/setup-phpunit.sh
Setup PHPUnit for use in the Local by Flywheel app
#!/usr/bin/env bash
# ===============================================================================
# Script to install PHPUnit in the Local by Flywheel Mac app
# These packages are installed
#
# PHPUnit, git, subversion, composer, curl and wget
#
# The $WP_CORE_DIR and $WP_TESTS_DIR environment variables are added to the ~/.bashrc file
#