Skip to content

Instantly share code, notes, and snippets.

$ autopkg run -vv GoogleChromePkg.download -d /Users/Shared/RecipeOverrides -d ~/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/ [12/1081]Processing GoogleChromePkg.download... WARNING: GoogleChromePkg.download is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding... URLDownloader {'Input': {'filename': 'GoogleChrome.pkg', 'url': 'https://dl.google.com/chrome/mac/stable/accept_tos%3Dhttps%253A%252F%252Fwww.google.com%252Fintl%252Fen_ph%252Fchrome%252Fterms%252F%26_and_accept
PS C:\Users\testuser\autopkg> python .\Code\autopkg repo-add recipes
WARNING: Library 'xattr' unavailable. Defining no-op implementation.
WARNING: Failed 'from Foundation import NSDictionary' in autopkglib.MunkiInstallsItemsCreator
WARNING: Failed 'from Foundation import CFPreferencesCopyAppValue' in autopkglib.MunkiSetDefaultCatalog
WARNING: Failed 'from Foundation import NSPredicate' in autopkglib.StopProcessingIf
--------------------------------------------------------------------------------
-- WARNING: AutoPkg is not completely functional on platforms other than OS X --
--------------------------------------------------------------------------------
$ autopkg run -vv GoogleChrome.download -d /Users/Shared/RecipeOverrides -d ~/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/
Processing GoogleChrome.download...
WARNING: GoogleChrome.download is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
URLDownloader
{'Input': {'filename': 'GoogleChrome.dmg',
'url': 'https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg'}}
URLDownloader: No value supplied for prefetch_filename, setting default value of: False
URLDownloader: No value supplied for CHECK_FILESIZE_ONLY, setting default value of: False
URLDownloader: Storing new Last-Modified header: Fri, 19 Jun 2020 20:19:27 GMT
URLDownloader: Storing new ETag header: "615cf7"
$ ./Code/autopkg info -p GoogleChrome.munki -d /Users/Shared/RecipeOverrides -d /Users/Shared/Recipes
Didn't find a recipe for com.github.autopkg.munki.googlechromepkg.
Found this recipe in repository: recipes
Attempting git clone...
Adding /Users/testuser/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes to RECIPE_SEARCH_DIRS...
Updated search path:
'.'
'~/Library/AutoPkg/Recipes'
'/Library/AutoPkg/Recipes'
$ python3 Scripts/run_tests.py
...WARNING: plist error for fake: __enter__
................................Nothing found.
.
To add a new recipe repo, use 'autopkg repo-add <repo name>'
.No search query specified!
.
To add a new recipe repo, use 'autopkg repo-add <repo name>'
Warning: Search yielded more than 100 results. Please try a more specific search term.
# Pre-change info:
bash-3.2$ autopkg info -p GoogleChrome.munki
Didn't find a recipe for com.github.autopkg.munki.googlechromepkg.
Found this recipe in repository: recipes
Attempting git clone...
Adding /Users/testing/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes to RECIPE_SEARCH_DIRS...
Updated search path:
'.'
'~/Library/AutoPkg/Recipes'
# Pre-change search:
bash-3.2$ autopkg search Firefox
Name Repo Path
---- ---- ----
FirefoxESR64-Win.filewave.recipe andredb90-recipes Firefox ESR - Win64/FirefoxESR64-Win.filewave.recipe
OpenKiosk.munki.recipe apizz-recipes OpenKiosk/OpenKiosk.munki.recipe
EMCSyncplicity.pkg.recipe bkerns-recipes EMCSyncplicity/EMCSyncplicity.pkg.recipe
EMCSyncplicitySSO.pkg.recipe bkerns-recipes EMCSyncplicitySSO/EMCSyncplicitySSO.pkg.recipe
TechSmithCamtasia.pkg.recipe bkerns-recipes TechSmithCamtasia/TechSmithCamtasia.pkg.recipe
TechSmithSnagit.pkg.recipe bkerns-recipes TechSmithSnagit/TechSmithSnagit.pkg.recipe

Keybase proof

I hereby claim:

  • I am linuxfood on github.
  • I am bcs (https://keybase.io/bcs) on keybase.
  • I have a public key ASDGk8dxZ8GZeFE53QgiuUjqxOQLaEMN4wDhlINwsREinQo

To claim this, I am signing this object:

@linuxfood
linuxfood / gist:1954260
Created March 2, 2012 00:28
Django auto-generated admin actions
def puser_setcompanyroutines():
routines = []
for c in Company.objects.all():
fn = lambda modeladmin, request, queryset: queryset.update(company=c)
# WTF, you say? Yep. That's because django actually cares about the NAME
# of the function handles you pass it in the actions list. Stupid.
fn.__name__ = "set_company_%d" % c.id
fn.short_description = "Set selected to company %s" % c.name
routines.append(fn)
return routines
@linuxfood
linuxfood / gist:1537715
Created December 30, 2011 03:53
Rust typing error?
use std;
// uniq mut vec of mut f64
type umvomf64 = ~mutable [ mutable f64 ];
fn mk_umvomf64() -> umvomf64 {
ret ~mutable [ mutable ];
}
fn main() {
let cnt = 10u;