GithubHelp home page GithubHelp logo

majkinetor / au-packages Goto Github PK

View Code? Open in Web Editor NEW
66.0 5.0 44.0 151.32 MB

Chocolatey packages by majkinetor

Home Page: https://gist.github.com/majkinetor/a700c70b8847b29ebb1c918d47ee4eb1

License: GNU General Public License v2.0

PowerShell 38.06% Batchfile 0.08% AutoHotkey 0.10% Rich Text Format 3.07% Makefile 9.43% HTML 43.68% CSS 0.38% Roff 5.20%
chocolatey au-packages chocolatey-packages chocolatey-automatic

au-packages's People

Contributors

bc3tech avatar cfoellmann avatar chemputer avatar cmorty avatar cwchapma avatar franklinyu avatar gep13 avatar jeffjensen avatar jezhodges avatar jsdelivrbot avatar jtcmedia avatar majkinetor avatar mathiascode avatar mikecole avatar phantomgamers avatar rasa avatar robertpateii avatar sirandros avatar teknowledgist avatar thecakeisnaoh avatar zalastax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

au-packages's Issues

(Invoke-Build) Chocolatey package doesn't work with powershell 4 and below

The chocolatey package appears to be broken for powershell 4 and below. It installs the module in: "C:\Program Files\WindowsPowerShell\Modules\InvokeBuild\3.6.4\InvokeBuild.psm1"

I believe powershell 4 and below doesn't support the version string folder.

When I call Import-Module InvokeBuild, I get

PS C:\Users\cchapman> Import-Module Invoke-Build
Import-Module : The specified module 'Invoke-Build' was not loaded because no valid module file was found in any module directory.
At line:1 char:1
+ Import-Module Invoke-Build
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (Invoke-Build:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

If I get rid of the version folder, 3.6.4, and move the files up into the InvokeBuild folder, Import-Module works.

I'll try and submit a pull request to fix this.

(rundeck) more parameters

https://github.com/majkinetor/au-packages/tree/master/rundeck

  • Setting profile: RDECK_CLI_OPTS, RDECK_SSL_OPTS
    Default memory options should be changed to something more sane: RDECK_CLI_OPTS=-Xmx4096m -Xms1024m otherwise it gets 128MB max by default.
  • Setting token expiration
    rundeck.api.tokens.duration.max=10y @ C:\rundeck\server\config\rundeck-config.properties
  • Default admin password at C:\rundeck\server\config\real.properties
  • Date format (C:\rundeck\server\exp\webapp\WEB-INF\grails-app\i18n\messages.properties)
  • Session Timeout - 90 default
  • Date parameter for recent tab on specific job uses different date format syntax.

  • /CliOpts - Value for RDECK_CLI_OPTS, by default -Xms1048m -Xmx2096m
  • /SslOpts - Value for RDECK_SSL_OPTS
  • /AdminPwd - Admin password, by default admin
  • /TokenDuration - Token duration
  • /DateFormat - Date format

(gitlab-runner) automate complete install

  • Create user
  • register as a service
net user gitlab-runner $Password /add
net localgroup Administrators gitlab-runner /add

cd c:/gitlab-runner
.\gitlab-runner.exe install --user "$Env:COMPUTERNAME\gitlab-runner" --password $Password
.\gitlab-runner.exe start
WMIC USERACCOUNT WHERE "Name='gitlab-runner'" SET PasswordExpires=FALSE

(yed) Add shortcuts and associations

https://chocolatey.org/packages/yed/3.14.4#comment-3203367972

Hello,
I m new to chocolatey, i would like to add some features in the yEd install script to add a shorcut in the program list, and add the association files for yed. If you could add those lines with options it would be great :)

Thanks for your work

Write-Host "Creating Start menu shortcut"
Install-ChocolateyShortcut -shortcutFilePath "$env:ProgramData\Microsoft\Windows\Start Menu\Programs\yed.lnk" -targetPath $cmdPath -IconLocation $yedDir\icons\yicon.ico

Write-Host "Creating file association"
Install-ChocolateyFileAssociation -Extension ".graphml" -Executable $cmdPath
Install-ChocolateyFileAssociation -Extension ".graphmlz" -Executable $cmdPath
Install-ChocolateyFileAssociation -Extension ".ygf" -Executable $cmdPath
Install-ChocolateyFileAssociation -Extension ".gml" -Executable $cmdPath
Install-ChocolateyFileAssociation -Extension ".xgml" -Executable $cmdPath
Install-ChocolateyFileAssociation -Extension ".tgf" -Executable $cmdPath
Install-ChocolateyFileAssociation -Extension ".ged" -Executable $cmdPath

yed should not use $env:chocolatey_bin_root

@majkinetor $env:chocolatey_bin_root was not official and is deprecated for $env:ChocolateyBinRoot, both of which are adjusted to $env:ChocolateyToolsRoot in 0.9.10. You should only ever rely on it by using Get-BinRoot

Rob Reynolds @ferventcoder Jun 04 17:11
@majkinetor aliases are not working in autodoc - but this is now the name for Get-BinRoot (calling the old still works) - https://chocolatey.org/docs/helpers-get-tools-location
@majkinetor so no, you can never rely on the environment variable directly - always use Get-BinRoot

Rob Reynolds @ferventcoder 15:07
@majkinetor check for $env:ChocolateyBinRoot - see what it is set to. It sounds like something weird is going on in your environment - the 0.9.9 series would not allow just c:\

(cpuz) Remove dependency to mm-choco.extension

https://chocolatey.org/packages/cpu-z.install#comment-3152907634

mm-choco.extension v0.0.4.1 [Approved]
mm-choco.extension package files install completed. Performing other installation steps.
This is try 1/3. Retrying after 300 milliseconds.
Error converted to warning:
(32) The process cannot access the file because it is being used by another process: [\\?\C:\ProgramData\chocolatey\ext
ensions\mm-choco\.chocolateyPending]
This is try 2/3. Retrying after 400 milliseconds.
Error converted to warning:
(32) The process cannot access the file because it is being used by another process: [\\?\C:\ProgramData\chocolatey\ext
ensions\mm-choco\.chocolateyPending]
Maximum tries of 3 reached. Throwing error.
Attempted to copy
'C:\ProgramData\chocolatey\lib\mm-choco.extension'
to 'C:\ProgramData\chocolatey\extensions\mm-choco'
but had an error:
(32) The process cannot access the file because it is being used by another process: [\\?\C:\ProgramData\chocolatey\ext
ensions\mm-choco\.chocolateyPending]

Looks like a chocolaty problem

msl open ssh - custom uninstaller

This program fails to uninstall by the auto-uninstaller. Can you please add a chocolateyUninstall.ps1 file? Depending on the system installed, auto-uninstaller either silently fails or prompts to run the uninstall GUI interactively.

Invalid registry value and registry key enumeration

There is a problem, this (and other) plugin(s) enumerates the uninstall keys if there is an invalid entry.

On my computer I had to remove the invalid key NoModify in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nbi-nb-base-8.1.0.0.201510222201 and recreated it as a valid DWORD with value 1. From then on the problem was gone.

The entry was an invalid DWORD. AFAIK it was written with the wrong length information (8 instead of 4 bytes)

My System runs Windows 10.

Luckily I indeed exported the relevant registry entry before deleting and recreating it (with value 1):

--<snip>---
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nbi-nb-base-8.1.0.0.201510222201]
"NoModify"=hex(4):01,00,00,00,00,00,00,00
--</snip>---

Link: https://disqus.com/home/discussion/chocolatey/chocolatey_gallery_wkhtmltopdf_099/#comment-2679706558

Get-AppinstallLocation buf on x32 system

PS D:\Downloads\chocolatey-master\smplayer\tools>  $dirs = $Env:ProgramFiles, "$Env:ProgramFiles\*\*", ${ENV:ProgramFiles(x86)}, "${ENV:ProgramFiles(x86)}\*\*"
PS D:\Downloads\chocolatey-master\smplayer\tools> $dirs
C:\Program Files
C:\Program Files\*\*
\*\*

Non existent variable creates a "path not found problem" and blocks execution of what would otherwise be found.

Installation fails because fzf zip files are missing

Using Powershell 5.1:

Find-Package fzf | Install-Package -Verbose
VERBOSE: Performing the operation "Install Package" on target "Package 'fzf' version '0.16.6' from 'chocolatey'.".
VERBOSE: NuGet: Installing 'fzf 0.16.6'.
VERBOSE: NuGet: Successfully installed 'fzf 0.16.6'.
VERBOSE:
VERBOSE: CreateFolder -- Already Exists C:\Chocolatey\lib\fzf.0.16.6
VERBOSE: Taking Snapshot «C:\Chocolatey\lib\fzf.0.16.6\tools»
VERBOSE: CreateFolder -- Already Exists C:\Chocolatey\lib\fzf.0.16.6\tools
Install-Package : The archive file type is not supported.
At line:1 char:20
+ Find-Package fzf | Install-Package -Verbose
+                    ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotImplemented: (False C:\Chocol...s_amd64_x64.zip:String) [Install-Package], Exception
    + FullyQualifiedErrorId : UnsupportedArchive,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

and the C:\Chocolatey\lib\fzf.0.16.6\tools directory only contains chocolateyInstall.ps1 but not the zip files (which I assume should be there). The C:\Chocolatey\lib\fzf.0.16.6 does zontain afile named fzf-0.16.6-windows_amd64_x64.zip.txt with this content:

C:\Chocolatey\lib\fzf.0.16.6\tools\chocolateyInstall.ps1
C:\Chocolatey\lib\fzf.0.16.6\tools\fzf-0.16.6-windows_386_x32.zip
C:\Chocolatey\lib\fzf.0.16.6\tools\fzf-0.16.6-windows_amd64_x64.zip

Package Fix Version Notation Should be YYYYMMDD so that December 1 is higher than November 2

Better au

  • list of updated packages in the run
  • push to git
  • push to chocolatey
  • mail on errors during update
  • convert to module

Yed: support launching with file argument

Add %1 to generated yed.cmd to support launching with file argument.

Supports launching Yed with opening the specified file. Especially nice with .graphxml extension mapped to yed.cmd and double-clicking the .graphxml file in File Explorer.

32 or 64 bit switching

https://github.com/majkinetor/au-packages/blob/master/smplayer/tools/chocolateyInstall.ps1#L4

It's a bit more nuanced than that. Here is a working script for you (C4B generates this).

$fileLocation = Join-Path $toolsDir 'puppet-agent-1.3.2-x86.msi'
$fileLocation64 = Join-Path $toolsDir 'puppet-agent-1.3.2-x64.msi'
if (Get-ProcessorBits 64) {
$forceX86 = $env:chocolateyForceX86
  if ($forceX86 -eq 'true') {
    Write-Debug "User specified '-x86' so forcing 32-bit"
  } else {
    $fileLocation = $fileLocation64
  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.