This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| apt-get update | |
| echo mysql-server-5.5 mysql-server/root_password password PASSWORD | debconf-set-selections | |
| echo mysql-server-5.5 mysql-server/root_password_again password PASSWORD | debconf-set-selections | |
| apt-get install -y mysql-common mysql-server mysql-client | |
| apt-get install -y apache2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## This is a directory/file filter template for WinMerge | |
| name: JSC_WinMerge_Filter | |
| desc: filter for svn, git, vagrant and eclipse | |
| ## Select if filter is inclusive or exclusive | |
| ## Inclusive (loose) filter lets through all items not matching rules | |
| ## Exclusive filter lets through only items that match to rule | |
| ## include or exclude | |
| def: include |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Configurable variables | |
| database='vagrant' | |
| username='vagrant' | |
| password='vagrant' | |
| echo '' | |
| echo ' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' | |
| echo ' Bootstrapping Ubuntu Precise 32bit for Laravel 4' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Apache: | |
| # Set up http://mydomain.com/data to route to NodeJS at port 3000 on the same machine. | |
| # | |
| # Do this in your .conf file: | |
| <Location /data> | |
| ProxyPassReverse http://localhost:3000/data | |
| ProxyPass http://localhost:3000/data | |
| </Location> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html ng-app="project"> | |
| <head> | |
| <title>Angular: Service example</title> | |
| <script src="http://code.angularjs.org/angular-1.0.1.js"></script> | |
| <script> | |
| var projectModule = angular.module('project',[]); | |
| projectModule.factory('theService', function() { | |
| return { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #create db | |
| mysql -uroot --password -e "CREATE DATABASE dbname CHARACTER SET utf8 COLLATE utf8_general_ci" | |
| #import db | |
| mysql --user=root --password -h localhost dbname < /db.sql | |
| #import gzipped db | |
| zcat db.sql.gz | mysql --user=root --password -h localhost dbname | |
| #dumb db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class helper { | |
| /** | |
| * @param mixed $obj | |
| * @return array $obj | |
| */ | |
| public static function getArray($obj) { | |
| if (is_array($obj)) return $obj; | |
| if ($obj != null) return array($obj); | |
| else return array(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Bootstrap Custom Styles | |
| * | |
| */ | |
| body { | |
| background-color: #fff; | |
| color: #000; | |
| /*font-size: 15px; | |
| line-height: 1.45857;*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // demo soap client 4 wsdl2php gen | |
| // http://php.net/manual/de/soapclient.getlastresponseheaders.php | |
| // http://php.net/manual/de/class.soapclient.php | |
| ini_set("soap.wsdl_cache_enabled", "0"); | |
| include 'demo.php'; | |
| $client = new demo("demo.wsdl",array('location' => "http://www.example.com/webservices/", 'uri' => "http://www.example.com/webservices/", 'trace' => true)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #copy local file to a remote target by scp | |
| scp /home/user/sourcefolder\file.name user@192.168.178.1:/home/user/targetfolder |
OlderNewer