Skip to content

Instantly share code, notes, and snippets.

View neilborromeo's full-sized avatar

Neil Borromeo neilborromeo

View GitHub Profile
@neilborromeo
neilborromeo / install-mongodb-2.6.12-from-tarball.sh
Created September 29, 2022 09:30 — forked from abepark01/install-mongodb-2.6.12-from-tarball.sh
install mongodb-2.6.12 from the tarball
#!/usr/bin/env bash
# run this script from your home folder
# sudo bash
curl -O http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.6.12.tgz
tar -zxvf mongodb-linux-x86_64-2.6.12.tgz
cp mongodb-linux-x86_64-2.6.12/bin/* /usr/local/bin
groupadd mongodb
useradd --system --no-create-home -g mongodb mongodb
### Keybase proof
I hereby claim:
* I am neilborromeo on github.
* I am neilborromeo (https://keybase.io/neilborromeo) on keybase.
* I have a public key whose fingerprint is 7F9F 1891 9144 AF25 FEFE F597 FC72 AC1B BF9C F63E
To claim this, I am signing this object:
@neilborromeo
neilborromeo / keybase.md
Created November 16, 2021 04:23
keybase.md

Keybase proof

I hereby claim:

  • I am neilborromeo on github.
  • I am neilborromeo (https://keybase.io/neilborromeo) on keybase.
  • I have a public key ASDyCrUbelVbWjckwIyMltm9kr39J30c5x3BBph5c-YnPwo

To claim this, I am signing this object:

@neilborromeo
neilborromeo / Cloud
Created November 10, 2021 11:24
Updates
‎‎​
@neilborromeo
neilborromeo / backup-github.sh
Created December 16, 2016 03:22 — forked from rodw/backup-github.sh
A simple script to backup an organization's GitHub repositories, wikis and issues.
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
# NOTE: if you have more than 100 repositories, you'll need to step thru the list of repos
# returned by GitHub one page at a time, as described at https://gist.github.com/darktim/5582423
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up
# (if you're backing up a user's repos instead, this should be your GitHub username)
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API)
@neilborromeo
neilborromeo / .htaccess
Created August 10, 2016 18:26 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@neilborromeo
neilborromeo / custome-options.sh
Created July 28, 2016 07:13 — forked from docteurklein/custome-options.sh
phpfarm custom options
#!/bin/bash
mkdir -p "$basedir/../etc/$version/conf.d"
etcbasedir="`readlink -f "$basedir/../etc/$version"`"
configoptions="\
--with-config-file-path=$etcbasedir
--with-config-file-scan-dir=$etcbasedir/conf.d
--enable-debug \

Multiple PHP version under Ubuntu 14.04

Update your machine

apt-get update
apt-get upgrade

Install some dependencies

apt-get install build-essential