Skip to content

Instantly share code, notes, and snippets.

@mnordin
mnordin / ddns
Last active March 26, 2021 07:37
Secure Jellyfin (nginx) with dynamic whitelisted IP addresses
foo.example.com
bar.example.com
baz.example.com
@mnordin
mnordin / instagram_image_downloader.rb
Last active December 8, 2017 14:56
Download all images from a public Instagram account or hashtag
require 'cgi'
require 'open-uri'
require 'json'
if ARGV[0].to_s.start_with?("#")
tag = CGI.escape(ARGV[0].to_s).sub(/\A%23/, "")
else
username = ARGV[0]
end
@mnordin
mnordin / gist:1338234
Created November 3, 2011 23:17
Example form without jQuery Mobile ajax transition
<%= form_for @user, :'data-ajax' => "false" do |f| %>
<!-- form body -->
<%= f.submit "Save", :'data-theme' => "b" %>