This file contains hidden or 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
payload: | |
- '136.22.64.0/24' | |
- '136.22.65.0/24' | |
- '136.22.67.0/24' | |
- '136.22.76.0/24' | |
- '136.22.83.0/24' | |
- '136.22.85.0/24' | |
- '136.22.86.0/24' | |
- '136.22.87.0/24' | |
- '136.22.92.0/24' |
This file contains hidden or 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
import PyPDF2 | |
import os | |
def rearrange_pages(pdf_path): | |
with open(pdf_path, 'rb') as file: | |
reader = PyPDF2.PdfReader(file) | |
writer = PyPDF2.PdfWriter() | |
num_pages = len(reader.pages) # Get the number of pages in the PDF file | |
for i in range(0, num_pages): |
This file contains hidden or 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 | |
file=/volume1/homes/backup/docker-compose-nas.yml # Change it to your own path | |
if test -f "$file"; then | |
cp /volume1/homes/backup/docker-compose-nas.yml /volume1/homes/backup/docker-compose-nas.yml.bak # Change it to your own path | |
fi | |
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/red5d/docker-autocompose $(docker ps -aq) > /volume1/homes/backup/docker-compose-nas.yml # Change it to your own path |
This file contains hidden or 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
;iphone.txt and ipad.txt has to be located at the same directory | |
+d:: | |
FileRead, iphoneurl, iphone.txt | |
FileRead, ipadurl, ipad.txt | |
clipboard = %clipboard% | |
If (InStr(clipboard,"http://") or InStr(clipboard,"HTTP://") or InStr(clipboard,"https://") or InStr(clipboard,"HTTPS://")) | |
{ | |
copy := "?url=" . clipboard | |
clipboard := "Incoming URL Link" | |
} else { |
This file contains hidden or 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
{ | |
"content": "{{MentionType}}", | |
"avatar_url": "{{AvatarUrl}}", | |
"username": "{{{BotUsername}}}", | |
"embeds": [ | |
{ | |
"color": "{{EmbedColor}}", | |
"footer": { | |
"text": "From {{{ServerName}}}", | |
"icon_url": "{{AvatarUrl}}" |
This file contains hidden or 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
docker exec ipfs-node ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://192.168.162.106:50238","http://192.168.162.106:50238","http://localhost:3000", "http://127.0.0.1:50238", "https://webui.ipfs.io"]' | |
docker exec ipfs-node ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "POST"]' |
This file contains hidden or 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
version: '3.8' | |
services: | |
ipfs: | |
image: "ipfs/kubo:latest" | |
restart: unless-stopped | |
volumes: | |
- ipfs_path:/data/ipfs | |
- ipfs_fuse:/ipfs | |
- ipns_fuse:/ipns | |
environment: |
This file contains hidden or 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
server { | |
listen 80 default_server; | |
server_name your.vaultwarden.com; | |
set_real_ip_from 172.16.0.0/12; | |
real_ip_header X-Forwarded-For; | |
location / { | |
proxy_pass http://192.168.12.3:10001; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |