Compare commits
No commits in common. "ff57016f0cfef6e6c9acf8868417306c169b29d0" and "98e335ac070075a5f07e2fb5d43800f6a100bffb" have entirely different histories.
ff57016f0c
...
98e335ac07
37
README.md
37
README.md
@ -1,26 +1,4 @@
|
||||
# Scripts
|
||||
|
||||
- [Configure SSH connection helper (remote pc not server)](#configure-ssh-connection-helper-remote-pc-not-server)
|
||||
- [Docker commands](#docker-commands)
|
||||
- [Remove every user R packages](#remove-every-user-r-packages)
|
||||
- [Setup Git SSH key](#setup-git-ssh-key)
|
||||
- [Font ligature test](#font-ligature-test)
|
||||
- [QEMU cheat sheet](#qemu-cheat-sheet)
|
||||
- [Share internet between two Linux interfaces using connman](#share-internet-between-two-linux-interfaces-using-connman)
|
||||
- [IP Host (eth1 has internet, eth0 is remote)](#ip-host-eth1-has-internet-eth0-is-remote)
|
||||
- [IP Remote](#ip-remote)
|
||||
- [Remove DRM from Adobe Digital Editions](#remove-drm-from-adobe-digital-editions)
|
||||
- [Prerequisites](#prerequisites)
|
||||
- [Setting up Calibre](#setting-up-calibre)
|
||||
- [Getting the DRM-free PDF](#getting-the-drm-free-pdf)
|
||||
- [Loop devices](#loop-devices)
|
||||
- [Install img.xz](#install-imgxz)
|
||||
- [Raise Linux open files limits](#raise-linux-open-files-limits)
|
||||
- [Verify a PGP Signature](#verify-a-pgp-signature)
|
||||
- [Self-signed OpenSSL](#self-signed-openssl)
|
||||
- [interactive](#interactive)
|
||||
- [non-interactive and 10 years expiration](#non-interactive-and-10-years-expiration)
|
||||
- [Bind to port 80 or 443](#bind-to-port-80-or-443)
|
||||
# scripts
|
||||
|
||||
## Configure SSH connection helper (remote pc not server)
|
||||
|
||||
@ -104,7 +82,7 @@ qemu-system-x86_64 $DISK_NAME.img \
|
||||
-name $VM_NAME &
|
||||
```
|
||||
|
||||
## Share internet between two Linux interfaces using connman
|
||||
## Share internet between two linux interfaces using connman
|
||||
|
||||
### IP Host (eth1 has internet, eth0 is remote)
|
||||
|
||||
@ -137,7 +115,7 @@ config <eth0> --ipv4 manual 192.168.137.2 255.255.255.0 192.168.137.1 --nameserv
|
||||
|
||||
### Prerequisites
|
||||
|
||||
On Windows, you must have _Adobe Digital Editions_ and _Calibre_ using Chocolatey
|
||||
In Windows you must have _Adobe Digital Editions_ and _Calibre_ using Chocolatey
|
||||
|
||||
```sh
|
||||
choco install -y adobedigitaleditions calibre
|
||||
@ -147,11 +125,11 @@ choco install -y adobedigitaleditions calibre
|
||||
|
||||
- Download the DeDRM plugin on [GitHub](https://github.com/noDRM/DeDRM_tools).
|
||||
- Extract the plugin archive
|
||||
- Install the plugin in Calibre → Preferences → Plugins → Add from file
|
||||
- Install the plugin in Calibre -> Preferences -> Plugins -> Add from file
|
||||
|
||||
### Getting the DRM-free PDF
|
||||
### Getting the DRM-free pdf
|
||||
|
||||
- Open the PDF using _Adobe Digital Editions_
|
||||
- Open the pdf using _Adobe Digital Editions_
|
||||
- Navigate to C:/Users/\<USER\>/My\ Digital\ Editions
|
||||
- Add the PDF to calibre
|
||||
- The DRM free PDF is available at C:/Users/\<USER\>/Calibre\ Library
|
||||
@ -179,7 +157,7 @@ rm $BLOCK_PATH
|
||||
xzcat $IMG_FILE | dd of=/dev/$DEVICE bs=64k oflag=dsync status=progress
|
||||
```
|
||||
|
||||
## Raise Linux open files limits
|
||||
## Raise linux open files limits
|
||||
|
||||
In the file /etc/security/limits.conf add this :
|
||||
|
||||
@ -215,5 +193,4 @@ openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 3
|
||||
## Bind to port 80 or 443
|
||||
|
||||
[Is there a way for non-root processes to bind to "privileged" ports on Linux?](https://stackoverflow.com/questions/413807/is-there-a-way-for-non-root-processes-to-bind-to-privileged-ports-on-linux)
|
||||
|
||||
[Allow non-root process to bind to port 80 and 443?](https://superuser.com/questions/710253/allow-non-root-process-to-bind-to-port-80-and-443)
|
||||
|
17
pull.sh
17
pull.sh
@ -12,12 +12,23 @@ cd ..
|
||||
for d in *; do
|
||||
cd "$d" || continue
|
||||
|
||||
PULL_LOG=$(script -q /dev/null -c 'git pull')
|
||||
if [ "$PULL_LOG" != "$(env printf 'Already up to date.\r\n')" ]; then
|
||||
#PULL_LOG=$(script -q /dev/null -c 'git pull')
|
||||
#if [ "$PULL_LOG" != "$(env printf 'Already up to date.\r\n')" ]; then
|
||||
# env printf "┌$(__r__ 40 ─)┐\n"
|
||||
# env printf "│ %-38s │\n" "$d"
|
||||
# env printf "└$(__r__ 40 '─')┘\n"
|
||||
# echo "$PULL_LOG"
|
||||
#fi
|
||||
|
||||
# git gc
|
||||
# git clean -fx
|
||||
|
||||
STATUS_LOG=$(script -q /dev/null -c 'git status -s')
|
||||
if [ -n "$STATUS_LOG" ]; then
|
||||
env printf "┌$(__r__ 40 ─)┐\n"
|
||||
env printf "│ %-38s │\n" "$d"
|
||||
env printf "└$(__r__ 40 '─')┘\n"
|
||||
echo "$PULL_LOG"
|
||||
echo "$STATUS_LOG"
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
24
status.sh
24
status.sh
@ -1,24 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
__r__(){
|
||||
end="$1"
|
||||
for _ in $(seq 1 "$end"); do
|
||||
printf '%s' "$2";
|
||||
done
|
||||
}
|
||||
|
||||
cd ..
|
||||
|
||||
for d in *; do
|
||||
cd "$d" || continue
|
||||
|
||||
STATUS_LOG=$(script -q /dev/null -c 'git status -s')
|
||||
if [ -n "$STATUS_LOG" ]; then
|
||||
env printf "┌$(__r__ 40 ─)┐\n"
|
||||
env printf "│ %-38s │\n" "$d"
|
||||
env printf "└$(__r__ 40 '─')┘\n"
|
||||
echo "$STATUS_LOG"
|
||||
fi
|
||||
|
||||
cd ..
|
||||
done
|
Loading…
x
Reference in New Issue
Block a user