Skip to content

Instantly share code, notes, and snippets.

View aleksandr-kotlyar's full-sized avatar
🛩️
🐍 Work hard anywhere

Aleksandr Kotlyar aleksandr-kotlyar

🛩️
🐍 Work hard anywhere
View GitHub Profile
@aleksandr-kotlyar
aleksandr-kotlyar / acdisable
Created August 4, 2024 15:49 — forked from jasmas/acdisable
Enable/Disable Cisco AnyConnect Socket Filter Extension on MacOS
#!/bin/sh
echo Disabling vpnagentd...
sudo launchctl disable system/com.cisco.anyconnect.vpnagentd
echo Tearing down vpnagentd...
sudo launchctl bootout system /Library/LaunchDaemons/com.cisco.anyconnect.vpnagentd.plist
echo Deactivating Cisco AnyConnect Socket Filter Extension...
/Applications/Cisco/Cisco\ AnyConnect\ Socket\ Filter.app/Contents/MacOS/Cisco\ AnyConnect\ Socket\ Filter -deactivateExt
@aleksandr-kotlyar
aleksandr-kotlyar / test_opera_webdriver_manager.py
Last active March 9, 2023 20:33
Open Opera browser with Selenium and webdriver-manager python
import glob
import os
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.opera import OperaDriverManager
def test_operadriver_manager_with_selenium_win():
@aleksandr-kotlyar
aleksandr-kotlyar / chromium_and_webdriver_manager.ipynb
Last active February 10, 2022 22:08
webdriver-manager in Google Colab example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aleksandr-kotlyar
aleksandr-kotlyar / GitCommitEmoji.md
Created October 20, 2021 07:42 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@aleksandr-kotlyar
aleksandr-kotlyar / Dockerfile
Created September 22, 2021 07:50 — forked from varyonic/Dockerfile
Dockerfile with chromedriver
# See https://codeship.com/documentation/docker/browser-testing/
FROM myapp:base
# We need wget to set up the PPA and xvfb to have a virtual screen and unzip to install the Chromedriver
RUN apt-get install -y wget xvfb unzip
# Set up the Chrome PPA
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
@aleksandr-kotlyar
aleksandr-kotlyar / Dockerfile
Last active February 25, 2021 19:03
python alpine openjdk allure cryptography multistage
FROM python:3.7.9-alpine3.13 AS compile-image
RUN apk upgrade && apk --no-cache add \
# for badges and anybadge
gcc=10.2.1_pre1-r3 \
libc-dev=0.7.2-r3 \
# for cryptography
libressl-dev=3.1.5-r0 \
libffi-dev=3.3-r2 \
cargo=1.47.0-r2 \
rust=1.47.0-r2 \
@aleksandr-kotlyar
aleksandr-kotlyar / .gitlab-ci.yml
Last active April 19, 2022 14:53
slack text notifications
SLACK_TEXT_START: 'Pipeline <$CI_PIPELINE_URL|$CI_PIPELINE_ID> _has started_ *$CI_PIPELINE_SOURCE* job <$CI_JOB_URL|$CI_JOB_ID> on *$ENVIRONMENT* _at branch_ *<$CI_PROJECT_URL/commit/$CI_COMMIT_SHA|$CI_COMMIT_REF_NAME>*'
SLACK_TEXT_FINISH: 'Pipeline <$CI_PIPELINE_URL|$CI_PIPELINE_ID> _has finished_ *$CI_PIPELINE_SOURCE* job <$CI_JOB_URL|$CI_JOB_ID> on *$ENVIRONMENT* _at branch_ *<$CI_PROJECT_URL/commit/$CI_COMMIT_SHA|$CI_COMMIT_REF_NAME>* _and generated_ *<$ALLURE_DIR|Allure Reports>*'
#####################################
# Custom Slack POST-message report #
#####################################
slack_notification:
script:
- >
curl
@aleksandr-kotlyar
aleksandr-kotlyar / Dockerfile
Last active March 1, 2020 10:29
ubuntu:18.04 + python 3.7.6 installed
FROM ubuntu:18.04
# Set Time Zone
ENV pyversion=3.7.6 \
TZ=Europe/Moscow
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# install python
# Prepare system
RUN apt-get update \
@aleksandr-kotlyar
aleksandr-kotlyar / Dockerfile
Created February 29, 2020 11:53
python:3.7-alpine + chrome:3.11-alpine
FROM python:3.7-alpine
# install dependencies
USER root
COPY requirements.txt requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt
# Installs latest Chromium package.
RUN echo @edge http://mirrors.aliyun.com/alpine/v3.11/community > /etc/apk/repositories \
&& echo @edge http://mirrors.aliyun.com/alpine/v3.11/main >> /etc/apk/repositories \