This file contains hidden or 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
| Jakarta RESTful Web Services | Spring REST | What it does | | |
|------------------------------|------------------------------|-------------------------------------------------------------------| | |
| @PathParam | @PathVariable | Binds the method parameter to a path segment. | | |
| @QueryParam | @RequestParam | Binds the method parameter to the value of an HTTP query parameter.| | |
| @MatrixParam | @MatrixVariable | Binds the method parameter to the value of an HTTP matrix parameter.| | |
| @HeaderParam | @RequestHeader | Binds the method parameter to an HTTP header value. | | |
| @CookieParam | @CookieValue | Binds the method parameter to a cookie value. | | |
| @FormParam | @RequestParam | Binds the method parameter to a f |
This file contains hidden or 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
FROM amazoncorretto:8u382-alpine-jre | |
ARG USER_ID=YOUR_USER_ID | |
ARG GROUP_ID=YOUR_GROUP_ID | |
ARG USER_NAME=YOUR_USER | |
ARG GROUP_NAME=YOUR_GROUP | |
RUN set -x && addgroup -g $GROUP_ID $GROUP_NAME && \ | |
adduser --shell /sbin/nologin \ | |
--disabled-password \ |
This file contains hidden or 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
REVS=`gcloud run revisions list --filter="status.conditions.type:Active AND status.conditions.status:'False'" --format='value(metadata.name)'` | |
for rev in `echo $REVS`; do | |
echo $rev | |
gcloud run revisions delete $rev --quiet & | |
done |
This file contains hidden or 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
* Install ffmpeg | |
apt-get install -yqq ffmpeg | |
* Exmaple command to start video record capturing of the screen on ubuntu: | |
[ffmpeg -y -loglevel debug -s 1920x1080 -framerate 15 -f x11grab -i :0.0 -b 5000k -vcodec mpeg4] | |
Where: | |
-y -- Overwrite output files without asking. | |
-loglevel debug -- actually logging level | |
-s 1920x1080 -- screen size |
This file contains hidden or 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
Latest changes on selenium and chromedriver may result in errors like: | |
[AttributeError: 'dict' object has no attribute ... error .... using Selenium and ChromeDriver] | |
To fix this: | |
1. Implement a step to check if this dict in the result. | |
2. Create WebElement from the value of the dictionary. | |
Here is an example of the code: | |
def get_web_element_from_dict_if_it_is(driver: WebDriver, element_to_check_for_dict): |
This file contains hidden or 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
ENG: | |
1. Login to https://console.cloud.google.com/compute/instances? | |
2. Check that you are on "Compute engine" page | |
3. Select "VM instances" | |
4. Click on "create instance" button | |
5. Indicate the name, indicate the labels (if necessary), indicate the region and zone of the region. | |
6. Select the type of machine configuration - N1 ---> g1-small to make it more economical(like the cheapest) | |
7. In the "Boot disk", select the OS image. | |
8. In "Service account" -> select your service account | |
9. In "Security" -> add your ssh-key |