To pass wireguard's traffic through a TCP tunnel by using udp2raw
For Arch linux, install udp2raw by pacman:
pacman -S udp2raw
For Debian or Ubuntu, you can use a binary release from: https://github.com/wangyu-/udp2raw/releases
| javascript:(()=>{if(window.__urlHookInjected)return;window.__urlHookInjected=!0;const t=/https?:\/\/[^\s"%27<>]+/gi,e=new Set,o=o=>{const c=o.match(t);c&&c.forEach((t=>{e.has(t)||(e.add(t),function(t){const e=document.createElement("div");e.textContent=t,n.appendChild(e),n.scrollTop=n.scrollHeight}(t),console.log(`[URL Hook] ${o}`))}))},n=document.createElement("div");n.style.position="fixed",n.style.bottom="0",n.style.left="0",n.style.width="100%",n.style.maxHeight="150px",n.style.overflowY="auto",n.style.backgroundColor="rgba(0,0,0,0.85)",n.style.color="lime",n.style.fontFamily="monospace",n.style.fontSize="12px",n.style.zIndex="9999999999",n.style.padding="5px 10px",n.style.borderTop="3px solid lime",n.innerHTML="<strong>URL Hook Panel</strong><br>",document.body.appendChild(n);const c=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(t,e){return o(`[XHR] ${t}: ${e}`),c.apply(this,arguments)};const r=window.fetch;window.fetch=function(t,e){const n="string"==typeof t?t:t&&t.url;return n&& |
| # === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) === | |
| # | |
| # by Fotis Evangelou, developer of Engintron (engintron.com) | |
| # | |
| # ~ Updated December 2021 ~ | |
| # | |
| # | |
| # The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores. | |
| # If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage. | |
| # |
To pass wireguard's traffic through a TCP tunnel by using udp2raw
For Arch linux, install udp2raw by pacman:
pacman -S udp2raw
For Debian or Ubuntu, you can use a binary release from: https://github.com/wangyu-/udp2raw/releases
| <?php | |
| /** | |
| * @brief Return a progress bar with the length of $width | |
| * | |
| * @param [in] $done count for progress | |
| * @param [in] $total Maximum of progress | |
| * @param [in] $info Prefix text | |
| * @param [in] $width Width of progress bar (w/o prefix) | |
| * @param [in] $off Char to indicate not processed yet | |
| * @param [in] $on Char to indecate process |
| /* حذف لوگوی توئیتر */ | |
| [aria-label="Twitter"], | |
| [aria-label="توییتر"] { | |
| display: none; | |
| } | |
| /* ستون سمت چپ */ | |
| /* Explore و ،Bookmarks ،Lists چیزهایی که استفادهٔ کمتری دارن، شامل */ |
| خورشت | کلم پلو | کوکو | دمپخت | ماهیپلو | قلیه ماهی | آش | کوفته | خورشت کرفس | دلمه | سوپ | آش غوره | آش ماست | آش شلغم | ترشتره | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| برگ چغندر | TRUE | FALSE | FALSE | FALSE | FALSE | FALSE | TRUE | FALSE | FALSE | FALSE | TRUE | FALSE | FALSE | FALSE | FALSE | |
| ترخون | FALSE | TRUE | FALSE | TRUE | FALSE | FALSE | FALSE | TRUE | FALSE | TRUE | FALSE | FALSE | FALSE | FALSE | FALSE | |
| تره | TRUE | TRUE | TRUE | TRUE | FALSE | FALSE | TRUE | TRUE | FALSE | TRUE | TRUE | TRUE | TRUE | TRUE | FALSE | |
| جعفری | TRUE | FALSE | TRUE | FALSE | TRUE | FALSE | TRUE | TRUE | TRUE | TRUE | TRUE | TRUE | TRUE | TRUE | TRUE | |
| ریحان | FALSE | TRUE | FALSE | TRUE | FALSE | FALSE | FALSE | FALSE | FALSE | TRUE | FALSE | FALSE | FALSE | FALSE | FALSE | |
| سیر | FALSE | FALSE | FALSE | FALSE | TRUE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | |
| شاهی | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | TRUE | FALSE | |
| شلغم | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | TRUE | FALSE | |
| شملیز | TRUE | FALSE | FALSE | FALSE | TRUE | TRUE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE | FALSE |
| # -*- coding: utf-8 -*- | |
| import io | |
| import requests | |
| from bs4 import NavigableString, BeautifulSoup | |
| from docx import Document as DocxDocument | |
| from docx.enum.text import WD_ALIGN_PARAGRAPH | |
| from docx.shared import Cm, Pt, Mm | |
| from docx.image.exceptions import UnrecognizedImageError | |
| from lxml import etree |
| # Converts a docx file with tables and images to (simple) HTML | |
| # ORIGINAL CODE BY DAVID SSALI AT SOURCE: https://medium.com/@dvdssali/docx-to-html-1374eb6491a1 | |
| # | |
| # Requires the Python module 'python-docx' <https://python-docx.readthedocs.io> | |
| # | |
| # Example use: | |
| # >>> s = convert('./SOURCEDIR', 'SAMPLE.docx') | |
| # >>> print(s) | |
| # or | |
| # $ python .\convert-docx-to-html.py > temp.html |
This guide summarizes the files and methodology used for advanced hardening, performance tuning, and cleanup of a WordPress installation.
This file is the primary layer for security and performance at the server level.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <!-- | |
| Copyright (c) 2014-2017, Jan Bösenberg & Jürg Lehni | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |