Improved .visually-hidden
Theorically bulletproof CSS class for visually hide anything and keep it accessible to ATs.
| // https://bugzilla.mozilla.org/show_bug.cgi?id=128072#c32 | |
| // Credit: Alexander Bergmann | |
| "use strict;" | |
| // Toggle Replied and Forwarded | |
| if (location == "chrome://messenger/content/messenger.xhtml") { | |
| let toggleRepliedAndForward = { | |
| // Requires Gulp v4. | |
| // $ npm uninstall --global gulp gulp-cli | |
| // $ rm /usr/local/share/man/man1/gulp.1 | |
| // $ npm install --global gulp-cli | |
| // $ npm install | |
| const { src, dest, watch, series, parallel } = require('gulp'); | |
| const browsersync = require('browser-sync').create(); | |
| const sass = require('gulp-sass'); | |
| const autoprefixer = require('gulp-autoprefixer'); | |
| const sourcemaps = require('gulp-sourcemaps'); |
| #!/bin/sh | |
| # The script configures simultaneous AP and Managed Mode Wifi on Raspberry Pi Zero W (should also work on Raspberry Pi 3) | |
| # Usage: curl https://gist.githubusercontent.com/lukicdarkoo/6b92d182d37d0a10400060d8344f86e4/raw | sh -s WifiSSID WifiPass APSSID APPass | |
| # Licence: GPLv3 | |
| # Author: Darko Lukic <lukicdarkoo@gmail.com> | |
| # Special thanks to: https://albeec13.github.io/2017/09/26/raspberry-pi-zero-w-simultaneous-ap-and-managed-mode-wifi/ | |
| MAC_ADDRESS="$(cat /sys/class/net/wlan0/address)" | |
| CLIENT_SSID="${1}" | |
| CLIENT_PASSPHRASE="${2}" |
| #!/usr/bin/env bash | |
| # | |
| # Usage: dev_signed_cert.sh HOSTNAME | |
| # | |
| # Creates a CA cert and then generates an SSL certificate signed by that CA for the | |
| # given hostname. | |
| # | |
| # After running this, add the generated dev_cert_ca.cert.pem to the trusted root | |
| # authorities in your browser / client system. | |
| # |
| # Backup files | |
| #https://explainshell.com/explain?cmd=rsync+-azuv+--delete+--progress+--exclude+%27node_modules%27 | |
| rsync -auvhp --delete --exclude=node_modules [source] [destination] | |
| # Remove all node_modules folders | |
| # https://explainshell.com/explain?cmd=find+.+-name+%22node_modules%22+-type+d+-prune+-exec+rm+-rf+%27%7B%7D%27+%2B | |
| find . -name "node_modules" -type d -prune -exec rm -rf '{}' + |
| #!/usr/bin/env bash | |
| # Purpose: Download and install latest stable firefox for any Linux distribution | |
| # gpg --receive-keys 0x4360FE2109C49763186F8E21EBE41E90F6F12F6D | |
| # Update 2021-06-03: key change, new key is signed with old 0x14F26682D0916CDD81E37B6D61B7B526D98F0353 | |
| # https://blog.mozilla.org/security/2021/06/02/updating-gpg-key-for-signing-firefox-releases/ | |
| # GPG SETTINGS | |
| RELEASE_KEY_FINGERPRINT="0xADD7079479700DCADFDD5337E36D3B13F3D93274" | |
| MOZILLA_KEY_SERVER="gpg.mozilla.org" | |
| GNUPGHOME="/var/cache/gnupg_download_firefox_release" |
| { | |
| "host": "HOSTNAME", | |
| "user": "FTP_USERNAME", | |
| "password": "FTP_PASSWORD", | |
| "parallel": 10 | |
| } |
| .sticky { | |
| position: absolute; | |
| right: 0; | |
| z-index: 150; | |
| transform: rotate(5deg); | |
| width: 200px; | |
| min-height: 150px; | |
| margin: -10px 10px 10px; | |
| padding: 10px; | |
| font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive; |
| # Source internet | |
| # Use at your own risk, test on localhost first | |
| # Ovrride Default index.php | |
| DirectoryIndex home.php | |
| # Prevent access to some files | |
| <FilesMatch "^(wp-config.php|readme.html|license.txt|README.md|.gitignore|.gitattributes|.htaccess|error_log)"> | |
| Order allow,deny | |
| Deny from all |