You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
💡
coding
Charles Thayer
cgthayer
💡
coding
Formerly: Facebook, Yahoo, Mediabridge, Columbia University, etc.
Actually most of my code is private over in bitbucket --been meaning to change that :-/
This file contains hidden or 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
Images are read-only templates, but you can diff and push them to save
many versions. Containers are instances of images, that are also
directories and usually a single running process.
Images can be layered, you start from a base and make
changes. Containers are versioned so that you can make changes and
save the filesystem state as a new Image.
Setting up ISC dhclient on debian / ubuntu for prefix delegation
My ISP (Time Warner Cable) hands out IPv6 addresses with DHCPv6;
it will delegate a /56 if asked. So long as I keep refreshing the lease,
it won't renumber me. I have my cable modem set to bridge, and do all the
firewalling, NATing, etc., on a Debian box.
In what follows, eth0 is the internal interface.
The dhclient that ships with debian/ubuntu does not support asking
for a prefix delegation, so I had to build one from sources.
I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.
I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real
Get avatars from social networks (facebook and google) with django-social-auth
This file contains hidden or 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
How to add a field to the Django Admin Add User form using UserCreationForm. Add this to a admin.py and alter to whatever fields you'd like
This file contains hidden or 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