Skip to content

Instantly share code, notes, and snippets.

Bryan Taylor brylor

Block or report user

Report or block brylor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View admindotpy
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from .models import AccountModel
#class AccountAdmin(admin.ModelAdmin):
#account_id = models.CharField(max_length=10)
class AccountAdmin(admin.ModelAdmin):
search_fields = ['account_id']
View gist:987f5cf53b513fdef8cf330469b48439
* homebrew_cask[virtualbox] action install
================================================================================
Error executing action `install` on resource 'homebrew_cask[virtualbox]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /usr/local/bin/brew cask install virtualbox ----
View .kitchen.yml
---
driver:
name: docker
use_sudo: false
provisioner:
name: chef_zero
data_bags_path: data_bags
environments_path: 'environments'
client_rb:
View SeleniumDriver.groovy
DesiredCapabilities cap = DesiredCapabilities.chrome()
cap.setBrowserName("googlechrome")
cap.setVersion('65.0.3325.181')
cap.setPlatform(Platform.ANY)
cap.setAcceptInsecureCerts(true)
driver = new RemoteWebDriver(new URL(Node), cap)
driver.manage().window().fullscreen()
View full-ci_.kitchen.yml
---
driver:
name: vagrant
provisioner:
name: chef_zero
data_bags_path: data_bags
always_update_cookbooks: true
verifier:
View gist:9609545ad1857f252c85c7e0ab43d6a9
$ knife cookbook site install homebrew 5.0.1 10 ↵
Installing homebrew to /Users/btaylor/Development/osx-chef-solo/chef-repo/cookbooks
Checking out the master branch.
Pristine copy branch (chef-vendor-homebrew) exists, switching to it.
Downloading homebrew from Supermarket at version 5.0.1 to /Users/btaylor/Development/osx-chef-solo/chef-repo/cookbooks/homebrew.tar.gz
Cookbook saved: /Users/btaylor/Development/osx-chef-solo/chef-repo/cookbooks/homebrew.tar.gz
Removing pre-existing version.
Uncompressing homebrew version 5.0.1.
Removing downloaded tarball
6 files updated, committing changes
View cli
$ chef-solo -j workstation.rb -c solo.rb 130 ↵
Starting Chef Client, version 13.8.5
resolving cookbooks for run list: ["workstation"]
Synchronizing Cookbooks:
- homebrew (5.0.2)
- workstation (0.1.0)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 6 resources
Recipe: workstation::default
View npmerror
npm ERR! TypeError: Cannot read property 'latest' of undefined
npm ERR! at next (/usr/share/npm/lib/cache.js:687:35)
npm ERR! at /usr/share/npm/lib/cache.js:675:5
npm ERR! at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:142:7)
npm ERR! at /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
View docker-compose.yml
db:
image: mysql:5.6
environment:
MYSQL_DATABASE: ralph_ng
MYSQL_ROOT_PASSWORD: ralph_ng
MYSQL_USER: ralph_ng
MYSQL_PASSWORD: ralph_ng
volumes_from:
- data
View Dockerfile
FROM ruby:2.3.1
COPY . /app/
RUN gem install bundler --no-ri --no-rdoc && \
cd /app; bundle install --without development test
RUN apt-get update && apt-get -y install vim sqlite3
RUN chown -R nobody:nogroup /app
USER nobody
EXPOSE 9292
WORKDIR /app
RUN /app/runbot.sh
You can’t perform that action at this time.