This script goes into /etc/kernel/postinst.d
. You have to make it executable by root, e.g. chown root:root /etc/kernel/postinst.d/00-signing ; chmod u+rx /etc/kernel/postinst.d/00-signing
. It assists you with automatically signing freshly installed kernel images using the machine owner key in a way similar to what dkms does. This is mainly useful if you want to use mainline kernels on Ubuntu on Secure Boot enabled systems. This needs shim-signed to be set up. If you have questions this one might help you: While I made this for Ubuntu 20.04, it should work on current Debian based distributions. YMMV.
import requests | |
import csv | |
response_data = requests.get('https://api.protonmail.ch/vpn/logicals') | |
response_json = response_data.json() | |
ip_list = [] | |
for server in response_json['LogicalServers']: |
/* | |
Cloudflare Workers Script to make request to the Riot Games API | |
By: BangingHeads | |
Supports GET Requests | |
Supports Path and GET Parameters as GET Parameters | |
Example path: https://example.bangingheads.workers.dev/api/?region=na1&endpoint=/lol/summoner/v4/summoners/by-name/{summonerName}&summonerName=Headbang | |
Use Guide on Hextech Docs (https://hextechdocs.dev) if you need more help | |
*/ |
addEventListener("fetch", (event) => { | |
event.respondWith( | |
handleRequest(event).catch( | |
(err) => new Response(err.stack, { status: 500 }) | |
) | |
); | |
}); | |
/** | |
* Many more examples available at: |
# Unattended Install of Firefox | |
$SourceURL = "https://download.mozilla.org/?product=firefox-msi-latest-ssl&os=win64&lang=en-US"; | |
$Installer = $env:TEMP + "\firefox.exe"; | |
Invoke-WebRequest $SourceURL -OutFile $Installer; | |
Start-Process -FilePath $Installer -Args "/s" -Verb RunAs -Wait; | |
Remove-Item $Installer; |
From the man-pages: "The cache logical volume type uses a small and fast LV to improve the performance of a large and slow LV. It does this by storing the frequently used blocks on the faster LV. LVM refers to the small fast LV as a cache pool LV. The large slow LV is called the origin LV. Due to requirements from dm-cache (the kernel driver), LVM further splits the cache pool LV into two devices - the cache data LV and cache metadata LV. The cache data LV is where copies of data blocks are kept from the origin LV to increase speed. The cache metadata LV holds the accounting information that specifies where data blocks are stored (e.g. on the origin LV or on the cache data LV). Users should be familiar with these LVs if they wish to create the best and most robust cached logical volumes. All of these associated LVs must be in the same VG."
Assuming LVM is already setup in HDD (e.g. from anaconda) and SSD is untouched.
Create a physical
A collection of peer-to-peer decentralized projects. Contact me to add your project!
More project can be found here: https://www.gnunet.org/links/
<?php | |
/** | |
* Plugin Name: Attach My Upload | |
* Description: Allow to create an attachment post from a file already uploaded to uploads folder. | |
* Plugin URI: http://wordpress.stackexchange.com/questions/141509/ | |
* Author: G. M. | |
* Author URI: http://wordpress.stackexchange.com/users/35541/g-m | |
* | |
*/ | |
/* |