xdotool getactivewindowxdotool get_desktop_for_window "$(xdotool getactivewindow)"| <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| $config['views_path'] = APPPATH . 'views/blade/'; | |
| $config['cache_path'] = APPPATH . 'cache/blade/'; |
| javascript:(function(){var links=document.querySelectorAll('a.l'),count=links.length;while(count--){links[count].onmousedown=null;if((/url=/i).test(links[count].href)){links[count].href=decodeURIComponent(links[count].href.match(/url=([a-z0-9\-+%._]+)&/i)[1].replace(/\+/g, ' '));}};})() |
| server { | |
| listen 80; | |
| server_name example.com; | |
| return 301 https://$host$request_uri; | |
| } | |
| #!/bin/bash | |
| # This script checks the haveibeenpwned 'PwnedPasswords' | |
| # API based on the first 5 characters of your password's | |
| # SHA-1 hash, then plucks out a full match from the hash | |
| # suffixes returned by the API (assuming there are any). | |
| # If your password's hash is found, it'll return pwncount. | |
| # | |
| # Either replace $1 with password, or call from shell | |
| # as ` ./passcheck "mypass" - note the preceeding space |
| // ==UserScript== | |
| // @name Youtube: Open in mpv | |
| // @version 1 | |
| // @grant none | |
| // @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js | |
| // @require https://gist.githubusercontent.com/BrockA/2625891/raw/9c97aa67ff9c5d56be34a55ad6c18a314e5eb548/waitForKeyElements.js | |
| // @match https://*.youtube.com/results* | |
| // @match https://*.youtube.com/c/*/videos | |
| // @match https://*.youtube.com/u/*/videos | |
| // @match https://*.youtube.com/channel/*/videos |
| // ==UserScript== | |
| // @name Tesco.com Click Fixer | |
| // @namespace Violentmonkey Scripts | |
| // @match https://www.tesco.com/* | |
| // @grant none | |
| // @version 1.0 | |
| // @author - | |
| // @description 07/05/2022, 09:32:38 | |
| // ==/UserScript== | |
| document.addEventListener('click', e => { |
| <?php | |
| namespace Fedora\Packages; | |
| use SimpleXMLElement; | |
| use XMLReader; | |
| class FedoraRelease | |
| { | |
| const RELEASES_URI = 'https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/'; |
This exemplary initial setup uses two devices /dev/sdb and /dev/sdc but can be applied to any amount of devices by following the steps with additional devices.
Create keyfile:
dd bs=64 count=1 if=/dev/urandom of=/etc/cryptkey iflag=fullblock
chmod 600 /etc/cryptkey| #!/usr/bin/env bash | |
| ROOT=/vault/media | |
| PREFIX=music-from- | |
| TARGET=$ROOT/music | |
| COLLECTIONS=(main) | |
| main() { | |
| for collection in "${COLLECTIONS[@]}"; do | |
| echo -e "\n Processing $collection/" |