Skip to content

Instantly share code, notes, and snippets.

mwillerich

Block or report user

Report or block mwillerich

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mwillerich
mwillerich / readme.md
Created Jun 22, 2016 — forked from vbence86/readme.md
Register a member to a Babel Test Environment through Babel REST API
View readme.md

Register a member

  • Send an HTTP POST Request as follows

URL

https://babel-api-0-elb-external.babeltest.photobox.com/v2/Community/Member/New

HTTP Headers

View gist:5c1a30f1dd51600f592a5d92b9b37206
Adyen Test Card Numbers
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform.
For all cards use the following expiration and CVV2/CVC2/or CID for Amex.
For all cards:
Expiration Dates CVV2 / CVC3 CID (American Express)
06/2016 OR 08/2018 737 7373
View gist:efb9fed51d0430045b31
Testing broadcast:
1. get 2 dev or qa instances under your control, and check out the relevant branch on both machines
2. note down the instances' hostnames or IPs
3. on one of the instances, do this (all commands without the quotes): `rm /mnt/data/www/checkout/shared/config/tokens/* && rm /mnt/data/www/checkout/shared/cache/first-boot`
4. wait for 30 seconds or so, then run `restart checkout`
5. call this (on one of the instances) to create a file "instance-1.txt", which will hold all translations for that instance: `curl http://{instance-hostname or ip}:8000/api/tokens | python -mjson.tool > instance-1.txt`
6. call this on the same instance to create a file "instance-2.txt", which will hold all translations for that instance: `curl http://{other-instance-hostname or ip}:8000/api/tokens | python -mjson.tool > instance-2.txt`
7. both SHOULD create a file that has some text (with curly braces and such) in it
8. run `diff instance-1.txt instance-2.txt | grep ">" | wc -l`
9. you SHOULD get a number as a result t
View ello.md

Ello API

This is a basic exploration of the Ello API. Completely unofficial, your mileage my vary, don't smash their servers as they are likely very busy.

Methods return HTML for their representation where appropriate which is a nice little pattern. Everything returns application/json.

Like this:

{
   "id": <new post ID>,
View gist:3304139
sudo apt-get install nginx
sudo apt-get install php5-fpm
sudo apt-get install php5-suhosin
sudo apt-get install php5-cli
sudo vim /etc/php5/fpm/php.ini #changed error reporting
sudo vim /etc/nginx/sites-enabled/default #enabled commented out recipe for PHP-FPM
sudo mkdir /opt/web
sudo chown ubuntu:ubuntu /opt/web
You can’t perform that action at this time.