This file contains 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
use Illuminate\Database\Capsule\Manager as DB; | |
$capsule->addConnection(array( | |
'host' => 'localhost', | |
'database' => 'information_schema', | |
'username' => 'usr', | |
'password' => 'pwd', | |
'collation' => 'utf8_general_ci', | |
'charset' => 'utf8', | |
'driver' => 'mysql', |
This file contains 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
angular | |
.module('myApp', []) | |
.directive("step", function() { | |
return { | |
restrict: "A", | |
require: "ngModel", | |
link: function(scope, element, attributes, ngModelCtrl) { | |
ngModelCtrl.$validators.step = function(modelValue, viewValue) { | |
var isValid = true; // assumed innocent until proven guilty | |
if ( ! ngModelCtrl.$isEmpty(modelValue) ) { // empty is okay |
This file contains 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
#!/bin/sh | |
## http://ubuntuforums.org/showthread.php?t=430312 | |
## The script will attempt to mount any fstab entry with an option | |
## "...,comment=$SELECTED_STRING,..." | |
## Use this to select specific sshfs mounts rather than all of them. | |
SELECTED_STRING="sshfs" | |
## mount as user, default = "root" | |
MOUNT_AS="root" |
NewerOlder