Skip to content

Instantly share code, notes, and snippets.

@biblia19
biblia19 / sources.list
Created November 5, 2023 12:23
Ubuntu Server 22.04.3 initial /etc/apt/sources.list for Raspberry pi 4 (for backup)
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
## or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
@biblia19
biblia19 / vultr_manual_cert.sh
Last active August 15, 2022 06:35
acme.sh DNS manaul mode semi automation issue
#!/bin/sh
DOMAIN=<your_domain_name>
VULTR_API_KEY=<vultr_DNS_only_API_Key>
file1="/tmp/acme.sh.tmp.log"
[ -f $file1 ] && rm $file1
file2="/tmp/TXT.tmp"
[ -f $file2 ] && rm $file2
@biblia19
biblia19 / docker-compose.yml
Created August 5, 2022 06:04
n8n_with_PostgresSQL
# https://github.com/n8n-io/n8n/blob/master/docker/compose/withPostgres/docker-compose.yml
# https://docs.n8n.io/hosting/installation/docker/#postgresdb
version: '3.3'
services:
n8n:
image: n8nio/n8n
container_name: n8n
ports:
- '5678:5678'
environment:
@biblia19
biblia19 / test.sh
Created September 27, 2020 08:53
Automation Rename Folder from Wordpress
#!/bin/bash
for i in {1..70}
do
site="$(sed -n ${i}p folder_txt_file)"
unzip -q latest.zip
mv wordpress $site
chown -R www-data:www-data $site
done