- docker-machine (https://docs.docker.com/machine/install-machine/)
- docker-compose (https://docs.docker.com/compose/install/)
- virtualbox (https://www.virtualbox.org/wiki/Downloads)
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
# -*- coding: utf-8 -*- | |
# Python imports | |
import glob | |
import os | |
# 3rd Party imports | |
from django.conf import settings | |
from google.cloud import storage | |
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 winreg import HKEY_CURRENT_USER, ConnectRegistry, OpenKey, EnumKey, QueryValueEx | |
aReg = ConnectRegistry(None, HKEY_CURRENT_USER) | |
aKey = OpenKey(aReg, "Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\THQ") | |
f = open("dow_keys.txt", "a") | |
for i in range(1024): | |
try: | |
keyname = EnumKey(aKey, i) |
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 ubuntu:18.04 | |
ENV PYTHONUNBUFFERED 1 | |
RUN apt-get update && apt-get install -y curl gnupg2 software-properties-common | |
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - | |
#Ubuntu 18.04 | |
RUN curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list > /etc/apt/sources.list.d/mssql-release.list |
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 graphene | |
from graphene_django import DjangoObjectType | |
class Money(graphene.Scalar): | |
@staticmethod | |
def serialize(value): | |
return value | |
@staticmethod | |
def parse_literal(node): |
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
# python 3 imports | |
from __future__ import print_function | |
# imports | |
import fileinput | |
import re | |
# vars | |
domains_order = [ | |
'www.domain1.com', |
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
# python 3 imports | |
from __future__ import unicode_literals, print_function | |
# imports | |
import re | |
# vars | |
text = " A long text with url like www.google.com and www.twitter.com and lorem ipsum dolor sit amet www.tabga.es" | |
regex = r'([a-z0-9][-a-z0-9]*[a-z0-9]|[a-z0-9])\.(([a-z]{2,4}|[a-z]{2,3}.uk))(?![-0-9a-z])(?!\.[a-z0-9])' |