Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View dborin's full-sized avatar

David Borin dborin

  • Keysight Technologies
  • San Francisco, CA
  • 08:50 (UTC -07:00)
View GitHub Profile
@dborin
dborin / jira_letsencrypt.md
Last active February 3, 2024 10:09
HOWTO Configure Atlassian Jira to use Letsencrypt certificate

HOWTO Configure Atlassian Jira to use Letsencrypt certificate with default Tomcat

This is a primer for installing a Letsencrypt certificate on a Jira server that is running the Jira provided, default Tomcat for serving webpages.

I found lots of information about how to do it using a free-standing Tomcat or nginx, but nothing about this particular combination. I hope it helps you!

Obviously, in all the examples, you need to replace jira.example.com with your own domain! And (duh) you need to use your own password, not 1234

You need to have installed Java (outside the scope of this document). Then in your user's shell RC file and probably root's RC file, add

---------------------------------------------------------------------------
InvalidArgumentException Traceback (most recent call last)
<ipython-input-27-be9256a138d3> in <module>()
1 for el in driver.find_elements(by='css selector', value='dh-location-origin .btn'):
2 if re.search("Upload File", el.text):
----> 3 el.find_element_by_css_selector('.multi-files').send_keys('/home/dborin/cusack.png')
4
/Users/dborin/.python_virtualenvs/env1/lib/python2.7/site-packages/selenium/webdriver/remote/webelement.pyc in send_keys(self, *value)
477 self._execute(Command.SEND_KEYS_TO_ELEMENT,
2016-02-02_23:27:02.55827 23:27:02.558 INFO - Executing: [new session: Capabilities [{platform=ANY, javascriptEnabled=true, cssSelectorsEnabled=true, browserName=chrome, nativeEvents=false, rotatable=false, takesScreenshot=false, version=}]])
2016-02-02_23:27:02.59520 23:27:02.595 INFO - Creating a new session for Capabilities [{platform=ANY, javascriptEnabled=true, cssSelectorsEnabled=true, browserName=chrome, nativeEvents=false, rotatable=false, takesScreenshot=false, version=}]
2016-02-02_23:27:02.63973 Starting ChromeDriver 2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b) on port 17566
2016-02-02_23:27:02.63977 Only local connections are allowed.
2016-02-02_23:27:02.90530 23:27:02.903 INFO - Done: [new session: Capabilities [{platform=ANY, javascriptEnabled=true, cssSelectorsEnabled=true, browserName=chrome, nativeEvents=false, rotatable=false, takesScreenshot=false, version=}]]
2016-02-02_23:27:06.25236 23:27:06.252 INFO - Executing: [delete session: 8611b795-d0dd-411b-b2f8-8cf270da5270])
2016-02-0
@dborin
dborin / winserv2008_selenium_setup
Last active December 13, 2015 18:48
This is here because Windows and IE8 are BULLSHIT!!
*** Install 7-zip 64-bit (file archiver / uncompress) to then get a zip file that will preconfigure IE8 to not have all the setup crap.
In PowerShell
$client = New-Object System.Net.WebClient
$client.DownloadFile("http://downloads.sourceforge.net/sevenzip/7z920-x64.msi", "C:\Users\Administrator\Downloads\7z920-x64.msi")
C:\Users\Administrator\Downloads\7z920-x64.msi