A script importing a wordpress (2.7.1 tested) blog to enki
A simple sample of how to use redis and em-http-request
a simple web interface for airvideo
Octopress theme based on twitter bootstrap
Just a few small examples that help introduce capy and cuke
Automatic Movie Downloading via NZBs & Torrents
Server on Fire
a simple ajax uploader with a ruby backend
Akephalos is a full-stack headless browser for integration testing with Capybara
RackTest driver for Capybara with remote request support
push eventrb2k/chef-cookbooks
commit sha cf0ff3646229d60b59963d1d3f9e6885832aaf23
Add support for reserved ranges to fb_users. (#152) Summary: Pull Request resolved: https://github.com/facebook/chef-cookbooks/pull/152 There are cases where you don't manage a certain UID/GID, but you would like to make sure that nobody else accidentally tries to put their own user/group in that range either. This code adds the ability to specify protected ranges which would fail validation if someone where to attempt putting a new UID/GID inside those ranges. Reviewed By: nikitakoshikov Differential Revision: D23817151 fbshipit-source-id: 9c3f1e16776654389589c82c11e53f83f109efe0
push time in 3 days
Pull request review commentfacebook/chef-cookbooks
Add support for reserved ranges to fb_users.
+# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2+#+# Copyright (c) 2016-present, Facebook, Inc.+# All rights reserved.+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#+require './spec/spec_helper'+require_relative '../libraries/default'++recipe 'fb_users::default' do |_tc|+ describe FB::Users do+ let(:node) { Chef::Node.new }+ context 'Validation' do+ before(:each) do+ node.default['fb_users'] = {+ 'user_defaults' => {},+ 'users' => {+ 'testuser' => {+ 'shell' => '/bin/zsh',+ 'gid' => 'testgroup',+ 'action' => :add,+ },+ },+ 'groups' => {+ 'testgroup' => {+ 'members' => ['testuser'],+ 'action' => :add,+ },+ },+ }+ end++ it 'should not fail if we did not specify a protected uid range' do+ stub_const('FB::Users::UID_MAP', { 'testuser' => { 'uid' => 42 } })+ stub_const('FB::Users::GID_MAP', { 'testgroup' => { 'gid' => 4242 } })+ FB::Users._validate(node)
I would prefer to ensure it doesn't raise ANY error:
expect { FB::Users._validate(node) }.not_to raise_error
vs
expect { FB::Users._validate(node) }.not_to raise_error(RuntimeError)
Thoughts?
comment created time in 3 days
PR opened facebook/chef-cookbooks
Summary: There are cases where you don't manage a certain UID/GID, but you would like to make sure that nobody else accidentally tries to put their own user/group in that range either.
This code adds the ability to specify protected ranges which would fail validation if someone where to attempt putting a new UID/GID inside those ranges.
Differential Revision: D23817151
pr created time in 3 days
issue commentmunki/macadmin-scripts
script downloads 11.9 GB of data then creates a 19MB installer ?
Oddly I ran it on a different machine in a completely unrelated folder prior to this and had the same issue.
Either way: My bad! Now that I moved it, it seems to work fine (It hasn't finished yet, but it took longer than 30 seconds which is a great start :) ).
comment created time in 15 days
issue commentmunki/macadmin-scripts
script downloads 11.9 GB of data then creates a 19MB installer ?
I just ran into the same issue with beta 6.
http://swcdn.apple.com/content/downloads/49/42/001-43966-A_UZVPNAGC5P/smuubcmj04qay4n78q85cpe85rcsdu00qy/InstallAssistant.pkg has the right size
But when it runs the resulting file is < 20 mb
% sudo python bla.py --seedprogram DeveloperSeed
Downloading https://swscan.apple.com/content/catalogs/others/index-10.15seed-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz...
Downloading http://swcdn.apple.com/content/downloads/59/18/001-15219-A_EE9FN7UHJA/efuz3h0zlmx4qlinf4bxlguigo9jvhcr55/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/59/18/001-15219-A_EE9FN7UHJA/efuz3h0zlmx4qlinf4bxlguigo9jvhcr55/001-15219.English.dist...
Downloading http://swcdn.apple.com/content/downloads/41/56/061-94403-A_5AM6QB8TGK/ijdhki76d4rw19t579eblaqc26ngzlhu1p/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/41/56/061-94403-A_5AM6QB8TGK/ijdhki76d4rw19t579eblaqc26ngzlhu1p/061-94403.English.dist...
Downloading http://swcdn.apple.com/content/downloads/34/54/041-88800-A_HLMBDM42FL/anrmoj880qkj0lbybqm0c3830p70nawjrv/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/34/54/041-88800-A_HLMBDM42FL/anrmoj880qkj0lbybqm0c3830p70nawjrv/041-88800.English.dist...
Downloading http://swcdn.apple.com/content/downloads/41/23/061-26578-A_FF0C6M87LS/ylvl0phx6uy3i444qt9p57n8wz0xnylmd9/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/41/23/061-26578-A_FF0C6M87LS/ylvl0phx6uy3i444qt9p57n8wz0xnylmd9/061-26578.English.dist...
Downloading http://swcdn.apple.com/content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/061-26589.English.dist...
Downloading http://swcdn.apple.com/content/downloads/30/19/061-77704-A_Y6FF2MIFII/6k00g50wn937v0jlyq595e89zthlx01vzs/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/30/19/061-77704-A_Y6FF2MIFII/6k00g50wn937v0jlyq595e89zthlx01vzs/061-77704.English.dist...
Downloading http://swcdn.apple.com/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/041-90855.English.dist...
Downloading http://swcdn.apple.com/content/downloads/06/50/041-91758-A_M8T44LH2AW/b5r4og05fhbgatve4agwy4kgkzv07mdid9/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/06/50/041-91758-A_M8T44LH2AW/b5r4og05fhbgatve4agwy4kgkzv07mdid9/041-91758.English.dist...
Downloading http://swcdn.apple.com/content/downloads/01/28/061-86291-A_JPEIWIOZES/enpozvvbmj3mj2dhulhevlt8b429qd5kw0/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/01/28/061-86291-A_JPEIWIOZES/enpozvvbmj3mj2dhulhevlt8b429qd5kw0/061-86291.English.dist...
Downloading http://swcdn.apple.com/content/downloads/23/45/001-36735-A_IRCLJ5YYKF/z8vka6xfykydycui5b7atpc52btxmbffdn/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/23/45/001-36735-A_IRCLJ5YYKF/z8vka6xfykydycui5b7atpc52btxmbffdn/001-36735.English.dist...
Downloading http://swcdn.apple.com/content/downloads/30/26/061-44345-A_KESM6DQZ3B/44cdw7ri5cg3bi4ko4pox21ce655pu4f86/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/30/26/061-44345-A_KESM6DQZ3B/44cdw7ri5cg3bi4ko4pox21ce655pu4f86/061-44345.English.dist...
No server metadata for 001-43966
Downloading https://swdist.apple.com/content/downloads/49/42/001-43966-A_UZVPNAGC5P/smuubcmj04qay4n78q85cpe85rcsdu00qy/001-43966.English.dist...
Downloading http://swcdn.apple.com/content/downloads/10/06/001-36801-A_9MBEQ97Z9M/672a1q4u8978ize3s15ygivp2dqwmk10qb/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/10/06/001-36801-A_9MBEQ97Z9M/672a1q4u8978ize3s15ygivp2dqwmk10qb/001-36801.English.dist...
Downloading http://swcdn.apple.com/content/downloads/37/41/001-04366/a6boefh8b6bee4k2x6v5lwyfjr7od2ica3/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/37/41/001-04366/a6boefh8b6bee4k2x6v5lwyfjr7od2ica3/001-04366.English.dist...
# ProductID Version Build Post Date Title
1 061-77704 10.15.4 19E242d 2020-02-26 macOS Catalina Beta
2 001-15219 10.15.5 19F2200 2020-06-15 macOS Catalina
3 001-36801 10.15.6 19G2021 2020-08-12 macOS Catalina
4 001-04366 10.15.4 19E2269 2020-05-04 macOS Catalina
5 041-91758 10.13.6 17G66 2019-10-19 macOS High Sierra
6 041-88800 10.14.4 18E2034 2019-10-23 macOS Mojave
7 061-26589 10.14.6 18G103 2019-10-14 macOS Mojave
8 001-43966 11.0 20A5364e 2020-09-03 macOS Big Sur Beta
9 001-36735 10.15.6 19G2006 2020-08-06 macOS Catalina
10 061-94403 10.15.6 19G73 2020-07-15 macOS Catalina
11 061-86291 10.15.3 19D2064 2020-03-23 macOS Catalina
12 041-90855 10.13.5 17F66a 2019-10-23 Install macOS High Sierra Beta
13 061-26578 10.14.5 18F2059 2019-10-14 macOS Mojave
14 061-44345 10.15.2 19C39d 2019-11-15 macOS Catalina Beta
Choose a product to download (1-14): 8
Downloading http://swcdn.apple.com/content/downloads/49/42/001-43966-A_UZVPNAGC5P/smuubcmj04qay4n78q85cpe85rcsdu00qy/MajorOSInfo.pkg...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2571k 100 2571k 0 0 9.9M 0 --:--:-- --:--:-- --:--:-- 9.9M
Downloading https://swdist.apple.com/content/downloads/49/42/001-43966-A_UZVPNAGC5P/smuubcmj04qay4n78q85cpe85rcsdu00qy/MajorOSInfo.pkm...
Downloading http://swcdn.apple.com/content/downloads/49/42/001-43966-A_UZVPNAGC5P/smuubcmj04qay4n78q85cpe85rcsdu00qy/BuildManifest.plist...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1274k 100 1274k 0 0 6673k 0 --:--:-- --:--:-- --:--:-- 6673k
Downloading http://swcdn.apple.com/content/downloads/49/42/001-43966-A_UZVPNAGC5P/smuubcmj04qay4n78q85cpe85rcsdu00qy/InstallInfo.plist...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 188 100 188 0 0 4372 0 --:--:-- --:--:-- --:--:-- 4372
Downloading http://swcdn.apple.com/content/downloads/49/42/001-43966-A_UZVPNAGC5P/smuubcmj04qay4n78q85cpe85rcsdu00qy/InstallAssistant.pkg...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11.3G 100 11.3G 0 0 19.1M 0 0:10:05 0:10:05 --:--:-- 14.2M
Downloading https://swdist.apple.com/content/downloads/49/42/001-43966-A_UZVPNAGC5P/smuubcmj04qay4n78q85cpe85rcsdu00qy/InstallAssistant.pkm...
Downloading http://swcdn.apple.com/content/downloads/49/42/001-43966-A_UZVPNAGC5P/smuubcmj04qay4n78q85cpe85rcsdu00qy/UpdateBrain.zip...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1884k 100 1884k 0 0 3305k 0 --:--:-- --:--:-- --:--:-- 3300k
Downloading http://swcdn.apple.com/content/downloads/49/42/001-43966-A_UZVPNAGC5P/smuubcmj04qay4n78q85cpe85rcsdu00qy/Info.plist...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5921 100 5921 0 0 53827 0 --:--:-- --:--:-- --:--:-- 53827
Making empty sparseimage...
installer: Package name is macOS Big Sur Beta
installer: Installing at base path /private/tmp/dmg.iIlN5H
installer: The install was successful.
*********************************************************
*** Working around a very dumb Apple bug in a package ***
*** postinstall script that fails to correctly target ***
*** the Install macOS.app when installed to a volume ***
*** other than the current boot volume. ***
*** Please file feedback with Apple! ***
*********************************************************
Adding seeding program DeveloperSeed extended attribute to app
Product downloaded and installed to /Users/mseeger/Downloads/osx_images/Install_macOS_11.0-20A5364e.sparseimage
Making read-only compressed disk image containing Install macOS Big Sur Beta.app...
...............................................................................................................................
created: /Users/mseeger/Downloads/osx_images/Install_macOS_11.0-20A5364e.dmg
Disk image created at: ./Install_macOS_11.0-20A5364e.dmg
%
% ls -lash ./Install_macOS_11.0-20A5364e.dmg
35640 -rw-r--r--@ 1 root staff 17M Sep 8 15:18 ./Install_macOS_11.0-20A5364e.dmg
comment created time in 15 days
issue commentxcp-ng/xcp
pusb-list not listing z-wave smarthome dongle
I just came from ESXI. It's a small server, so I don't want to deal with an HBA card just to get my VM storage on SSDs. Plus since 7 their hardware support is very much lacking.
Maybe I'll try Proxmox or go down the serial over USB route and use a Raspberry Pi that I have sitting around.
comment created time in a month
issue commentxcp-ng/xcp
pusb-list not listing z-wave smarthome dongle
I am thinking about it, but my problem is mainly that I have 2 USB devices (ZWave/Zigbee stick + an RF stick) as well as a UPS.
The ZWave/Zigbee stuff goes to the Homeassistant VM The UPS to the Storage VM
So ultimately I'd have to buy two cards. I am personally thinking about just switching to a different Hypervisor since in my homelab environment the whole passthrough thing is kind of a big deal :)
comment created time in a month
issue commentxcp-ng/xcp
pusb-list not listing z-wave smarthome dongle
Same issue here (also a Nortek HUSBZB-1)
I just wanted to link to https://xcp-ng.org/forum/topic/266/usb-passthrough-test-reports-in-7-5rc1/57?lang=en-GB&page=3 which might be interesting
Seems like some success via "xe vm-param-set uuid=**** platform:device-model=qemu-upstream-compat"
comment created time in a month
issue commenthome-assistant/operating-system
Add xen guest tools package to OS
Moved it to https://community.home-assistant.io/t/add-xen-guest-tools-package-to-hass-os/219573
comment created time in a month
issue openedhome-assistant/operating-system
We already seem to ship VMWare's open-vm-tools with the operating system, it would be great if we could also add xen guest utilities. This would allow for a clean shutdown and better metrics.
The discussion came up here already: https://github.com/home-assistant/operating-system/pull/265#issuecomment-671254522
The XCP-NG project's wiki on the topic: https://xcp-ng.org/docs/guests.html#linux
The official repo is: https://github.com/xenserver/xe-guest-utilities
I guess a fix would look similar to https://github.com/home-assistant/operating-system/pull/505/files
created time in a month