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
private class ReassignUserRoleJob { | |
private String oldUserRoleName; | |
private String newUserRoleName; | |
public ReassignUserRoleJob(String oldUserRoleName, String newUserRoleName) { | |
this.oldUserRoleName = oldUserRoleName; | |
this.newUserRoleName = newUserRoleName; | |
} | |
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
// Step 1, store the XML in a string | |
// Replace the string with the actual, full XML content copied as-is | |
// from Address.settings | |
var xml = '...'; | |
// Step 2, parse the XML | |
// See https://www.w3schools.com/xml/xml_parser.asp | |
var parser = new DOMParser(); | |
var xmlDoc = parser.parseFromString(xml, "text/xml"); |
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
private class ReassignProfileJob { | |
private String oldProfileName; | |
private String newProfileName; | |
public ReassignProfileJob(String oldProfileName, String newProfileName) { | |
this.oldProfileName = oldProfileName; | |
this.newProfileName = newProfileName; | |
} | |
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
var inputs = document.getElementsByTagName('input'); | |
for (var i = 0; i < inputs.length; i++) { | |
var input = inputs[i]; | |
// Clear user permissions | |
if (input.id.startsWith('userPerm___')) { | |
if (input.checked) { | |
input.click(); | |
} |
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
# Git shell | |
# https://gist.github.com/trey/2722934 | |
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash | |
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh | |
GIT_PS1_SHOWDIRTYSTATE=true | |
GIT_PS1_SHOWCOLORHINTS=true | |
export PS1='\[\033[0;36m\]\u@\h\[\033[0;35m\]:\[\033[0;33m\]\w\[\033[0;37m\]$(__git_ps1)\[\033[0m\]\n\$ ' |