Skip to content

Instantly share code, notes, and snippets.

View thanhdevapp's full-sized avatar

thanhdevapp thanhdevapp

  • Ha Noi, Viet Nam
  • 02:32 (UTC +07:00)
View GitHub Profile
@thanhdevapp
thanhdevapp / idea-reset-evaluation.sh
Created November 5, 2020 02:10 — forked from lzhoucs/idea-reset-evaluation.sh
reset intellij idea 14 evaluation
#!/bin/bash
echo "removing evaluation key"
rm ~/.IntelliJIdea15/config/eval/idea15.evaluation.key
# for mac go to: /Users/username/Library/Preferences/IntelliJIdea2016.3/eval/idea163.evaluation.key
echo "resetting evalsprt in options.xml"
sed -i '/evlsprt/d' ~/.IntelliJIdea15/config/options/options.xml
# for mac go to: /Users/lzhoucs/Library/Preferences/IntelliJIdea2016.3/options/options.xml
@thanhdevapp
thanhdevapp / docker-compose-backup.sh
Created March 16, 2021 06:24 — forked from pirate/docker-compose-backup.sh
Backup a docker-compose project, including all images, named and unnamed volumes, container filesystems, config, logs, and databases.
#!/usr/bin/env bash
### Bash Environment Setup
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
# set -o xtrace
set -o errexit
set -o errtrace
set -o nounset
set -o pipefail