Skip to content

Instantly share code, notes, and snippets.

View Nav-Appaiya's full-sized avatar
🏠
Available

Nav Appaiya Nav-Appaiya

🏠
Available
View GitHub Profile
@Nav-Appaiya
Nav-Appaiya / gist:b51737e9519433efb1af
Created October 27, 2014 15:32
Test-database with users,categories, comments, items, orders, post_category, posts, profiles, types, users
/**
* This is the database schema for testing MySQL support of yii Active Record.
* To test this feature, you need to create a database named 'yii' on 'localhost'
* and create an account 'test/test' which owns this test database.
*/
CREATE TABLE users
(
id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(128) NOT NULL COMMENT 'Name of the user',
@Nav-Appaiya
Nav-Appaiya / gist:3afb57580dc0b3d279fb
Created November 13, 2014 22:21
Scotch Box! Best vagrant envoirement for PHP developments
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "scotch/box"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.hostname = "vanamerongen.b"
config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]
@Nav-Appaiya
Nav-Appaiya / README.md
Last active August 29, 2015 14:10 — forked from denji/README.md
@Nav-Appaiya
Nav-Appaiya / gist:88727e55097777c14e4e
Created December 12, 2014 20:23
Symfony Hello World Edition Benchmark - Hit and Run script
#!/bin/bash
# Script that optimizes a Symfony2 standard distribution for raw performance benchmarks
# Get the Symfony2 standard edition
mkdir benchmark
cd benchmark
git clone http://github.com/symfony/symfony-standard.git .
# Remove unneeded vendor specific code
@Nav-Appaiya
Nav-Appaiya / mysql.txt
Last active August 29, 2015 14:11 — forked from johnantoni/mysql.txt
username: vagrant
password: vagrant
sudo apt-get update
sudo apt-get install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev
sudo aptitude install mysql-server mysql-client
sudo nano /etc/mysql/my.cnf
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip)
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip)
Google Apps for Android 4.2 (https://www.androidfilehost.com/?fid=23060877490000128 - gapps-jb-20130812-signed.zip)
Google Apps for Android 4.1 (https://www.androidfilehost.com/?fid=22979706399755082 - gapps-jb-20121011-signed.zip)
<script type="text/javascript">
_gaq.push(['_trackPageview', '/zoeken/?zoekwaarde={exp:low_search:keywords query="{segment_2}" format="url"}']);
</script>
security:
firewalls:
main:
pattern: ^/
# other settings
anonymous: true
access_control:
- { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/, role: ROLE_USER }
#!/bin/bash
# The follwing commands will wipe out any and all traces, except the
# installed application, of PHPStorm support files. Only use these if
# you need to reset back to a fresh install.
rm -rf ~/Library/Application\ Support/WebIde70
rm -rf ~/Library/Cache/WebIde70
rm -rf ~/Library/Preferences/WebIde70
@Nav-Appaiya
Nav-Appaiya / steps.txt
Last active August 29, 2015 14:13 — forked from alettieri/steps.txt
1. Mount the CD-ROM (Click on Add VMWare Tools first, that will add a CDROM to /dev/cdromX)
sudo mkdir /mnt/cdrom
sudo mount /dev/cdrom1 /mnt/cdrom
or
sudo mount /dev/cdrw1 /mnt/cdrom
2. Copy VMWare Tools