MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to: Sublime Text
Make it executable with: chmod u+x Sublime\ Text
| #!/usr/bin/env python | |
| import argparse, getpass | |
| class Password(argparse.Action): | |
| def __call__(self, parser, namespace, values, option_string): | |
| if values is None: | |
| values = getpass.getpass() | |
| setattr(namespace, self.dest, values) |
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: <SCRIPT_NAME> | |
| # Required-Start: $local_fs $network $named $time $syslog | |
| # Required-Stop: $local_fs $network $named $time $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Description: Script to run asp.net 5 application in background | |
| ### END INIT INFO |
| var runner = require('child_process'); | |
| runner.exec( | |
| 'php -r \'include("settings.php"); print json_encode($databases);\'', | |
| function (err, stdout, stderr) { | |
| var connection = JSON.parse(stdout).default.default; | |
| console.log(connection.database); | |
| // result botdb | |
| } |
| controllers.controller('MainCtrl', function($scope, $location, Facebook, $rootScope, $http, $location, Upload, Auth, User, Question, Category, Serie, Record, Location, Popup, Process, Card, Question) { | |
| $scope.$on('authLoaded', function() { | |
| $scope.isExpert($scope.main.serieId); | |
| $scope.isMember($scope.main.serieId); | |
| }); | |
| $scope.loadAuth = function() { | |
| Auth.load().success(function(data) { | |
| $scope.main.user = data.user; | |
| $scope.$broadcast("authLoaded"); |