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
#!/bin/zsh | |
format_date() { | |
date -r $1 +"%Y-%m-%dT%H:%M:%S" | |
} | |
declare -A files_by_date | |
git ls-files --modified --others --exclude-standard | while read file | |
do | |
timestamp=$(stat -f "%m" "$file") | |
date=$(format_date $timestamp) | |
files_by_date[$date]+="$file " |
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
const { withAndroidManifest } = require('@expo/config-plugins'); | |
const withCustomAndroidManifest = (config) => { | |
return withAndroidManifest(config, async (config) => { | |
const androidManifest = config.modResults; | |
const applicationElement = config.modResults.manifest.application; | |
// see: https://github.com/expo/expo/pull/23415/files#diff-5742c09b06ac215103bec3164608e1e337e95ca94764eb5de8f03505eb9425a6 | |
applicationElement['meta-data'] = applicationElement['meta-data'] || []; | |
applicationElement['meta-data'].push({ | |
$: { |
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
# Preserves the date when updating all commits | |
git -c rebase.instructionFormat='%s%nexec GIT_COMMITTER_DATE="%cD" git commit --amend --no-edit --author "Your Name Goes Here <your-email@example.com>"' rebase -r --root | |
# Updates all commits from the current HEAD commit until the given commit hash | |
git rebase -r <commit> --exec 'git commit --amend --no-edit --author "Your Name Goes Here <your-email@example.com>"' | |
# You can update all commits, use only if all the commits are your own! | |
# git rebase -r --root --exec 'git commit --amend --no-edit --author "Your Name Goes Here <your-email@example.com>"' | |
# Source: https://stackoverflow.com/a/75841127 |
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
FROM python:3.8 | |
# install redis | |
RUN apt-get update && apt-get install -y redis-server | |
# copy the dependencies file to the working directory | |
COPY requirements.txt /app/requirements.txt | |
COPY demo /app/demo | |
COPY post_data.txt /app/post_data.txt | |
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf |
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
# Install: | |
# brew install tflint | |
# brew install tfsec | |
# brew install terraform | |
# nano /path/to/check_tf.sh | |
# chmod +x /path/to/check_tf.sh | |
# | |
# Usage: | |
# cd /path/to/terraform/tf_files | |
# tflint --init |