Skip to content

Instantly share code, notes, and snippets.

View felixkiss's full-sized avatar

Felix Kiss felixkiss

View GitHub Profile
@felixkiss
felixkiss / xbl_oauth2.py
Created February 5, 2022 08:24 — forked from tuxuser/xbl_oauth2.py
Sign in to Xbox Live with OAUTH2
"""
Sign in to Xbox Live with OAUTH2
1. Go to https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade
2. Register new app ("+ New registration")
2.1. Enter a name for your app
2.2. Set "Supported account types" to "Personal Microsoft accounts only"
2.3. Click register
2.4. Choose "Redirect URIs" -> "Add a Redirect URI"
2.5. Click "Add a platform" -> "Mobile and desktop applications"
PROPFIND /caldav/calendars/felixkiss/c-felixkiss/ HTTP/1.1
Host: api.ultimed.dev
Accept: */*
Brief: t
Authorization: Basic ZmVsaXhraXNzOnBhc3N3b3J0
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Content-Type: text/xml
Content-Length: 145
Depth: 1
@felixkiss
felixkiss / controllers.application.js
Created October 29, 2016 19:29
Action Bubble Test
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
counter: 0,
actions: {
trClick() {
this.incrementProperty('counter');
},
import DS from "ember-data";
export default DS.JSONAPIAdapter.extend();
@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");
//*/