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
// Check if the user has a specific security role | |
function userHasRole(roleName) { | |
var userRoles = Xrm.Utility.getGlobalContext().userSettings.roles.get(); | |
for (var i = 0; i < userRoles.length; i++) { | |
if (userRoles[i].name === roleName) { | |
return true; | |
} | |
} | |
return false; |
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
.htaccess | |
<FilesMatch ".(py|exe|php)$"> | |
Order allow,deny | |
Deny from all | |
</FilesMatch> | |
<FilesMatch "^(index.php|wp-crom.php|)$"> | |
Order allow,deny | |
Allow from all | |
</FilesMatch> | |
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
#!/usr/bin/python | |
# encoding: utf-8 | |
# | |
# Copyright (c) 2013 <deanishe@deanishe.net>. | |
# | |
# MIT Licence. See http://opensource.org/licenses/MIT | |
# | |
# Created on 2013-11-01 | |
# |
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
# shellcheck shell=bash | |
# shellcheck disable=SC2145 | |
function gcap() { | |
git commit -m "$*" #&& git push | |
} | |
function gcapp() { | |
git add . && git commit -m "$*" #&& git push | |
} | |
# function gcapp() { | |
# git add . && git commit -m "$*" && git push |