Just because Twitter is incommodious for discussions. Started from this tweet: https://twitter.com/djsmith42/status/571566878562230272
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
for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done |
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
by.addLocator('attr', | |
/** | |
* Find element(s), where attribute = value | |
* @param {string} attr | |
* @param {string} value | |
* @param {Element} [parentElement=] | |
* @returns {Array.<Element>} | |
*/ | |
function (attr, value, parentElement) { | |
parentElement = parentElement || document; |
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
/** | |
* Click option[index] of select element | |
* @param select | |
* @param index | |
* @returns {protractor.promise} | |
*/ | |
function clickOption(select, index) { | |
var deferred = protractor.promise.defer(); | |
select.click().then(function () { | |
var options = select.all(by.css('option')); |
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 strict'; | |
// @ngInject | |
function exmpNavigation($state) { | |
return { | |
restrict: '', | |
templateUrl: 'components/exmpNavigation/template.html', | |
controllerAs: 'cNav', | |
controller: function () { | |
this.go = function (route) { |
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 strict'; | |
// @ngInject | |
function UserEventsLog($resource, Config, Token) { | |
return $resource(Config.apiUrl + '/user_events/:token', {token: Token.get()}, { | |
count: { | |
method: 'GET', | |
url: Config.apiUrl + '/user_events/count/:token', | |
isArray: false, | |
transformResponse: function (data) { |
How to set up an Angular Material dialog with a custom template
Forked from Marcy Sutton's Pen Angular Material Basic App.
Demonstration of using tab buttons (without tab content) to work with AngularJS route and ng-view.
Forked from Thomas Burleson's Pen Material Tabs & hRefs.
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
<?php | |
namespace Sypex\Geo; | |
/***************************************************************************\ | |
| Sypex Geo version 1.0.0 beta 2 | | |
| (c)2006 zapimir zapimir@zapimir.net http://sypex.net/ | | |
| (c)2006 BINOVATOR info@sypex.net | | |
|---------------------------------------------------------------------------| | |
| created: 2006.10.17 18:33 modified: 2006.10.26 22:07 | | |
|---------------------------------------------------------------------------| |
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 | |
# redis - this script starts and stops the redis-server daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Redis is a persistent key-value database | |
# processname: redis-server | |
# config: /etc/redis/6379.conf | |
# config: /etc/sysconfig/redis | |
# pidfile: /var/run/redis_6379.pid |
OlderNewer