This gist contains lists of modules available in
in AWS Lambda.
This gist contains lists of modules available in
in AWS Lambda.
No, you are not allowed to change the copyright notice. Indeed, the license text states pretty clearly:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
But you are allowed to add a copyright notice.
If you want to keep the MIT license, which is what I would advise you to do, you only need to add a single line to the license file, before or after Copyright (c) 2012 Some Name
with your own copyright notice. The final LICENSE
file will look like this:
The MIT License (MIT)
#!/usr/bin/env bash | |
# To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error | |
# Make sure that the .gnupg directory and its contents is accessibile by your user. | |
chown -R $(whoami) ~/.gnupg/ | |
# Also correct the permissions and access rights on the directory | |
chmod 600 ~/.gnupg/* | |
chmod 700 ~/.gnupg |
1. While still on any branch | |
git tag -d v1.1 | |
2. Create the tag again: This will "move" the tag to point to your latest commit on that branch | |
git tag v1.1 | |
3. Delete the tag on remote |
# from pathlib import Path # Optional | |
# Using CDK v2 | |
from aws_cdk import Duration | |
from aws_cdk.aws_lambda import Function, Runtime | |
from aws_cdk_lambda_asset.zip_asset_code import ZipAssetCode | |
# NOTE: Only example usage below (needs some modification) |
import { readdirSync, rmdirSync, statSync } from 'node:fs' | |
import { join } from 'node:path' | |
export const cleanupEmptyFolders = (folder) => { | |
if (!statSync(folder).isDirectory()) return | |
let files = readdirSync(folder) | |
if (files.length > 0) { | |
files.forEach((file) => cleanupEmptyFolders(join(folder, file))) | |
// Re-evaluate files; after deleting subfolders we may have an empty parent |