py-based
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
Adapting elilo to storage changes | |
================================= | |
Suppose you've installed Slackware 15 on a laptop with | |
/dev/sda1 (boot) | |
/dev/sda2 (root) | |
/dev/sda3 (swap) | |
But then you upgrade to a different SSD which instead of | |
/dev/sda{1,2,3} has /dev/nvme0n1p{1,2,3}. |
movie torrent sites:
- https://filelist.io/browse.php
- https://rarbg2.to/fullsearch?q=
- https://proxygalaxy.me/
- https://1337x.to/
- https://www.torrentdownloads.pro/
search engines:
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
#!/usr/bin/python3 | |
# mawk's problem statement: | |
# the original question is: how many 6-sided (numbered from 1 to 6) fair dice are needed so that you can form 936 different products of the results? | |
# with 2 dice you can form the products 1·1, 1·2, …, 6·6 | |
# the issue of course here is that 4 = 2² and 6 = 2·3 | |
# if the dice were numbered with 1 2 3 5 7 11 it would be much easier | |
S=set([]) | |
D=156 |
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 | |
# same without cropping or merging | |
PDF="$1" | |
rm -rf A B C | |
mkdir A B C 2>/dev/null | |
pdftk $PDF burst output A/%04d.pdf | |
find A/*.pdf | xargs -P5 -I{} bash -c ' | |
a={}; | |
b=$(echo $a | sed -e "s/pdf/png/g" | sed -e "s/^A/B/g"); |
- nitter.it (for twitter)
- scribe.rip (for medium.com)
- yewtu.be (for youtube.com; more instances here)
- teddit.net (for reddit.com)
- safereddit.com
The official Elasticsearch documentation site is protected with Cloudflare Captcha so it can't be directly scraped.
The built-docs repo isn't self-contained (there are external resources, both images and js) and I don't understand how their air_gapped docs work, nor are there instructions on how to use it.
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
FROM vbatts/slackware:15.0 | |
LABEL maintainer "Stefan Corneliu Petrea <stefan.petrea@gmail.com>" | |
RUN slackpkg update | |
COPY bashrc /root/.bashrc | |
RUN source ~/.bashrc && slackpkg_unatt install ca-certificates perl rsync lz4 cyrus-sasl curl zstd xxHash nghttp2 brotli gcc make binutils patch | |
RUN update-ca-certificates -f | |
RUN wget -O sbopkg.tgz https://github.com/sbopkg/sbopkg/releases/download/0.38.2/sbopkg-0.38.2-noarch-1_wsr.tgz | |
RUN upgradepkg --install-new sbopkg.tgz | |
RUN mkdir -p /var/lib/sbopkg/queues /var/lib/sbopkg/SBo/15.0 |
NewerOlder