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
/db | |
/plugins | |
/uploads | |
/logs |
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
--- | |
created: <% tp.file.creation_date() %> | |
--- | |
tags:: [[+Daily Notes]] | |
# <% moment(tp.file.title,'YYYY-MM-DD').format("dddd, MMMM DD, YYYY") %> | |
<< [[Timestamps/<% tp.date.now("YYYY", -1) %>/<% tp.date.now("MM-MMMM", -1) %>/<% tp.date.now("YYYY-MM-DD-dddd", -1) %>|Yesterday]] | [[Timestamps/<% tp.date.now("YYYY", 1) %>/<% tp.date.now("MM-MMMM", 1) %>/<% tp.date.now("YYYY-MM-DD-dddd", 1) %>|Tomorrow]] >> | |
--- |
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
DELETE FROM wp_termmeta WHERE meta_id=0; | |
DELETE FROM wp_terms WHERE term_id=0; | |
DELETE FROM wp_term_taxonomy WHERE term_taxonomy_id=0; | |
DELETE FROM wp_commentmeta WHERE meta_id=0; | |
DELETE FROM wp_comments WHERE comment_ID=0; | |
DELETE FROM wp_links WHERE link_id=0; | |
DELETE FROM wp_options WHERE option_id=0; | |
DELETE FROM wp_postmeta WHERE meta_id=0; | |
DELETE FROM wp_users WHERE ID=0; | |
DELETE FROM wp_posts WHERE ID=0; |
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
apt-get upgrade -y | |
apt-get dist-upgrade -y | |
apt-get install -y update-manager-core | |
iptables -I INPUT -p tcp --dport 1022 -j ACCEPT | |
sudo sed -i 's/Prompt=.*/Prompt=normal/' /etc/update-manager/release-upgrades | |
rm /var/run/reboot-required* | |
do-release-upgrade --frontend=DistUpgradeViewNonInteractive | |
#"DistUpgradeViewText", "DistUpgradeViewGtk", "DistUpgradeViewKDE" |
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
# Check your website headers here: https://www.serpworx.com/check-security-headers/ or https://gf.dev/ | |
# This configuration works for WP, WC on LiteSpeed server. Be careful. Test site after installing. All lines are explained are in serpworx.com tester. | |
# More docs: | |
# https://www.netsparker.com/whitepaper-http-security-headers/#XFrameOptionsHTTPHeader | |
# https://owasp.org/www-project-secure-headers/ | |
# https://www.keycdn.com/blog/http-security-headers | |
# WordPress plugin for Headers setup https://wordpress.org/plugins/http-headers/ | |
# Main security options in .htaccess 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
### deployment tool aliases | |
## docker | |
# docker image | |
alias dckils='docker image ls' | |
alias dckilsa='docker image ls -a' | |
# docker container | |
alias dckcls='docker container ls' |
Unfortunately, [since mirrors currently bloat compiled code][no_support_mirrors], it isn't supported for Flutter or web apps. A [workaround][source_gen_tutorial] would be to use a package like [
source_gen
][source_gen].
Most of the info here, comes from [Understanding Reflection and Annotations in Dart tutorial][reflection_tutorial], from the Fullstack Dart and Flutter Tutorials YouTube channel. He also created a [gist][gist_tutorial] with it.
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
volumes: | |
db_data: | |
version: '3.7' | |
services: | |
mysql: | |
container_name: mysql | |
image: mysql:5.7 | |
volumes: |
NewerOlder