Skip to content

Instantly share code, notes, and snippets.

View mgrebenets's full-sized avatar
🐢

Maksym Grebenets mgrebenets

🐢
View GitHub Profile
@mgrebenets
mgrebenets / bitbucket-branches-job-dsl.groovy
Created June 8, 2015 01:02
Jenkins Job DSL Example - Bitbucket Branches
//
// Jenkins Job DSL example to create build projects for Bitbucket branches
//
// Imports
import java.text.DateFormat
import java.text.SimpleDateFormat
import groovy.time.TimeCategory
// URL components
@mgrebenets
mgrebenets / daemon-vs-agent.csv
Last active February 15, 2022 08:34
daemon vs agent
Criteria Daemon Agent
Launch Time System start User login
User Type Non-login Login
Home Folder No Yes
Login Keychain No Yes
iOS Simulator No Yes
Provisioning Profiles No Yes
@mgrebenets
mgrebenets / Example.swift
Created March 10, 2018 11:02
Async Swift Scripting - 8
import Alamofire
var keepAlive = true
Alamofire.request("http://httpbin.org/get")
.responseJSON { response in
print(response) // Result of response serialization
keepAlive = false
}
let runLoop = NSRunLoop.currentRunLoop()
# Run this inside Transporter's itms directory.
# Patch the trasporter with internal root CA.
./java/bin/keytool -import -trustcacerts \
-alias internal-root-ca \
-file ${ROOT_CA_PATH} \
-keystore java/lib/security/cacerts \
-storepass changeit \
-noprompt \
-v
@mgrebenets
mgrebenets / RPMMakefile.mak
Last active October 16, 2020 16:37
RPM Makefile
PACKAGE = nsbogan-atlassian-cli
VERSION = 3.9.0
RELEASE = 1
ARCH = noarch
NSBOGAN_USERNAME = automation
NSBOGAN_PASSWORD = automation
JAVA_VERSION = 1.6
PACKAGE_URL = https://marketplace.atlassian.com/download/plugins/org.swift.atlassian.cli/version/$(subst .,,${VERSION})
# Source directory
@mgrebenets
mgrebenets / buck-xcarchivegen.sh
Created April 15, 2019 00:41
Generate Xcode archive from Buck output
#!/usr/bin/env bash
XCARCHIVE=$1
APP_DIR=$2
APP_NAME=$(basename "${APP_DIR}")
OUT_DIR=$(dirname "$PWD")
PBUDDY=/usr/libexec/PlistBuddy
# Copy directories into xcarchive
mkdir -p "${XCARCHIVE}/BCSymbolMaps"
@mgrebenets
mgrebenets / aliases.sh
Created November 1, 2018 03:07
bamboo-ci-server aliases
alias start-bamboo="/Users/bamboo/bamboo/bin/start-babmoo.sh"
alias stop-bamboo="/Users/bamboo/bamboo/bin/stop-babmoo.sh"
alias restart-bamboo="stop-bamboo & start-bamboo"
@mgrebenets
mgrebenets / com.atlassian.bamboo.plist
Created November 1, 2018 03:06
bamboo-ci-server com.atlassian.bamboo.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.atlassian.bamboo</string>
<key>UserName</key>
<string>bamboo</string>
<key>ProgramArguments</key>
@mgrebenets
mgrebenets / fix-objc-imports.sh
Last active January 2, 2020 17:48
Fix Objective-C Imports
#!/bin/bash
# Fix Objective-C import statements
# Replace all system framework imports of #import <Path/Path.h> type with @import Path;
# Temp directory
TMP_DIR=$(mktemp -dt "XXXXXXXX")
# Log
log () {
{
Name = "ENABLE_NS_ASSERTIONS";
Type = Boolean;
DefaultValue = YES;
CommandLineArgs = {
YES = ();
NO = ("-DNS_BLOCK_ASSERTIONS=1");
};
FileTypes = (
"sourcecode.c.objc",