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 / terminal
Last active July 24, 2018 11:52
Terminal PHP standard
phpcs --standard=PHPCompatibility -d date.timezone=Europe/Amsterdam --extensions=php,inc,module,install --runtime-set testVersion 5.3-7.2 -pvs .
@keesiemeijer
keesiemeijer / setup-phpunit.sh
Last active September 5, 2024 01:56
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, curl wget, rsync, git, subversion and composer.
#
# WordPress is installed in the `/tmp/wordpress` directory for use by PHPUnit.
# The WordPress test suite is installed in the `/tmp/wordpress-tests-lib` directory.
@DevinWalker
DevinWalker / Beanstalk_to_GitHub
Created October 9, 2015 17:19
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 [email protected]:/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 [email protected]:codeandtheory/dpsg-global-library.git
@growdigital
growdigital / installConfig.sh
Last active March 17, 2019 09:29
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
@aamnah
aamnah / google_api_qrcode.php
Created April 4, 2015 10:05
Generate a QR code using Google Charts API
<?php
// Source: http://stackoverflow.com/questions/5943368/dynamically-generating-a-qr-code-with-php
// Google Charts Documentation: https://developers.google.com/chart/infographics/docs/qr_codes?csw=1#overview
// CHart Type
$cht = "qr";
// CHart Size
$chs = "300x300";