- working macvlan with docker
- systemd network devices
- each container can reach the whole nework (full routing)
docker-compose.yml
example with static ipv4 on macvlan- if no ip defined, container get a ip within
192.168.155.192/27
#!/usr/bin/env python | |
# tinydkim - takes an RSA public key on stdin and outputs a tinydns / djbdns DKIM record | |
# | |
# example: openssl rsa -in test.pem -pubout | ./tinydkim.py -s test -d foo.com | |
# | |
# TODO: add support for notes field? | |
# | |
# 2016 Lee Maguire |
When using a USG with Ubiquiti's Unifi Controller software (version 5.6 and earlier), the functionality of integrating the hostnames of clients (when they request a DHCP lease) into local DNS does not appear to work as you would find with Consumer grade routers. To work around this limitation, we can add static host mappings to a configuration file that will be provisioned to the USG when either a configuration change is made or we force provisioning to the USG itself.
I've added in the necessary syntax for adding Cloudflare DDNS to the USG for VPN/Services setup courtesy of this post by britannic on the Ubiquiti Forums.
var zip = new JSZip(); | |
var count = 0; | |
var zipFilename = "zipFilename.zip"; | |
var urls = [ | |
'http://image-url-1', | |
'http://image-url-2', | |
'http://image-url-3' | |
]; | |
urls.forEach(function(url){ |
require "erb" | |
require "pathname" | |
DOT_TEMPLATE=<<-END | |
digraph { | |
size="20,20"; | |
overlap=false; | |
sep=0.4; | |
graph [fontname=Helvetica,fontsize=10]; | |
node [fontname=Helvetica,fontsize=10]; |
@holman got a request about our deployment system, heaven
I know it's not a high priority, but has there been any activity on open-sourcing the core Heaven gem?
There is. I've been working on extracting the non-GitHub specific parts into two gems. This first is a CLI portion called hades. The second is an HTTP API portion called heaven.
When you open source something previously used as in internal tool like Heaven, Hubot, Boxen, etc., how do you manage and hook in the parts that need to stay internal?
Normally I focus around four questions:
# updated variant of older solution: | |
# http://www.davidverhasselt.com/2012/05/13/how-to-migrate-passwords-from-legacy-systems-to-devise | |
class User < ActiveRecord::Base | |
# ... | |
def valid_password?(password) | |
if legacy_password? | |
# Use Devise's secure_compare to avoid timing attacks |
--- srclib/stdio.in.h.orig 2011-08-07 16:42:06.000000000 +0300 | |
+++ srclib/stdio.in.h 2013-01-10 15:53:03.000000000 +0200 | |
@@ -695,7 +695,9 @@ | |
/* It is very rare that the developer ever has full control of stdin, | |
so any use of gets warrants an unconditional warning. Assume it is | |
always declared, since it is required by C89. */ | |
-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); | |
+#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16) | |
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); | |
+#endif |
#!/usr/bin/env ruby | |
hash = `git log -1 HEAD | head -1 | awk '{print $2}'` | |
`streamer -q -s 640x480 -c /dev/video0 -o docs/images/#{ENV['USER']}/#{hash.strip}.jpeg` |
Capybara.add_selector :record do | |
xpath { |record| XPath.css("#" + ActionController::RecordIdentifier.dom_id(record)) } | |
match { |record| record.is_a?(ActiveRecord::Base) } | |
end |