Skip to content

Instantly share code, notes, and snippets.

View ramlev's full-sized avatar

Hasse Ramlev Wilson ramlev

View GitHub Profile
+ verbose=on
+ shift
+ [[ -n '' ]]
+ [[ on != on ]]
+ get_simple -vv
+ [[ -n -vv ]]
++ type -t get_-vv
+ [[ '' == \f\u\n\c\t\i\o\n ]]
+ shift
+ [[ -n '' ]]
brew install php@7.2 httpd24 mariadb redis php72-xdebug mailhog golang solr@5.5
go get github.com/mailhog/mhsendmail
cp ./go/bin/mhsendmail /usr/local/bin/
pecl install igbinary redis xdebug
# download basic and sdk https://www.oracle.com/technetwork/topics/intel-macsoft-096467.html
@ramlev
ramlev / Install oci8 support
Created January 24, 2019 05:22
install oci8 php extension on mac
download basic and sdk from Oracle https://www.oracle.com/technetwork/database/database-technologies/instant-client/downloads/index.html
unzip both packages
move the folder to /usr/local/opt/oracle/instantclient
pecl install oci8
enter

Git the Reload! way

Git

Er du Mac bruger, så installer Homebrew og brug brew til at installere git. Ellers se denne side for installation på andre systemer.

brew install git

Denne tutorial er et godt sted at starte, og hvis du skal bruge hjælp til en specifik kommando kan du altid bruge:

@ramlev
ramlev / macosx-install-php-oracle-oci8-pdo_oci.md
Created October 28, 2017 05:09 — forked from tlemburg/macosx-install-php-oracle-oci8-pdo_oci.md
Install OCI8 and / or PDO_OCI on OSX via Brew

Installation

This procedure is tested on Mac OS X 10.10.5 with Developpers tools installed (xCode).

PHP 5.6 installed with Homebrew.

Preparation

Download the following files from Oracle website (yes, you need to create an account and accept terms):

@ramlev
ramlev / PHP-Developing-setup-OSX.markdown
Last active March 28, 2016 18:31
My PHP/Apache developing setup on OSX

Homebrew

Install homebrew

ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)"

DNSMasq

brew install dnsmasq
<?php
use GuzzleHttp\Client;
$client = new Client();
$client->request('POST', 'http://localhost:8080/ag-push/rest/applications/{PUSH_ID}/iOS', [
'debug' => true,
'headers' => [
'Authorization' => 'Bearer OAUTHTOKEN',

Download drake_reload

    git clone git@github.com:reload/drake_reload.git ~/.drush/

Installer drake-reload og dependencies

    drush drake-reload-install

Byg scleroseforeningen site fra github.

@ramlev
ramlev / restart-coreaudio.sh
Created April 22, 2013 17:52
Restart OSX CoreAudio
#!/bin/sh
sudo kill $(ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}')
@ramlev
ramlev / screenshot.sh
Created January 19, 2013 12:37
A little phantomjs shellscript for taking screenshots
#!/bin/sh
PATH_TO_PHANTOMJS=~/tmp/phantomjs
SCREENSHOT_PATH=~/Desktop
# Check if an url has been added as an arguemnt
if [ -n "$1" ]
then
URL=$1
else