Symfony2 run commandline service

PHP
This example shows you how to build code that can be executed on command line with Symfony2. This is the service that is used in this example: s...
4 years ago

Close Bootstrap Popover on click outside

Javascript
4 years ago

VirtualBox start windows7 machine headless

Bash
Bash script to the the windows7 machine headless.
4 years ago

Mount 1000Gb disk

Bash
Bash script to mount the 1000Gb disk.
4 years ago

Mount 500Gb disk

Bash
Bash script to mount the 500Gb WD drive.
4 years ago

Mount 32Gb disk

Bash
Bash script to mount the 32Gb USB stick.
4 years ago

Mount 16Gb disk

Bash
Bash script to mount the 16Gb USB stick.
4 years ago

Bash script to backup databases and tables and gzip them.

Bash
This script will backup all your local databases and tables (separated) and gzip those files.
4 years ago

Symfony2 FOSUserBundle login user after provided token.

PHP
This example shows you how to login a user when the provided token is correct (for example when you have forgotten your password and resetting it by a...
4 years ago

Symfony2 change form data

PHP
This example shows you how to change form data.
4 years ago

Symfony2 get user by security context

PHP
This example shows you how to get the user by the security context.
4 years ago

Limit returned rows

SQL
Limit the nr of rows returned by a query.
4 years ago

Git easy commit script

Bash
This is a bash script that makes it easier to commit to Git. Place this code in a runnable bash script called commit.sh inside the root of your proje...
4 years ago

Symfony2 add form element constraint

PHP
This example shows you how to add extra constraints to a form element in Symfony2.
4 years ago

Adding a Virtual Host with SSL in Apache webserver

PHP
This example shows how to configure a Virtual Host with SSL enabled, using a free SSL-certificate fro StartSSL. You can get your private key, public k...
4 years ago

Symfony2 add select form type

PHP
This example shows you how to add a selectbox form type in Symfony2.
4 years ago

Symfony2 add checkbox form type

PHP
This is how you add a checkbox form type in Symfony2.
4 years ago

How to get the RAW body with Guzzle

PHP
Example to get the RAW body content when doing a call with Guzzle http client.
4 years ago

Install Symfony2 project with bower, npm etc

Bash
These are the steps to install a new Symfony2 project with bower / npm etc.
4 years ago

Symfony2 get Firewall name

PHP
If you have two separated user areas with different firewall names and you need to know which firewall name is used for the current user, you can get ...
4 years ago

Symfony2 logout user

PHP
This code is an example of how to logout a user in Symfony2.
4 years ago

Get csrf token in form Symfony2

Twig
Use this code to retrieve the csrf token in the Symfony2 form.
4 years ago

slugify in MYSQL

SQL
Stored procedure to create a slug in MySQL
4 years ago

Redirect non-www to www in Apache .htaccess

Apache Configuration
Redirect non-www to www in Apache .htaccess (Apache Configuration)
4 years ago

Redirect www to non-www in Apache .htaccess

Apache Configuration
Example how to redirect visitors from www.domain.com to domain.com
4 years ago