Skip to content

Instantly share code, notes, and snippets.

@xfreebird
xfreebird / customsshd
Last active May 31, 2022 07:32
A script which can be used to start a second SSHD daemon on OS X. This is an workaround for running tests using xcodebuild through ssh with Jenkins .
#!/bin/bash
INSTALL_PATH="$HOME/scripts"
SCRIPT_PATH="$INSTALL_PATH/customsshd"
LAUNCHCTL_PATH="$HOME/Library/LaunchAgents/com.my.customsshd.plist"
SSH_KEYS_INSTALL_PATH=$HOME/customkeys
SSH_HOST_KEY=$SSH_KEYS_INSTALL_PATH/ssh_host_key
SSH_HOST_RSA_KEY=$SSH_KEYS_INSTALL_PATH/ssh_host_rsa_key
SSH_HOST_DSA_KEY=$SSH_KEYS_INSTALL_PATH/ssh_host_dsa_key
SSHD_PORT=50111
@xfreebird
xfreebird / oclint.xml
Created February 26, 2015 15:46
xcodebuild oclint.xml
<?xml version="1.0" encoding="UTF-8"?>
<pmd version="oclint-0.8.1"><file name="/Users/nghimbovschi/Projects/Project Name With Spaces/Project Name With Spaces/AppDelegate.m">
<violation begincolumn="1" endcolumn="110" beginline="18" endline="18" priority="5" rule="long line">
Line with 110 characters exceeds limit of 100
</violation>
</file>
<file name="/Users/nghimbovschi/Projects/Project Name With Spaces/Project Name With Spaces/AppDelegate.m">
<violation begincolumn="1" endcolumn="281" beginline="24" endline="24" priority="5" rule="long line">
Line with 281 characters exceeds limit of 100
@xfreebird
xfreebird / oclint.xml
Created February 26, 2015 15:47
xctool oclint.xml
<?xml version="1.0" encoding="UTF-8"?>
<pmd version="oclint-0.8.1"></pmd>
@xfreebird
xfreebird / compile_commands.json
Created February 26, 2015 15:56
xctool compile_commands.json
[
{
"command" : "\/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=\/Users\/nghimbovschi\/Library\/Developer\/Xcode\/DerivedData\/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-f
@xfreebird
xfreebird / compile_commands.json
Created February 26, 2015 15:58
oclint-xcodebuild compile_commands.json
[
{
"directory": "/Users/nghimbovschi/Projects/Project Name With Spaces",
"command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/nghimbovschi/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-u