-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitignore
91 lines (59 loc) · 2.95 KB
/
.gitignore
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
###############################################################################
# From Jekkyll & Just the Docs
# These are directly copied from Jekyll's first-party docs on `.gitignore` files:
# https://jekyllrb.com/tutorials/using-jekyll-with-bundler/#commit-to-source-control
# Ignore the default location of the built site, and caches and metadata generated by Jekyll
_site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata
# Ignore folders generated by Bundler
.bundle/
vendor/
###############################################################################
# Specific to 40tude web site
# -----------------------------------------------------------------------------
# directories to ignore
.git/
.vscode/
# **/raw_assets/" ignore all directories no matters where they are
**/raw_assets/
# -----------------------------------------------------------------------------
# Files to ignore
# Large files Size > 100MB (warning at 50MB)
# No way to specify the size in .gitignore
# Get-ChildItem ./ -recurse | where-object {$_.length -gt 100000000} | Sort-Object length | ft fullname, length -auto
# Add below the large files listed with the previous command
###############################################################################
# This may help
# Project stats :
# Total number of files
# Get-ChildItem -Recurse -File | Measure-Object | Select-Object -ExpandProperty Count
# Count the number of files with the extension
# Get-ChildItem -Path "./" -Recurse -Filter "*.py" | Measure-Object | Select-Object -ExpandProperty Count
# Count the number of lines of python code
# Get-ChildItem -Recurse -Filter "*.py" | Get-Content | Measure-Object -Line | Select-Object -ExpandProperty Lines
# Display all files secret*.*
# Get-ChildItem -Path . -Recurse -Force -Filter "secret*.*" | ForEach-Object { $_.FullName }
# Find the project directory size - GitHub 5GB max
# (Get-ChildItem . -Recurse | Measure-Object -Property Length -sum).sum/1GB
# Search for files containing the pattern "AWS_SECRET_ACCESS_KEY" and display the file paths where this pattern is found
# Get-ChildItem -Recurse -File | Select-String -Pattern "AWS_SECRET_ACCESS_KEY" | Select-Object -ExpandProperty Path
# List the 20 largest files in a directory and its subdirectories
# Get-ChildItem -Path . -Recurse | Sort-Object Length -Descending | Select-Object FullName, Length -First 20
# Search for directories named .aws in the current directory and its subdirectories
# Get-ChildItem -Path . -Directory -Recurse -Force | Where-Object { $_.Name -eq ".aws" }
# List all PNG files in a directory and its subdirectories, then display their full paths
# Get-ChildItem -Path . -Filter *.png -Recurse | Select-Object -ExpandProperty FullName
# No longer needed as they no longer exist
# secrets.sh
# secrets.yaml
# python.config
# .aws/
# *.aws
# files like my-keypair.pem (AWS key)
# *.pem
# Docker Compose environment variables
# See https://app.jedha.co/course/docker-reminders-l/docker-compose-l
# *.env
# *.pyc