Skip to content

Instantly share code, notes, and snippets.

View adrianharabula's full-sized avatar

Adrian Harabulă adrianharabula

View GitHub Profile
@adrianharabula
adrianharabula / renew_ssl_synology.md
Created December 29, 2021 11:43 — forked from huettern/renew_ssl_synology.md
Wildcard certificate on Synology NAS

Use certbot to create a wildcard certificat with DNS challenge

DOMAIN="example.com"
sudo certbot certonly  --manual --manual-public-ip-logging-ok --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory -d "*.$DOMAIN"

Follow the instructions on the console and create the DNS TXT record.

Copy the generated files to a working directory

@adrianharabula
adrianharabula / cloud-init.sh
Created February 6, 2019 15:41 — forked from ebal/cloud-init.sh
Cloud-init example using a Generic Cloud CentOS-7 on a libvirtd qmu/kvm lab
#!/bin/sh
if [ "$EUID" -ne 0 ]; then
echo -e "\nPlease run as root\neg. sudo $0 \n"
exit
fi
GITHUB_USERNAME="ebal"
cd `mktemp -d`
@adrianharabula
adrianharabula / gist:d0b4e029d0be9c46b1348e0c9f479c29
Created July 8, 2018 10:45 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@adrianharabula
adrianharabula / Notes
Created December 28, 2017 18:42 — forked from matt40k/Notes
Install Github-pages on Raspberry PI
# Check GitHub pages required versions @ https://pages.github.com/versions/
# GitHub Pages info page:
# - https://github.com/blog/1581-cutting-the-github-pages-gem/
# - https://help.github.com/articles/using-jekyll-with-pages/
# Ruby is installed on Raspbian by default, but its only 1.9, we need at least 2.0
# Alas v2 isn't in the apt-get repo, but we can use the rvm to install it
# First we must add their GPG key
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
@adrianharabula
adrianharabula / export-gh-issues.sh
Last active June 5, 2017 16:34 — forked from toashd/export-gh-issues.sh
Export github issues to json
curl -u ':uname' 'https://api.github.com/repos/:org/:repo/issues' > issues.json
@adrianharabula
adrianharabula / Dockerfile
Created May 14, 2017 18:00 — forked from briceburg/Dockerfile
laravel 5 - running in a docker container
FROM alpine
ENV \
APP_DIR="/app" \
APP_PORT="80"
# the "app" directory (relative to Dockerfile) containers your Laravel app...
COPY app/ $APP_DIR
RUN apk add --update \