This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.
Even though there is a nice XBMC add-on to configure your WIFI settings, sometimes, you may still want to setup the WIFI connection for many reasons or just for fur.
OpenELEC use connman for managing connection to the various available network.
Setuping connman to connect to your protected WIFI network is an easy requiring you only to create a config file and enter some commands in a shell.
| gci -r -inc packages.config | | |
| %{ | |
| ([xml](get-content $_)).packages.package.id | | |
| Add-Member -NotePropertyName 'PackageConfigFile' -NotePropertyValue $_ -PassThru | |
| } | | |
| ?{ $_ -like 'MyCompany.*' } | | |
| %{ nuget.exe update $_.PackageConfigFile -Id $_ -RepositoryPath (join-path (split-path (Split-Path $_.PackageConfigFile)) 'packages') } |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
| # Add a domain user to a remote server local group, if your current user has admin over the remote machine | |
| powershell -c ([ADSI]'WinNT://SERVER/Administrators,group').add('WinNT://DOMAIN/USER,user') | |
| # Get all local groups on a remote server | |
| powershell -c "([ADSI]'WinNT://SERVER,computer').psbase.children | where { $_.psbase.schemaClassName -eq 'group' } | foreach { ($_.name)[0]}" | |
| # Find members of the local Administrators group on a remote server | |
| powershell -c "$([ADSI]'WinNT://SERVER/Administrators,group').psbase.Invoke('Members') | foreach { $_.GetType().InvokeMember('ADspath', 'GetProperty', $null, $_, $null).Replace('WinNT://', '') }" | |
| # Enable the local Administrator account on a remote server |
| void Main() | |
| { | |
| IDb db; | |
| new PersonNameProjection( | |
| new PersonQuery(db.Table<Person>()).ByName("Tod") | |
| ).Execute(); | |
| } |
| using System; | |
| using System.Collections.Generic; | |
| using System.Dynamic; | |
| using System.Linq; | |
| using System.Xml.Linq; | |
| namespace Expando | |
| { | |
| public static class XmlExpando | |
| { |
| #This script required the Octoposh module: http://dalmirog.github.io/OctoPosh/ | |
| $machine = "" #Name of the machine you want to look variables for. | |
| $MachineID = Get-OctopusMachine -MachineName $machine -ResourceOnly | select -ExpandProperty Id | |
| $variableSets = Get-OctopusVariableSet | |
| $list = @() | |
| foreach ($variableSet in $variableSets){ |
| namespace Analogy | |
| { | |
| /// <summary> | |
| /// This example shows that a library that needs access to target .NET Standard 1.3 | |
| /// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET | |
| /// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library. | |
| /// </summary>INetCoreApp10 | |
| class Example1 | |
| { | |
| public void Net45Application(INetFramework45 platform) |
SignalR generates a hub for each method invoke ie onConnected, onDisconnect or any other methods on the hub. Autofac.SignalR all hub dependencies are resolved from the root container making them singletons.
I did find another solutions https://github.com/lethek/SignalR.Extras.Autofac but this required inheriting from a special lifetimehub, retro fitting this into an large existing solution would take a lot of work an re-testing.
The solutions below allows you to scope all dependencies per hub instance.
- Install-Package Autofac.SignalR
- Install-Package Castle.Core