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 apistar # type: ignore | |
import typesystem | |
from apistar.client.transports import BlockAllCookies, HTTPTransport | |
from httpx import AsyncClient | |
class AsyncHTTPTransport(HTTPTransport): | |
def __init__(self, *args, **kwargs): | |
super().__init__(*args, **kwargs) |
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
name | ring | quadrant | isNew | description | |
---|---|---|---|---|---|
Composer | adopt | tools | TRUE | Although the idea of dependency management ... | |
Canary builds | trial | techniques | FALSE | Many projects have external code dependencies ... | |
Apache Kylin | assess | platforms | TRUE | Apache Kylin is an open source analytics solution ... | |
JSF | hold | languages & frameworks | FALSE | We continue to see teams run into trouble using JSF ... |
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 MySQLdb | |
parser = argparse.ArgumentParser(description='Check table for empty/null/"always the same" columns') | |
parser.add_argument('--db', help='Databse name', required=True) | |
parser.add_argument('--table', help='Table name', required=True) | |
parser.add_argument('--user', help='DB user', required=True) | |
parser.add_argument('--password', help='DB password', required=True) | |
parser.add_argument('--host', help='DB host', default='localhost') |
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
#!/usr/bin/env python3 | |
import argparse | |
import os | |
from pathlib import Path | |
import shutil | |
import sys | |
from xml.dom import minidom | |
parser = argparse.ArgumentParser(description='Copy files of xspf playlist to target folder') |
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
# Put this code in your settings file | |
# Saves new secret key to secret.key file in same folder as your settings | |
import logging | |
logger = logging.getLogger(__name__) | |
## Secret key generation functions | |
secret_key_fn = os.path.join(os.path.dirname(__file__), 'secret.key') |
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 | |
set -e | |
DATE_STRING=`date -u "+%Y-%m-%dT%H-%M-%SZ"` | |
TMP_PATH=$HOME/vault_tmp_$DATE_STRING | |
TARGET_ARCHIVE=$HOME/sailfish_backup_$DATE_STRING.tar | |
FOLDERS="Accounts Browser Gallery Media Messages Notes People Phone" | |
if [ -n "$1" ]; then |
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 django.contrib.auth import logout | |
from django.contrib import messages | |
from django.utils.translation import ugettext_lazy as _ | |
class LogoutDisabledUserMiddleware: | |
"""Logout user if it is deactivated | |
""" | |
def process_request(self, request): | |
if request.user.is_authenticated() and not request.user.is_active: |
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 b67bd19f098c5126f6a00fe196b29912392dae4f Mon Sep 17 00:00:00 2001 | |
From: Florian Schweikert <[email protected]> | |
Date: Wed, 18 Feb 2015 18:14:23 +0100 | |
Subject: [PATCH] Set hvad<1.1 (incompatible) | |
--- | |
setup.py | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/setup.py b/setup.py |