Skip to content

Instantly share code, notes, and snippets.

View felixkiss's full-sized avatar

Felix Kiss felixkiss

View GitHub Profile
@felixkiss
felixkiss / .gitignore
Last active December 25, 2015 23:29 — forked from adamgit/.gitignore
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,
<?php
use Way\Tests\Should;
use Way\Tests\Assert;
use Mockery as m;
class WrapperTest extends PHPUnit_Framework_Testcase {
public function tearDown()
{
$ knife ec2 server create \
--region eu-west-1 \
--availability-zone eu-west-1a \
--node-name foo \
--flavor t1.micro \
--image ami-ab6170df \
--identity-file ~/.ssh/aws.pem \
--run-list "role[database]" \
--ssh-user ubuntu
ERROR: Excon::Errors::BadRequest: Expected(200) <=> Actual(400 Bad Request)
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p429.tar.gz
tar -xvzf ruby-1.9.3-p429.tar.gz
cd ruby-1.9.3-p429/
./configure --prefix=/usr/local
make
make install
➜ bundle && rake
Resolving dependencies...
Using rake (10.0.3)
Using i18n (0.6.4)
Using multi_json (1.7.1)
Using activesupport (3.2.9)
Using builder (3.0.4)
Using activemodel (3.2.9)
Using erubis (2.7.0)
Using journey (1.0.4)
@felixkiss
felixkiss / block1_activated.m
Last active December 10, 2015 23:39
Easy comment/uncomment switch between code blocks. Just change the first line to '/*' and it will comment the block1 and uncomment block2 at the same time.
//*
NSLog(@"code block 1");
/*/
NSLog(@"code block 2");
//*/
@felixkiss
felixkiss / output on failing machine
Created August 27, 2012 11:03
Upload Test Script
array(1) {
["gameimage"]=>
array(1) {
["name"]=>
string(10) "simple.pdf"
}
}
<hr><form name="upload-image-form" enctype="multipart/form-data" method="post">
<input type="file" name="gameimage" size="30" />
<?php
// Require the Slim Framework
require('Slim/Slim.php');
// Require the custom View
require_once('SlimViews/SmartyView.php');
$app = new Slim(array(
'debug' => true,
'templates.path' => '../templates',
@felixkiss
felixkiss / UIDeviceHardware.h
Created November 5, 2011 02:19 — forked from Jaybles/UIDeviceHardware.h
UIDeviceHardware - Determine iOS device being used
//
// UIDeviceHardware.h
//
// Used to determine EXACT version of device software is running on.
#import <Foundation/Foundation.h>
@interface UIDeviceHardware : NSObject
+ (NSString *) platform;