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
https://raw.githubusercontent.com/rjaus/ublacklist-pinterest/main/ublacklist-pinterest.txt | |
https://raw.githubusercontent.com/h-matsuo/uBlacklist-subscription-for-developer/master/list.txt | |
https://raw.githubusercontent.com/arosh/ublacklist-stackoverflow-translation/master/uBlacklist.txt |
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
*://5.9.10.113/* | |
*://*.alvinalexander.com/* | |
*://*.askcodez.com/* | |
*://*.bountysource.com/* | |
*://*.codegrepper.com/* | |
*://*.codota.com/* | |
*://*.geeksforgeeks.org/* | |
*://*.gitmemory.com/* | |
*://*.gitter.im/* | |
*://*.howtodoinjava.com/* |
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
Jekyll::Hooks.register :documents, :pre_render do |document, payload| | |
docExt = document.extname.tr('.', '') | |
# only process if we deal with a markdown file | |
if payload['site']['markdown_ext'].include? docExt | |
newContent = document.content.gsub(/!\[(.*)\]\((?:\/?([^\)\:\s]+))(?:\s"(.*)")?\)(?:{:([^}]+)})*/, '{% responsive_image path: \2 alt: "\1" title: "\3" %}') | |
document.content = newContent | |
end | |
end |
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
"""Utility functions to create a WXR file for Wordpress. | |
""" | |
import datetime | |
import os | |
from lxml import etree as ET | |
from lxml.etree import CDATA | |
# XML namespaces declarations |
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/bash | |
access_token=<pushbullet access token> # Get it from your account settings page (https://www.pushbullet.com/#settings/account) | |
# Get IP, reverse DNS and hostname | |
ip=${SSH_CONNECTION%% *} | |
reverse=$(dig -x $ip +short) | |
hostname=$(hostname) | |
curl --request POST \ |
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
Options +FollowSymLinks | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^(.*)$ https://www.domain.tld/$1 [R,L] | |
# Replace domain.tld by you own domain name ;-) | |
# BEGIN WordPress |