- 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 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 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 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 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 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" |
I hereby claim:
- I am vinitkumar on github.
- I am vinitkme (https://keybase.io/vinitkme) on keybase.
- I have a public key ASCMqfaVb6CdQcTxrz_cncGkL3VAjRbboGonVQftK8EraAo
To claim this, I am signing this object:
This file contains 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 sme(): | |
return 1 |
This file contains 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
import json | |
import subprocess | |
import pprint | |
""" | |
The goal of this task is to modify the web workers to 2 and timeout to | |
something like 30 seconds, so that the worker do not cross memory limit | |
settings['DJANGO_WEB_WORKERS'] = env('DJANGO_WEB_WORKERS', 3) |
NewerOlder