This file contains 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
Replace "test" with your actual password: | |
docker run --rm caddy caddy hash-password --plaintext test | |
Afterwards the hashed password has to be base64 encoded (example for MacOS/Linux command line): | |
echo -n '$2a$14$IKXcpbxxxxxxxxViGObuL7TffDIl5Wxxxxxxxr3o4De4QNu' | base64 |
This file contains 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
As there are no clear instructions on the Caddy Homepage on how to create a password | |
(without their own caddy tool, which might not be available) in the needed format, | |
I compiled a short list on how to do it the right way: | |
Replace password with your own password! | |
Create a BCrypt encrypted password in 10 rounds | |
htpasswd -bnBC 10 "" password | |
-> | |
:$2y$10$ow7UC86yXaSoZSr0mcGxeOYK9DfqsnKnA9RoKR.nxUUXVbXqOibgm |
This file contains 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
# Configuration for ddclient scripts | |
# generated from debconf on Mon Jun 3 17:01:32 UTC 2019 | |
# | |
# /etc/default/ddclient | |
# Set to "true" if ddclient should be run every time DHCP client ('dhclient' | |
# from package isc-dhcp-client) updates the systems IP address. | |
run_dhclient="false" | |
# Set to "true" if ddclient should be run every time a new ppp connection is |
This file contains 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
#!/usr/bin/env ruby | |
# encoding: UTF-8 | |
require 'uri' | |
require 'open-uri' | |
require 'json' | |
require 'nokogiri' | |
class PodcastGrabber |
This file contains 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
As an update to my former gist: https://gist.github.com/michaelsd/1859298 | |
I tried updating to ruby 2.0 and again there were some obstacles to overcome: | |
After using my previous tutorial i got the following error when updating gems | |
cannot load such file -- openssl | |
I found many sites with possible solutions, but the ultimate tip i found here | |
http://apple.stackexchange.com/questions/83722/ruby-2-0-0-fails-to-install-because-of-openssl | |
"The configure script will say that --with-openssl-dir is an invalid option. It's lying." |
This file contains 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
Made an update covering Macos 10.8 and ruby 2.0: https://gist.github.com/michaelsd/5224456 | |
- Install "Command Line Tools for XCode" (Get it from Apple Developer Program) or Install XCode via Appstore | |
where option one is the faster one, 170MB vs 1.xGB | |
- Install https://github.com/sstephenson/rbenv | |
git clone into your home folder; | |
set environment variables, see install docs of rbenv; | |
- Get libyaml |