Skip to content

Instantly share code, notes, and snippets.

View picsoung's full-sized avatar
🧀
🇫🇷 🐸 Hacking around 🤓👨‍💻

Nicolas Grenié picsoung

🧀
🇫🇷 🐸 Hacking around 🤓👨‍💻
View GitHub Profile

How to rename a setupId in Pizzly.

Pizzly uses uuidv4 to generate pseudo-random setupId, such as a3ef22ba-8916-424f-b613-9e8608026094. In some cases, you might be interested in renaming the setupId to something more meaningful. Here's how to do it.

Server side

Assuming you can't run SQL queries on your production database, to rename a setupId on your Pizzly instance (e.g. on Heroku), you'll have to create a new endpoint on Pizzly's API and request that endpoint each time you want to rename a setupId.

Here's how to do it:

@simonhamp
simonhamp / WebhookController.php
Last active November 17, 2023 17:13
Handling Typeform Webhooks in Laravel
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class WebhookController
{
public function create(Request $request)
{
@ummjackson
ummjackson / Peach v1 API Endpoints.md
Last active February 8, 2024 18:27
Peach v1 API Endpoints

Peach (peach.cool) API Endpoints

Peach is hot right now so I poked around their API using https://mitmproxy.org/

As of the last update, this seems to be a fairly extensive/complete list of v1 endpoints, but feel free to submit revisions to this gist with any others you find!

Login

@scottmackenzzz
scottmackenzzz / MeteorSublimeTextProjectPrefs.json
Last active October 24, 2015 02:34
Meteor JS Sublime Text project preferences to ignore '.meteor', 'packages' (and other) folders for the purposes of better search. Reference → http://css-tricks.com/exclude-compiled-css-from-sublime-text-2-projects
{
"folders":
[
{
"path": "/path/to/my/app/",
"folder_exclude_patterns": [".meteor", "packages"]
}
]
}
@lanthaler
lanthaler / apibunny-middleware
Last active August 29, 2015 14:00
APItools middleware to convert apibunny.com responses to JSON-LD
return function(request, next_middleware)
local response = next_middleware()
if (response.headers['content-type'] == 'application/json') then
local data = json.decode(response.body)
if (data.mazes) then
data['@context'] = 'http://www.hydra-cg.com/examples/maze'
data['id'] = data.mazes[1].id
data['@type'] = 'Maze'
@hannesvdvreken
hannesvdvreken / MazeCommand.php
Created April 18, 2014 22:24
LaravelPHP artisan command to search the apibunny maze
<?php
use Guzzle\Http\Client;
use Guzzle\Http\Exception\BadResponseException;
use Illuminate\Console\Command;
use Illuminate\Foundation\Application;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class MazeCommand extends Command
@jlbelmonte
jlbelmonte / apibunny.py
Last active August 29, 2015 14:00
apibunny
import requests
from sets import Set
_seed = 'http://apibunny.com/cells/taTKQ3Kn4KNnmwVI'
_base = 'http://apibunny.com/cells/'
visited = Set()
def processJson(json) :
cells = json.get('cells')[0]
@rtt
rtt / tinder-api-documentation.md
Last active June 21, 2024 04:19
Tinder API Documentation

Tinder API documentation

Note: this was written in April/May 2014 and the API may has definitely changed since. I have nothing to do with Tinder, nor its API, and I do not offer any support for anything you may build on top of this. Proceed with caution

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

@theycallmeswift
theycallmeswift / api_dev_tools.md
Created October 24, 2013 21:18
The list of awesome API Developer Tools from John Sheehan's (https://twitter.com/johnsheehan) talk at API Strategy SF (http://www.apistrategyconference.com/2013SF/)
@chengyin
chengyin / linkedout.js
Last active July 11, 2021 15:23
Unsubscribe all LinkedIn email in "one click". For an easier to use version, you can check out the bookmarklet: http://chengyin.github.io/linkedin-unsubscribed/
// 1. Go to page https://www.linkedin.com/settings/email-frequency
// 2. You may need to login
// 3. Open JS console
// ([How to?](http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers))
// 4. Copy the following code in and execute
// 5. No more emails
//
// Bookmarklet version:
// http://chengyin.github.io/linkedin-unsubscribed/