Three steps:
- Find a repository without a
LICENSE
orLICENSE.md
file. - Determine the most appropriate license for the repository.
- Create a pull request adding a
LICENSE
orLICENSE.md
file.
# | |
# Copyright (C) 2013-2020 Vinay Sajip. New BSD License. | |
# | |
import os | |
import os.path | |
from subprocess import Popen, PIPE | |
import sys | |
from threading import Thread | |
from urllib.parse import urlparse | |
from urllib.request import urlretrieve |
#include <stdio.h> | |
#include <string.h> | |
const char *buf = "hello from linux\n"; | |
char * const argv[] = { | |
"/bin/sh", | |
"-c", | |
"echo 'hello from execve'", | |
NULL, | |
}; |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# | |
#author: rex | |
#blog: http://iregex.org | |
#filename trie.py | |
#created: 2010-08-01 20:24 | |
#source uri: http://iregex.org/blog/trie-in-python.html | |
# escape bug fix by fcicq @ 2012.8.19 |
# Fix keyboard interrupts when using multiprocessing.pool.imap(). | |
# Usage: | |
# import fix_multiprocessing.py | |
from multiprocessing.pool import IMapIterator | |
def wrapper(func): | |
def wrap(self, timeout=None): | |
# Note: the timeout of 1 googol seconds introduces a rather subtle |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
from urllib.parse import unquote | |
from django.db.models import Q | |
from django.urls import reverse | |
from django_filters import rest_framework as filters | |
from drf_spectacular.utils import extend_schema, inline_serializer | |
from packageurl import PackageURL | |
from rest_framework import serializers, viewsets, mixins | |
from rest_framework.decorators import action |
""" | |
Copies all keys from the source Redis host to the destination Redis host. | |
Useful to migrate Redis instances where commands like SLAVEOF and MIGRATE are | |
restricted (e.g. on Amazon ElastiCache). | |
The script scans through the keyspace of the given database number and uses | |
a pipeline of DUMP and RESTORE commands to migrate the keys. | |
Requires Redis 2.8.0 or higher. |