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
[ | |
{ | |
"active":true, | |
"companyId":508, | |
"moduleAccessRight":2, | |
"moduleId":3, | |
"userId":453 | |
}, | |
{ | |
"active":true, |
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
{ | |
"html_attributions": [], | |
"next_page_token": "CrQCJAEAAFrjC9x9EzX4hb1IwBO6--geSmzS4nCQdyqLiZEzB85NAIVsAiYSgA4My-quPr--cYkzjrAwsf8eLU6cLRUgZ9KbCi4XhGOLLgfuqnulyokB9V3Xr_8za2XZJY5TV3vtfT59E9uArdAMXxQhEytDGFnfG4JQXlsgmGDHoAdaZmNktFZ6YYpm_LjhsbZPWpDz7edLVpKKfRrViTFN6U_X7Izqb5_fT70M9agfNKWP_s6Bq6f3ok4by-NoGLdgpiQ4QRzMldPH2ok8nRUek-MHYU8J29bua1Iezxa4ocMYlIzScmTnSLzAYnrALBT3qqLxMbJ2_eG6yBE079GAaHZ37Qnn4QS2-f1wNEWx6_wn5wE0vLcsEDfI3LOdlNhVgzvx_N0SuCwecZmtJHnDlIk-rRoSEB2iWNcUwP8bAi9r1TrcZysaFAaDlySguXrwiGmDdOZ9WNO7ryzn", | |
"results": [ | |
{ | |
"geometry": { | |
"location": { | |
"lat": 40.209147, | |
"lng": 44.5034909 | |
}, |
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
{ | |
"error": { | |
"code": 1018, | |
"displayMessage": "An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = TimeOffsMService (ReflectionActivator), Services = [Raiser.Services.ITimeOffsMService], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = IEmployeeProvider (DelegateActivator), Services = [Raiser.Services.IEmployeeProvider], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Invalid column name 'Extension'. (See inner exception for details.) (See inner exception for details.)", | |
"internalMessage": null | |
}, | |
"status": 1, | |
"message": null | |
} |
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
{ companies -> | |
val ac = mutableListOf<Company.UserAccessViewModel>() | |
for (company in companies) { | |
val status = UserManegmentCompanyStatus.firstOrUndefined(company.approvalStatus) | |
val hasAccess = userCompanyList.indexOfFirst { it.id == company.id }.isNotUndefined | |
if (status == UserManegmentCompanyStatus.APPROVED || (status == UserManegmentCompanyStatus.WAITING && hasAccess)) { | |
ac.add(Company.UserAccessViewModel(company, hasAccess)) | |
} |
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
[ | |
{ | |
"key":"home_tab", | |
"isEnabled":true, | |
"items":[ | |
{ | |
"key":"user_profile", | |
"isEnabled":true, | |
"items":[ |
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
<head> | |
<style type="text/css" media="print"> | |
@page{ | |
margin-left: 0px; | |
margin-right: 0px; | |
margin-top: 0px; | |
margin-bottom: 0px; | |
padding:0px; | |
} |
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
public static void runProcess(String cmd) { | |
ProcessBuilder processBuilder = new ProcessBuilder(); | |
String cmdCode = "~/vendor/bin/terminus remote:drush mentorcliq-americamentors.jenkins -- scr scripts/check-self-matching-requests.php -- \"2019-10-27 00:18:54.86\""; | |
processBuilder.command("C:\\Program Files\\Git\\git-bash.exe", cmdCode); | |
try { | |
Process process = processBuilder.start(); |
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
public static void runProcess(String cmd) { | |
ProcessBuilder processBuilder = new ProcessBuilder(); | |
String command = "git help"; | |
processBuilder.command("cmd.exe", "/c", command); | |
try { |
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
public class Test { | |
public static void main(String[] args) { | |
BashRunner.run("git help"); | |
} | |
public static class BashRunner { | |
private static final Logger log = Logger.getLogger(BashRunner.class.getName()); | |
public static void run(String comand) { |
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
curl -X GET \ | |
'https://eng-dev.systechcloud.net/api/itemvalidate/%2801%2901905061302409%2821%29100000?format=json' \ | |
-H 'Accept: */*' \ | |
-H 'Accept-Encoding: gzip, deflate' \ | |
-H 'Authorization: Basic SGlyZW5AZW5nX2RldjpIaXJlbjEyMyE=' \ | |
-H 'Cache-Control: no-cache' \ | |
-H 'Connection: keep-alive' \ | |
-H 'Content-Type: application/json' \ | |
-H 'Cookie: csrftoken=tl2JMphWG199CPiYYDYZhBlos4XWHLwe; sessionid=h2duvkl9rw0fyby6r8j521imzdasqvpo' \ | |
-H 'Postman-Token: 8bb9e52a-c717-4232-bdf7-4a24cb3198ec,38fadf03-f2ed-4cb4-b3d7-bde4c34029a4' \ |