This guide explains how to set up Kerberos authentication for:
- SSH access to a server,
- HTTP access to a service.
It assumes you're running Active Directory and Debian servers.
| # Pass the env-vars to MYCOMMAND | |
| eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
| # … or ... | |
| # Export the vars in .env into your shell: | |
| export $(egrep -v '^#' .env | xargs) |
| # In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env | |
| # variable pointing GPG to the gpg-agent socket. This little script, which must be sourced | |
| # in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start | |
| # gpg-agent or set up the GPG_AGENT_INFO variable if it's already running. | |
| # Add the following to your shell init to set up gpg-agent automatically for every shell | |
| if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then | |
| source ~/.gnupg/.gpg-agent-info | |
| export GPG_AGENT_INFO | |
| else |
| ====================================================== | |
| Setting up Django using Apache/mod_wsgi on Ubuntu 8.10 | |
| ====================================================== | |
| This article will cover setting up Django using Apache/mod_wsgi on Ubuntu | |
| 8.10. The article is targeted at a production environment, but keep in mind | |
| this is a more generalized environment. You may have different requirements, | |
| but this article should at least provide the stepping stones. | |
| The article will use distribution packages where nesscary. As of 8.10 the |
Prepare by switching out of bash from Homebrew:
chsh -s /bin/zsh
To clean my system and reinstall Homebrew:
rm -rf ~/.local && mkdir ~/.local
rm -rf ~/Library/Caches/pip
rm -rf ~/.pyenv
rm -rf ~/.yarn
| from __future__ import unicode_literals | |
| from django.db import models | |
| from django.db.models.fields.related_descriptors import ForwardManyToOneDescriptor # noqa | |
| class RelationNotLoaded(Exception): | |
| pass |
| #!/usr/bin/env python3 | |
| """This module is a sample of the OAuth2 authentication by Python3""" | |
| __version__ = "0.1.0" | |
| __author__ = "shin (shin.hateblo.jp)" | |
| __copyright__ = "(C) 2012 shin" | |
| __email__ = "s2pch.luck@gmail.com" | |
| __license__ = "Apache License 2.0" | |
| __status__ = "Prototype" |
| // first make "pairing" with HC-06 devise | |
| // view devises list by running 'ls /dev/tty.* in terminal, you can see /dev/tty.HC-06-DevB on the list | |
| // then go to arduino editor, and choose your devise bluetooth under the 'Tools > Serial port' menu | |
| // Now open the serial monitor (Tools > Serial monitor). | |
| // You should notice that the red led of the bluetooth module has stopped blinking. That means we are connected! | |
| // Now when you send a “1” the led on the pin 13 should turn ON, and if you send a “0” it should turn off. | |
| void setup() { | |
| // initialize serial: |
| var demoApp = angular.module('demoApp', ['ngResource'], function($locationProvider) { | |
| $locationProvider.hashPrefix(''); | |
| }); | |
| function MainCtrl($scope, Serv) { | |
| $scope.selectedItem = { | |
| value: 0, | |
| label: '' | |
| }; | |
| $scope.Wrapper = Serv; |