Basic contact form with bootstrap .
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
#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 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
.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 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
#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 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
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 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
version: '3.3' | |
services: | |
db: | |
image: postgres:14.0-alpine | |
volumes: | |
- postgres_data:/var/lib/postgresql/data/ | |
env_file: | |
- ./.env.dev |
A Pen by Alex Devero on CodePen.
A Pen by Alex Devero on CodePen.
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 django.db import models | |
#https://ddialliance.org/Specification/DDI-Codebook/2.1/DTD/Documentation/DDI2-1-tree.html | |
#https://ddialliance.org/Specification/DDI-Codebook/2.1/DTD/Documentation/version2-1-all.html#element-definition=codeBook | |
#https://ddialliance.org/Specification/DDI-Codebook/2.1/ | |
class ElementAbstractModel(models.Model): | |
class Meta: | |
abstract = True | |
tagName = models.CharField( | |
max_length=40, |
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
import numpy as np | |
import cv2 | |
import imutils | |
vid = cv2.VideoCapture(0) | |
if not vid.isOpened(): | |
print("Error: Could not open video.") | |
exit() |