Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

serbernar serbernar

🏠
Working from home
View GitHub Profile
@Forst
Forst / letsencrypt.sh
Last active Mar 23, 2018
Let's Encrypt webroot updater (nginx)
View letsencrypt.sh
#!/bin/sh
updatecert () {
/usr/bin/letsencrypt certonly \
--noninteractive \
--webroot \
--keep-until-expiring \
--expand \
--agree-tos \
--strict-permissions \
View my_json.py
#!/usr/bin/env python3
import json
from io import StringIO
from json.decoder import JSONObject
from json.scanner import py_make_scanner
my_json='''{"ok":true,"result":[{"update_id":547677716,
You can’t perform that action at this time.