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 / README.md
Created July 21, 2017 01:55 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@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 / 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 / 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