Skip to content

Instantly share code, notes, and snippets.

View epu's full-sized avatar

Erik M. Purins epu

View GitHub Profile
@epu
epu / artifactory.log
Created September 26, 2018 17:44
filestoreIntegrity.groovy artifactory plugin - upgraded 6.1.0 HA error
2018-09-25 17:08:57,979 [http-nio-8081-exec-27] [ERROR] (o.a.r.c.e.GlobalExceptionMapper:48) - No signature of method: org.artifactory.storage.db.binstore.dao.BinariesDao.exists() is applicable for argument types: (java.lang.String) values: [00000e11ea23d47e3f402b36dc702fb2fadfaf48]
Possible solutions: exists(org.artifactory.checksum.ChecksumType, java.lang.String), wait(), equals(java.lang.Object), wait(long), print(java.io.PrintWriter), printf(java.lang.String, java.lang.Object)
groovy.lang.MissingMethodException: No signature of method: org.artifactory.storage.db.binstore.dao.BinariesDao.exists() is applicable for argument types: (java.lang.String) values: [00000e11ea23d47e3f402b36dc702fb2fadfaf48]
Possible solutions: exists(org.artifactory.checksum.ChecksumType, java.lang.String), wait(), equals(java.lang.Object), wait(long), print(java.io.PrintWriter), printf(java.lang.String, java.lang.Object)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58)
at org.codehaus.gr

Xcode loads xcspec files (ascii plists) that specify everything (tools, buildphases, compilers, rules, etc) based on a set of conditions.

To evaluate these conditions you have to load these files and simulate the build process and construct your own "environment"

The target's build settings will help to resolve most of the environment variables by taking the basics from the particular platform you are using for the target (resolved from the SDKROOT value xcrun --show-sdk-platform-path --sdk)

when you load the spec of the compiler there is a key on it called "Options" which is an array of dictionaries that have

@epu
epu / packer.log
Created March 10, 2016 17:01
removing floppy drive error log
virtualbox-iso: Removing floppy drive...
==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'win2012r2-datacenter' is already locked for a session (or being unlocked)
==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports
==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1030 of file VBoxManageStorageController.cpp
/opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:1402:in `initialize': Permission denied @ rb_sysopen - /Users/erik.purins/.berkshelf/vagrant-berkshelf/shelves/berkshelf20160122-78277-bpbruh-cookbookname/cookbookname/.kitchen.yml (Errno::EACCES)
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:1402:in `open'
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:1402:in `block in copy_file'
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:1401:in `open'
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:1401:in `copy_file'
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:483:in `copy_file'
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:400:in `block in cp'
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:1579:in `block in fu_each_src_dest'
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:1595:in `fu_each_src_dest0'
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:1577:in `fu_each_src_dest'
@epu
epu / gist:e4642b39dcc6d724387c
Created June 26, 2015 22:27
c:\Users\my_user\.chefdk\gem\ruby\2.1.0\bin\knife.bat upload --chef-repo-path c:\users\my_user\appdata\local\temp\cookbooksmsq4go --freeze /cookbooks/my_cookbook
c:\Users\my_user\AppData\Local\Temp\cookbooksmsq4go>c:\Users\my_user\.chefdk\gem\ruby\2.1.0\bin\knife.bat upload --chef-repo-path c:\users\my_user\appdata\local\temp\cookbooksmsq4go --freeze /cookbooks/my_cookbook
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/win32-process-0.7.5/lib/win32/process.rb:16: [BUG] Segmentation fault
ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]
-- Control frame information -----------------------------------------------
c:0038 p:---- s:0182 e:000181 CFUNC :SetErrorMode
c:0037 p:0091 s:0178 e:000177 CLASS C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/win32-process-0.7.5/lib/win32/process.rb:16
c:0036 p:0041 s:0176 e:000175 TOP C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/win32-process-0.7.5/lib/win32/process.rb:6 [FINISH]
c:0035 p:---- s:0174 e:000173 CFUNC :require
c:0034 p:0170 s:0170 e:000169 METHOD C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:69
@epu
epu / error2.txt
Created August 8, 2014 20:29
vagrant-berkshelf windows error with fixed PATH (chefdk first)
C:\Users\erik.purins.BA\source\build\DEV\ERIK.PURINS\chef\ridcully>path | perl -
pe s/;/\n/g
PATH=C:\opscode\chefdk\bin
C:\opscode\chefdk\embedded\bin
C:\Program Files (x86)\AMD APP\bin\x86_64
C:\Program Files (x86)\AMD APP\bin\x86
C:\Program Files (x86)\Intel\ComposerXE-2011\redist\intel64\tbb\vc10
C:\Program Files (x86)\Intel\ComposerXE-2011\redist\intel64\ipp
C:\Program Files (x86)\Intel\ComposerXE-2011\redist\intel64\mkl
C:\Program Files (x86)\Intel\ComposerXE-2011\redist\intel64\compiler
@epu
epu / berks.cmd
Last active August 29, 2015 14:05
because sometimes a fast shell wrapper is better than waiting for bugfix
:: berks in the chefdk asplodes when one tries to suppress validation in .berkshelf/config.json
:: the current 'workaround' is to set an environment variable, or switch the generated url to http.
:: but, they ship the pem with the download.
@setlocal
@set OPSCODE_DEFAULT_DIR=C:\opscode
:: you could do fancy detection here. Tag, you're it.
@set OPSCODE_DEFAULT_CHEFDK_DIR=%OPSCODE_DEFAULT_DIR%\chefdk
@set OPSCODE_DEFAULT_SSL_CERT_FILE=%OPSCODE_DEFAULT_CHEFDK_DIR%\embedded\ssl\certs\cacert.pem
:: only set if not defined already.
@if exist "%OPSCODE_DEFAULT_SSL_CERT_FILE%" (
#!/bin/bash
# $1: PBXPROJ file path
XCODEPROJ_BUNDLE=$(dirname "$1")
WITHOUT_SLASH=${XCODEPROJ_BUNDLE%/}
open $WITHOUT_SLASH
@epu
epu / p4 help commandments output
Created January 23, 2014 18:08
p4 help commandments <3
Texorami:Application Support erik$ p4 help commandments
P4 Commandments -- Values we work by
* We have high standards.
* We are straightforward.
* We rise to responsibility.
* We like work we can be proud of.
* We like to hear what we've done.
* We value both people and job skills.
@epu
epu / gist:7559669
Last active December 28, 2015 20:48
facepalm. on osx cpython 2.7.6, cannot get a zipfile info entry's extended attr to save as 0120755 for a real file, reverts to 0100755.
#ZIPFILE_CREATE_SYSTEM_FLAG can be 3 (posix/unix) or 19 (modern pk zip archives)
import zipfile
import os
import stat
import time
""" The following was use ok to write symlink directory entries into a .zipfile just fine.
But things got challenging when retrieving symlinks to files.
When iterating over file entries: