Skip to content

Instantly share code, notes, and snippets.

View andrewtheis's full-sized avatar

Andrew Theis andrewtheis

View GitHub Profile
// Copyright (c) 2024 Hidden Spectrum, LLC
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.6.5
-- Dumped by pg_dump version 9.6.5
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
@andrewtheis
andrewtheis / bump_and_tag.sh
Last active December 26, 2015 09:09
Grabs the latest tag and sets the version number. You must only have version numbers as tags and they must be in format "X.y[.z]-B" where: X, y are major and minor versions; z (patch version) is optional; and B is the build number. Execute this with a post-build script phase similar to this: https://gist.github.com/andrewtheis/7127566
#!/bin/sh
PLIST_PATH="${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}"
# Get the current version and extract the version/build from there
LATEST_TAG=`xcrun git describe --tags --abbrev=0`
TAG_BUILD_NUM=${LATEST_TAG#*-}
TAG_VERSION=${LATEST_TAG%-*}
NEW_BUILD_NUM=$(expr $TAG_BUILD_NUM + 1)
@andrewtheis
andrewtheis / set_build_number.sh
Created October 23, 2013 22:02
A way to execute bash scripts only for certain configuration and if that script exists
if [[ ${CONFIGURATION} == "Ad Hoc" && -f /var/xcode_ci_scripts/bump_and_tag.sh ]]; then
/var/xcode_ci_scripts/bump_and_tag.sh
else
echo "Skipping version bump"
fi
#import <netinet/in.h>
<%= form_for @account do |f| %>
<%= render "shared/form_errors", :object => @account %>
# ... Other form view code here ...</span>