Skip to content

Instantly share code, notes, and snippets.

Compile Swift Module 'libc' (1 sources)
Compile Swift Module 'FluentMySQL' (2 sources)
Compile Swift Module 'Generator' (10 sources)
Compile Swift Module 'JayExample' (1 sources)
Linking .build/debug/SocksCoreExampleTCPClient
Linking .build/debug/SocksCoreExampleTCPKeepAliveServer
Linking .build/debug/SocksCoreExampleTCPServer
Undefined symbols for architecture x86_64:
"__TF6Darwin5fcntlFTVs5Int32S0_S0__S0_", referenced from:
__TFE9SocksCorePS_9RawSocketg8blockingSb in SocketOptions.swift.o
### Keybase proof
I hereby claim:
* I am fjbelchi on github.
* I am fjbelchi (https://keybase.io/fjbelchi) on keybase.
* I have a public key whose fingerprint is 5D2C 3D43 B325 220D 4C05 CFF5 5B24 DD5A 34C0 4FA4
To claim this, I am signing this object:
@fjbelchi
fjbelchi / shop_online.rb
Last active August 29, 2015 14:16
Shop Online API test
require 'airborne'
token = '9iuz9f5fc3b79156a344b904417453e1b0679f5fc3b79156a344b904417453e1b067'
header_auth = {'Wam-Token': token, Accept: 'application/json,application/vnd.wam-api-v1.3+json', 'Content-Type': 'application/json'}
header = {Accept: 'application/json,application/vnd.wam-api-v1.3+json', 'Content-Type': 'application/json'}
describe 'Fetching Shop Online Landing' do
describe 'should login and have permission' do
@fjbelchi
fjbelchi / feed_post_image_test
Created March 5, 2015 09:07
Test uploading image
require 'airborne'
token = '9iuz9f5fc3b79156a344b904417453e1b0679f5fc3b79156a344b904417453e1b067'
header_auth = {'Wam-Token': token, Accept: 'application/json,application/vnd.wam-api-v1.3+json', 'Content-Type': 'application/json'}
header = {Accept: 'application/json,application/vnd.wam-api-v1.3+json', 'Content-Type': 'application/json'}
describe 'Uploading image to feed' do
describe 'should login and have permission' do
{
"body": [{
"colleague_offer_id": "54f47d8429c48c3c048b4572",
"type": "colleague",
"title": "Range Rover Test Drive",
"short_description": [{
"type": "text",
"display": "You can test drive a Range rover"
}, {
"type": "eol",
@fjbelchi
fjbelchi / FJBViewControllerAutolayoutExample.m
Last active August 29, 2015 14:01
This is an example UIViewController of how I like to build the views using auto layout by code.
// -- Import ConstraintPack, by Erica https://github.com/erica/Auto-Layout-Demystified great book to learn about auto layout.
// In the Pack, I've added more cases I've been needing to build the UI
// Example in the constraick pack:
// #define CONSTRAINT_ALIGNING_PAIR_LEFT(VIEW1, VIEW2, INDENT) [NSLayoutConstraint constraintWithItem: VIEW2 attribute: NSLayoutAttributeLeft relatedBy: NSLayoutRelationEqual toItem:VIEW1 attribute: NSLayoutAttributeLeft multiplier: 1.0f constant: INDENT]
#import "ConstraintPack.h"
@interface FJBViewController ()
// -- In the NSMutableArray is where I save all the constraints I want to add.
@fjbelchi
fjbelchi / remove_local_branches
Created January 3, 2014 09:16
Remove all local branches of the SprintX-
git branch | grep Sprint16-* | xargs git branch -D
#!/bin/sh
projectfile=`find -d . -name 'project.pbxproj'`
projectdir=`echo *.xcodeproj`
projectfile="${projectdir}/project.pbxproj"
tempfile="${projectdir}/project.pbxproj.out"
savefile="${projectdir}/project.pbxproj.mergesave"
cat $projectfile | grep -v "<<<<<<< HEAD" | grep -v "=======" | grep -v "^>>>>>>> " > $tempfile
cp $projectfile $savefile
@fjbelchi
fjbelchi / remove-git-submodule
Last active December 17, 2015 21:39
Remove a git submodule
1. Delete the relevant section from the .gitmodules file.
2. Stage the .gitmodules changes git add .gitmodules
3. Delete the relevant section from .git/config.
4. Run git rm --cached path_to_submodule (no trailing slash).
5. Run rm -rf .git/modules/submodule_name
6. Commit
7. Delete the now untracked submodule files
8. rm -rf path_to_submodule
$ git submodue deinit