- Store secrets in environment variables or dedicated secret management systems
- Never commit secrets to version control
- Implement secret rotation policies
- Use different credentials for different environments
- Encrypt sensitive configuration values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # An example hook script to verify what is about to be committed. | |
| # Called by "git commit" with no arguments. The hook should | |
| # exit with non-zero status after issuing an appropriate message if | |
| # it wants to stop the commit. | |
| # | |
| # To enable this hook, rename this file to "pre-commit". | |
| if git rev-parse --verify HEAD >/dev/null 2>&1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "io" | |
| "log" | |
| "os" | |
| "os/exec" | |
| "runtime" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bufio" | |
| "bytes" | |
| "io" | |
| "log" | |
| ) | |
| func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /opt/homebrew/bin/python3 | |
| import sys | |
| import datetime | |
| template = """# Journal Entry - [Date] | |
| == Overview == | |
| [Provide a brief overview of the day or the main events.] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def convert_none( | |
| key: str, val: None, attr_type: bool, attr: Dict[str, Any] = {}, cdata: bool = False | |
| ) -> str: | |
| """Converts a null value into an XML element""" | |
| LOG.info(f'Inside convert_none(): key="{str(key)}" val={type(val)}') | |
| key, attr = make_valid_xml_name(key, attr) | |
| if attr_type: | |
| attr["type"] = get_xml_type(val) | |
| attrstring = make_attrstring(attr) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ber/libdecnumber.a | |
| [gcc/build] clang: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument] | |
| [gcc/build] clang: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument] | |
| [gcc/build] Undefined symbols for architecture arm64: | |
| [gcc/build] "_ZSTD_compress", referenced from: | |
| [gcc/build] Undefined symbols for architecture arm64: | |
| [gcc/build] "_ZSTD_compress", referenced from: | |
| [gcc/build] lto_end_compression(lto_compression_stream*) in libbackend.a(lto-compress.o) | |
| [gcc/build] lto_end_compression(lto_compression_stream*) in libbackend.a(lto-compress.o) | |
| [gcc/build] "_ZSTD_compressBound", referenced from: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir -p build | |
| cc -O3 -Wall -Werror -fpic -std=gnu99 -shared src/fzf.c -o build/libfzf.so | |
| In file included from src/fzf.c:5: | |
| /usr/local/include/stdlib.h:134:25: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness] | |
| double atof(const char *); | |
| ^ | |
| /usr/local/include/stdlib.h:134:25: note: insert '_Nullable' if the pointer may be null | |
| double atof(const char *); | |
| ^ | |
| _Nullable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " antirez's .vimrc | |
| " Copyright(C) 2001 Salvatore Sanfilippo | |
| " Enable the syntax highlight mode if available | |
| syntax sync fromstart | |
| if has("syntax") | |
| syntax sync fromstart | |
| syntax on | |
| set background=dark | |
| let php_sync_method="0" |
NewerOlder