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
<style type="text/css"> | |
[class*="card"] { | |
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.2); | |
transition: 0.3s; | |
margin-bottom: 20px; | |
} | |
[class*="card"]:hover { | |
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); | |
} |
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
# First, install some dependencies: | |
sudo apt-get install build-essential checkinstall -y | |
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev -y | |
# Then download using the following command: | |
version=$1 | |
if [ -z "$1" ] | |
then | |
version=2.7.14 | |
fi |
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
#!/bin/bash | |
rm dist/* | |
python setup.py sdist bdist_wheel | |
twine upload dist/* |
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
curl -s https://gist.githubusercontent.com/b4oshany/ed5cbd74a6ae19571b3d1ca3e4e13e69/raw/777c678360a37db505f974071413f28b9bec60b0/install-python2.7-apt.sh | bash | |
sudo apt-get update -y | |
sudo apt-get install python-pip -y | |
sudo pip install virtualenv | |
sudo apt-get install python-pil -y | |
sudo apt install python2.7 python2.7-dev python-setuptools python-dev build-essential libssl-dev libxml2-dev libxslt1-dev libbz2-dev libjpeg62-dev -y | |
sudo apt install libreadline-dev wv poppler-utils -y | |
sudo pip install bcrypt | |
sudo apt-get install libffi-dev -y | |
sudo apt-get install libpcre3-dev -y |
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
sudo apt-get install -y pdftk | |
sudo apt-get install -y graphicsmagick | |
sudo apt-get install -y poppler-utils | |
sudo apt-get install -y poppler-data | |
sudo apt-get install -y ghostscript | |
sudo apt-get install -y tesseract-ocr |
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
@provider(IFormFieldProvider) | |
class IRemoteLink(model.Schema): | |
"""Model based Dexterity Type""" | |
remoteUrl = schema.TextLine( | |
title=_(u'URL or email'), | |
description=_(u'The link is used almost verbatim, relative links ' |
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
sudo apt install gnupg2 pass -y | |
gpg2 --full-generate-key | |
pass init "whatever key id you have" |
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 argparse | |
import base64 | |
import errno | |
import logging | |
import time | |
import os | |
import re | |
from datetime import datetime | |
from fnmatch import fnmatch | |
from StringIO import StringIO |
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 kotti.resources import Content | |
from sqlalchemy.orm import aliased | |
parent_table = aliased(Content) | |
# Perform a self join with a where query, which adds the | |
# following line:: | |
# left join contents as n on contents.id = n.id |
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.7' | |
services: | |
# App service | |
app: | |
build: . | |
restart: always | |
container_name: app | |
volumes: |