Skip to content

Instantly share code, notes, and snippets.

View Sophrinix's full-sized avatar

Andrew McElroy Sophrinix

View GitHub Profile
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
<application>
<activity android:name=".HipsterdashActivity"
android:label="hipsterdash" android:theme="@style/Theme.Titanium"
android:configChanges="keyboardHidden|orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.HOME"/>
@Sophrinix
Sophrinix / _build.js
Last active June 14, 2019 01:52
complete file 3.2.0.v20131205165947/iphone/cli/commands/_build.js lines 2774 to 2783 fix the issue of Settings.bundle failing to load.
/**
* iOS build command.
*
* @module cli/_build
*
* @copyright
* Copyright (c) 2009-2013 by Appcelerator, Inc. All Rights Reserved.
*
* @license
* Licensed under the terms of the Apache Public License
reset="\033[0;0m"
dir_color="\033[0;32m"
git_color="\033[2;37m"
ti_color="\033[2;36m"
alloy_color="\033[0;36m"
prompt_color=$reset
find-up() {
path=$(pwd)
while [[ "$path" != "" && ! -e "$path/$1" ]]; do
@Sophrinix
Sophrinix / gist:70c757e8f1e4bf4578ff
Created May 12, 2014 18:37
Jenkins config for TiConf 2014 NY talk
cd ~/Desktop/ticonf2014testappdemo/alloytest
titanium clean
titanium build --platform=iphone --test &
sleep 30
killall "iPhone Simulator"
export PATH="/Users/andrewmcelroy/.rbenv/shims:/Applications/Postgres.app/Contents/MacOS/bin:/Users/andrewmcelroy/bin:/usr/local/bin:/Users/andrewmcelroy/.rbenv/bin:/Users/andrewmcelroy/android/tools:/Users/andrewmcelroy/android/:/Users/andrewmcelroy/android//tools:/Users/andrewmcelroy/android/platform-tools/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/andrewmcelroy/.ec2/bin"
echo | titanium calabash --platform=iphone
@Sophrinix
Sophrinix / ios-sim
Created September 22, 2014 12:25
replace ios-sim with this file in titanium 3.3.0 to 3.0.0
#!/bin/zsh
# you need to install npm install -g ios-sim before this will work
# there is an irony in the fact that ios-sim is phonegap's version, but it was forked from Jeff Haynie (CEO Appcelerator)
ios-sim $1 $2 $5 $6 $7 $8
@Sophrinix
Sophrinix / gist:40c8bb9ff14c4429615d
Created March 28, 2015 17:26
hyperloop-android wtf
➜ hyperloop-android git:(master) ../hyperloop-cli/bin/hyperloop clean compile package launch --src=examples/touches --platform=android
[INFO] Cleaned build
[INFO] Generating library
[INFO] Generating system metabase will take up to a minute (or greater) depending on your environment.This file will be cached and will execute faster on subsequent builds.
◠ Generating system metabase
@Sophrinix
Sophrinix / parse.js
Created March 7, 2017 05:28 — forked from stephenfeather/parse.js
Quick library for using the Parse REST API within Appcelerator's Titanium. Building it out as I need different pieces of the API.
// Copyright Stephen Feather and other contributors.
//
// 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:
//
@Sophrinix
Sophrinix / overlap_cidr.py
Created March 10, 2017 01:03 — forked from zzzeek/overlap_cidr.py
detect overlapping CIDR ranges in SQL, prevent duplicate ranges using triggers
from sqlalchemy import event
from sqlalchemy import DDL
def mysql_cidr_overlap(engine, metadata):
@event.listens_for(metadata, "after_create")
def _create_mysql_proc(target, connection, **kw):
if connection.engine.name != 'mysql':
return
if connection.scalar(
@Sophrinix
Sophrinix / overlap_cidr.py
Created March 10, 2017 01:03 — forked from zzzeek/overlap_cidr.py
detect overlapping CIDR ranges in SQL, prevent duplicate ranges using triggers
from sqlalchemy import event
from sqlalchemy import DDL
def mysql_cidr_overlap(engine, metadata):
@event.listens_for(metadata, "after_create")
def _create_mysql_proc(target, connection, **kw):
if connection.engine.name != 'mysql':
return
if connection.scalar(
@Sophrinix
Sophrinix / imap-capability.md
Created March 15, 2017 05:14 — forked from emersion/imap-capability.md
Common IMAP servers CAPABILITY responses

FastMail

* CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE AUTH=OTP SASL-IR
* CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID LOGINDISABLED ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT SORT=MODSEQ THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE CATENATE CONDSTORE IDLE URLAUTH

Gandi.net