Skip to content

Instantly share code, notes, and snippets.

View biplobice's full-sized avatar
🖥️
while (success!==true) { keepMovingForward(); }

Md Biplob Hossain biplobice

🖥️
while (success!==true) { keepMovingForward(); }
View GitHub Profile
@biplobice
biplobice / up-to-php7-in-cloud9.sh
Created May 10, 2017 09:09 — forked from shingorow/up-to-php7-in-cloud9.sh
On Cloud9, upgrade PHP 5 to 7.
# Install phpbrew
sudo apt-get update
sudo apt-get install libmcrypt-dev
curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew
chmod +x phpbrew
sudo mv phpbrew /usr/local/bin/
phpbrew init
[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc
@biplobice
biplobice / install-ffmpeg-amazon-linux.sh
Created May 18, 2017 09:22 — forked from gboudreau/install-ffmpeg-amazon-linux.sh
How to compile ffmpeg on Amazon Linux (EC2)
#!/bin/sh
# Based on instructions found here: http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat#FFMpegInstallationonCentOSandRedHat-InstallX264
if [ "`/usr/bin/whoami`" != "root" ]; then
echo "You need to execute this script as root."
exit 1
fi
cat > /etc/yum.repos.d/centos.repo<<EOF
@biplobice
biplobice / site_post.php
Last active June 19, 2017 08:17 — forked from hissy/site_post.php
[concrete5] [Legacy] Export only scrapbook proxy blocks
<?php
/* config/site_post.php */
$req = Request::get();
if ($req->getRequestPath() == 'export_scrapbook_proxies') {
$root = new SimpleXMLElement("<concrete5-cif></concrete5-cif>");
$root->addAttribute('version', '1.0');
$pages = $root->addChild("pages");
// Get all active scrapbook proxy blocks
@biplobice
biplobice / app.php
Last active June 29, 2017 08:49
PHP script to import proxy blocks from legacy version and remove proxy blocks from new version 8.X
<?php
Route::register('/import', function () {
/*=============== Just for checking ============*/
// Get block type
$bt = BlockType::getByHandle(BLOCK_HANDLE_SCRAPBOOK_PROXY);
echo 'Active proxy blocks: ' . $bt->getCount(true) . '<br>';
$list = new PageList();
$list->filterByBlockType($bt);
Log::info('getQuery');
@biplobice
biplobice / README.md
Created July 21, 2017 01:55 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@biplobice
biplobice / git-cheat-sheet.md
Created February 22, 2018 10:21 — forked from iansheridan/git-cheat-sheet.md
A cheat sheet for GIT

Setup

git clone <repo>

clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS

Add colors to your ~/.gitconfig file:

XCode Command Line Tools

$ xcode-select --install

Homebrew Installation

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@biplobice
biplobice / ext-opcache.ini
Created October 31, 2018 01:24
Slower response times in Valet?
#/usr/local/etc/php/7.2/conf.d/ext-opcache.ini
# Add the following lines and run `valet restart`
```
[opcache]
zend_extension="/usr/local/opt/php/lib/php/20170718/opcache.so"
opcache.enable = 1
```
@biplobice
biplobice / sphp.sh
Last active January 9, 2019 11:58 — forked from rhukster/sphp.sh
#!/bin/bash
# Creator: Phil Cook
# Modified: Andy Miller
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g')
brew_array=("5.5","5.6","7.0","7.1","7.2", "7.3")
php_array=("php@5.5" "php@5.6" "php@7.0" "php@7.1" "php@7.2" "php@7.3")
valet_support_php_version_array=("php@5.5" "php@5.6" "php@7.0" "php@7.1" "php@7.2" "php@7.3")
php_installed_array=()
php_version="php@$1"
@biplobice
biplobice / My Mac Environment Setup.md
Created July 10, 2019 07:04
My Mac Environment Setup

Customizing System Preferences

Trackpad Options

  • Go To System Preferences > Trackpad.
  • Enable all options across all tabs.
  • Back & go to System Preferences > Accessibility > Mouse & Trackpad > Trackpad Options.
  • Enable dragging with three finger drag.

Date & Time Options