Why is git-crypt not encrypting my files?
We must git-crypt unlock the repository first for git-crypt to encrypt the file for us upon commit.
A pre-commit hook to avoid accidental commit of sensitive data:
#!/bin/sh
#pre-commit
| filetype off | |
| filetype plugin indent on | |
| set nocompatible | |
| set modelines=0 | |
| set tabstop=4 | |
| set shiftwidth=4 | |
| set softtabstop=4 |
| import { Vpc, Subnet, SubnetType, SecurityGroup, Peer, Port } from '@aws-cdk/aws-ec2'; | |
| import ecs = require('@aws-cdk/aws-ecs'); | |
| import ecs_patterns = require('@aws-cdk/aws-ecs-patterns'); | |
| import { CfnDBCluster, CfnDBSubnetGroup } from '@aws-cdk/aws-rds'; | |
| import secretsManager = require('@aws-cdk/aws-secretsmanager'); | |
| import ssm = require('@aws-cdk/aws-ssm'); | |
| import * as cdk from '@aws-cdk/core'; | |
| export class AwsCdkFargateRdsStackStack extends cdk.Stack { | |
| constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| for t in content.findAll(class_=re.compile('.*btn.*')): | |
| t.decompose() # this works, undesired parts of content is decomposed | |
| # ================================ | |
| [t.decompose() for t in content.findAll(class_=re.compile('.*btn.*'))] # this works | |
| # ================================ | |
| # map uses generator, t.decompose() is not called until someone access t |
| cookie = { | |
| 'domain': 'pythonscraping.com', | |
| 'httponly': False, | |
| 'name': 'has_js', | |
| 'path': '/', | |
| 'secure': False, | |
| 'value': '1' | |
| } | |
| keys = ['name', 'value', 'domain', 'path', 'expiry'] # 'expiry' is absent from the cookie dict |