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 |