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
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 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
--- | |
created: <% tp.file.creation_date() %> | |
--- | |
tags:: [[+Daily Notes]] | |
# <% moment(tp.file.title,'YYYY-MM-DD').format("dddd, MMMM DD, YYYY") %> | |
<< [[<% fileDate = moment(tp.file.title, 'YYYY-MM-DD-dddd').subtract(1, 'd').format('YYYY-MM-DD-dddd') %>|Yesterday]] | [[<% fileDate = moment(tp.file.title, 'YYYY-MM-DD-dddd').add(1, 'd').format('YYYY-MM-DD-dddd') %>|Tomorrow]] >> | |
--- |
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
#!/usr/bin/env ruby | |
# 1. Install hunspell | |
# $ brew install hunspell | |
# 2. Download a dictionary and install it in a path listed by `hunspell -D` | |
# $ open http://wiki.services.openoffice.org/wiki/Dictionaries | |
# 3. Move this file into your repository | |
# $ mv commit-msg /path/to/repo/.git/hooks |
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
#!/usr/bin/env ruby | |
# 1. Install hunspell | |
# $ brew install hunspell | |
# 2. Download a dictionary and install it in a path listed by `hunspell -D` | |
# $ open http://wiki.services.openoffice.org/wiki/Dictionaries | |
# 3. Move this file into your repository | |
# $ mv commit-msg /path/to/repo/.git/hooks |
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
# 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: |
Adding Open Graph metadata to Blogger is easy.
Simply copy the code below and paste it into your template after the <header>
tag.
A couple notes:
og:locale
Should probably actually reflect the blog's locale instead of just being a hardcoded string. Unfortunately, Blogger only gives usen-us
with a hyphen, instead of an underscore, so that won't work.- If you're using your blog as a personal profile, you may consider changing the second
og:type
fromwebsite
toprofile
and adding your personal information og:image
Is only supplied if Blogger finds an image in the current post. However, not supplyingog:image
is invalid. You could provide an alternate image of your blog logo, or a Gravatar.- If you do something cool with this, I'd love to hear about it. [email protected]
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
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 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
import json | |
import urllib.request | |
import urllib.parse | |
import sys | |
import datetime | |
import os | |
output_dir = sys.argv[1] | |
apikey = sys.argv[2] |