Skip to content

Instantly share code, notes, and snippets.

View cjac's full-sized avatar

C.J. Collier cjac

View GitHub Profile
# ipsec.conf - strongSwan IPsec configuration file
# basic configuration
config setup
# strictcrlpolicy=yes
# uniqueids = no
# Add connections here.
# ipsec.conf - strongSwan IPsec configuration file
config setup
strictcrlpolicy=no
charondebug=0
conn %default
ikelifetime=60m
lifetime=30m
rekeymargin=3m
# ipsec.conf - strongSwan IPsec configuration file
# basic configuration
config setup
# strictcrlpolicy=yes
# uniqueids = no
# Add connections here.
Class Foo(threading.Thread):
def __init__(self, ircbot, config):
# ...
self.handlers = {'comment-added': self.comment_added,
'patchset-created': self.patchset_created,
'change-merged': self.change_merged,
'ref-updated': self.ref_updated}
# ...
$ time nova list
ERROR (ClientException): Unknown Error (HTTP 504)
real 1m1.622s
user 0m0.472s
sys 0m0.056s
> Install-Module AzureRM.profile
PackageManagement\Install-Package : Package 'AzureRM.profile' failed to be installed because: /tmp/467507599/AzureRM.profile/AzureRM.profile.nuspec At /opt/microsoft/powershell/6.0.0-alpha.10/Modules/PowerShellGet/PSModule.psm1:1711 char:21 + ... $null = PackageManagement\Install-Package @PSBoundParameters + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidResult: (AzureRM.profile:String) [Install-Package], Exception + FullyQualifiedErrorId : Package '{0}' failed to be installed because: {1},Microsoft.PowerShell.PackageManageme
cjac@xenial0:~$ ls /opt/microsoft/powershell/6.0.0-alpha.10/Modules/
Microsoft.PowerShell.Archive PackageManagement
Microsoft.PowerShell.Host Pester
Microsoft.PowerShell.Management PowerShellGet
Microsoft.PowerShell.Security PSDesiredStateConfiguration
Microsoft.PowerShell.Utility PSReadLine
PS /home/cjac> Install-PackageProvider -Name NuGet -Scope CurrentUser
Install-PackageProvider : No match was found for the specified search criteria for the provider 'NuGet'. The package
provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags.
At line:1 char:1
+ Install-PackageProvider -Name NuGet -Scope CurrentUser
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Microsoft.Power...PackageProvider:InstallPackageProvider) [Install-Pac
kageProvider], Exception
+ FullyQualifiedErrorId : NoMatchFoundForProvider,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackagePro
vider
PS /home/cjac> cjac@xenial0:~$ sudo powershell
[sudo] password for cjac:
PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS /home/cjac> Install-PackageProvider -Name NuGet -RequiredVersion 2.8.5.201 -Force
Install-PackageProvider : No match was found for the specified search criteria
for the provider 'NuGet'. The package provider requires 'PackageManagement'
and 'Provider' tags. Please check if the specified package has the tags.
At line:1 char:1
PS /usr/src/git/github/powershell> Get-Module PackageManagement
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Binary 1.0.0.1 PackageManagement {Find-Package, Find-PackageProvider, Get-Package, Get-PackageProvider...}