Basic contact form with bootstrap .
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
from playwright.sync_api import Playwright, sync_playwright, expect | |
def run_site(playwright: Playwright, url: str, link_text: str, use_firefox: bool): | |
try: | |
if use_firefox: | |
# Use Firefox | |
browser = playwright.firefox.launch(headless=False) | |
else: | |
# Use Chromium | |
browser = playwright.chromium.launch(headless=False) |
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
import lh3.api | |
client = lh3.api.Client() | |
from pprint import pprint as print | |
from datetime import datetime, date, timedelta | |
import re | |
import time | |
from dateutil.parser import parse | |
from bs4 import BeautifulSoup | |
import pandas as pd |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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> | |
<head> | |
<link type=”text/css” rel=”stylesheet” href=”/documentation/css/style.css”> | |
<meta content=”text/html; charset=ISO-8859-1” http-equiv=”content-type”> | |
<title>TITLE OF PAGE</title> | |
</head> | |
<body> | |
<script type=”text/javascript” src=”/documentation/css/header.js”></script> | |
<div class=”Section1”> | |
<h2>TITLE OF PAGE</h2> PAGE CONTENT(see note below for more information) |
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
#https://stackoverflow.com/a/75431789/2327456 | |
#You will also need to increase height of figsize (width, height) | |
fig_result = calplot.calplot( | |
events, | |
figsize=(20,7), | |
cmap='Spectral_r', | |
) | |
fig, mylist = fig_result | |
fig.suptitle('lorem ipsum', fontsize=20) |
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
.container-scanning: | |
before_script: [] | |
after_script: [] | |
services: [] | |
image: | |
name: docker.io/aquasec/trivy:0.36.1 | |
entrypoint: [""] | |
stage: test | |
variables: | |
# No need to clone the repo, we exclusively work on artifacts. See |
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
#create user | |
useradd -m -s /bin/bash -G sudo john | |
passwd john | |
#verify if user exist | |
cat /etc/passwd | grep john | |
groups john | |
#Upload SSH Key from local to remote server | |
#create ssh-key | |
cd ~/.ssh |
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
import lh3.api | |
from lh3.api import * | |
import re | |
content_range_pattern = re.compile(r"chats (\d+)-(\d+)\/(\d+)") | |
def extract_content_range(content_range): | |
matches = content_range_pattern.match(content_range) | |
begin = matches.group(1) |
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
version: '3.3' | |
services: | |
db: | |
image: postgres:14.0-alpine | |
volumes: | |
- postgres_data:/var/lib/postgresql/data/ | |
env_file: | |
- ./.env.dev |
NewerOlder