This will provide an example of integrating Active Directory authentication in an ASP.NET Core app.
Note, you'll need to be running on a Windows domain with Visual Studio debugging in IIS Express for this to work.
In launchSettings.json, you'll want to modify iisSettings by turning on windowsAuthentication:
This gist will collects all issues we solved with Rails 5.2 and Webpacker
# Last few parameters(--skip-* part) is only my habbit not actully required
$ rails new <project_name> --webpack=stimulus --database=postgresql --skip-coffee --skip-test| #!/usr/bin/ruby | |
| require 'openssl' | |
| TYPES = { | |
| 6 => {magic: 'RSA1', private_key: false}, | |
| 7 => {magic: 'RSA2', private_key: true} | |
| } | |
| data = ARGV[0] ? File.binread(ARGV[0]) : $stdin.binmode.read | |
| type, version, algo, magic, bits, rest = data.unpack('ccx2l<a4l<a*') |
This post is also on my blog, since Gist doesn't support @ notifications.
Components are taking center stage in Ember 2.0. Here are some things you can do today to make the transition as smooth as possible:
- Use Ember CLI
- In general, replace views + controllers with components
- Only use controllers at the top-level for receiving data from the route, and use
Ember.Controllerinstead ofEmber.ArrayControllerorEmber.ObjectController - Fetch data in your route, and set it as normal properties on your top-level controller. Export an
Ember.Controller, otherwise a proxy will be generated. You can use Ember.RSVP.hash to simulate setting normal props on your controller.
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |
| # This script has to be run as a root user | |
| echo "* Updating system" | |
| apt-get update | |
| apt-get -y upgrade | |
| echo "* Installing packages" | |
| apt-get -y install build-essential libmagickcore-dev imagemagick libmagickwand-dev libxml2-dev libxslt1-dev git-core nginx redis-server curl nodejs htop | |
| id -u deploy &> /dev/null | |
| if [ $? -ne 0 ] |
| namespace BloomFilter | |
| { | |
| using System; | |
| using System.Collections; | |
| /// <summary> | |
| /// Bloom filter. | |
| /// </summary> | |
| /// <typeparam name="T">Item type </typeparam> | |
| public class Filter<T> |
| /* Flatten das boostrap */ | |
| .well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid { | |
| -moz-box-shadow: none !important; | |
| -webkit-box-shadow: none !important; | |
| box-shadow: none !important; | |
| -webkit-border-radius: 0px !important; | |
| -moz-border-radius: 0px !important; | |
| border-radius: 0px !important; | |
| border-collapse: collapse !important; | |
| background-image: none !important; |
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats