Skip to content

Instantly share code, notes, and snippets.

@obense
obense / vhost.conf
Last active December 13, 2017 17:31
Vhost config apache 2.4
<VirtualHost *:80>
DocumentRoot "/<myfullpath>/httpdocs/web"
ServerName <myapp>.loc
<Directory /<myfullpath>/httpdocs>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
Options FollowSymLinks Indexes
ErrorLog "/private/var/log/apache2/<myapp>-error_log"
@obense
obense / README.md
Last active January 3, 2018 15:02
MacOS High Sierra install

brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

fish

brew install fish

Add fish to potential default shells

@obense
obense / cs.sh
Created December 13, 2016 11:22
script pour exec la console de sf2/3
#!/bin/bash
if [ -a app/console ]; then
exec "app/console" "$@"
fi
if [ -a bin/console ]; then
exec "bin/console" "$@"
fi
#import <Foundation/Foundation.h>
NSDictionary *headers = @{ @"x-accept-version": @"v1",
@"cache-control": @"no-cache",
@"postman-token": @"ca7b45bd-65b8-e9db-3a16-64f7f0efe546",
@"content-type": @"application/x-www-form-urlencoded" };
NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"jobber_step_two[phone]=0671604566" dataUsingEncoding:NSUTF8StringEncoding]];
[postData appendData:[@"&jobber_step_two[zipcode]=13700" dataUsingEncoding:NSUTF8StringEncoding]];
@obense
obense / gist:11cdfc787b359f3f1978
Last active December 13, 2017 16:19
Vhost config Apache 2.2
<VirtualHost *:80>
DocumentRoot "/Users/<myuser>/<mypath>/<myproject>/web"
ServerName <projectname>.local.net
<Directory /Users/<myuser>/<mypath>/<myproject>>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Options FollowSymLinks Indexes
@obense
obense / gist:4b6b874bdf604057fd15
Created March 25, 2015 14:07
Nissan Package - pdf source
<!DOCTYPE html>
<!--[if lte IE 6]> <html class="no-js no-touch ie6 ie67 ie678 ie6789" lang="fr"> <![endif]-->
<!--[if IE 7]> <html class="no-js no-touch ie7 ie67 ie678 ie6789" lang="fr"> <![endif]-->
<!--[if IE 8]> <html class="no-js no-touch ie8 ie678 ie6789" lang="fr"> <![endif]-->
<!--[if IE 9]> <html class="no-js no-touch ie9 ie6789" lang="fr"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="no-js no-touch" lang="fr"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<!--[if IE]>
<script type="text/javascript">
function NotInFacebookFrame() {
return top === self;
}
function ReferrerIsFacebookApp() {
if(document.referrer) {
return document.referrer.indexOf("apps.facebook.com") != -1;
}
return false;
}