This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.
# Delete all containers
docker rm $(docker ps -aq)
# Delete all images
docker rmi $(docker images -q)
# Delete all untagged images
docker rmi $(docker images -q --filter "dangling=true")
References:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FORMAT: 1A | |
HOST: http://gibby.stagingapps.net/api | |
# Gibby API | |
The Gibby API provides endpoints for external users | |
## Glossary | |
- API Key: API Key are random strings that give consumer access to the APIS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE room_messages ( | |
id serial NOT NULL, | |
room_name varchar(255) NOT NULL, | |
request_id INT NOT NULL, | |
requester_id INT NOT NULL, | |
traveller_id INT NOT NULL, | |
active BOOLEAN NOT NULL DEFAULT TRUE , | |
created_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, | |
updated_at TIMESTAMP(0) WITHOUT TIME ZONE, | |
CONSTRAINT room_messages_pk PRIMARY KEY (id), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
request offer posted : to requester yg membuat order | |
from api : requests/{request_id}/offers [POST] | |
{ | |
"push_token" :[ "$push_token_requester_1"], | |
"type": "REQUEST_OFFER", | |
"request_id": 1, | |
"offer_id": 1, | |
"text": "$traveller_name give offer $offer_price for your request $item_name" | |
"device": "android" / "ios" berdasarkan app_id yg ada ditable user_devices | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class OyFirebaseInstanceIdService extends FirebaseInstanceIdService { | |
private static final String TAG = "OyFirebaseIis"; | |
@Inject | |
LocalPreferences localPreferences; | |
private CompositeSubscription subscriptions; | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 46, | |
"request_by": "andrioy", | |
"user": { | |
"id": 40, | |
"user": "andrioy", | |
"name": "andri oy", | |
"images": { | |
"original": "https://gibby.id/uploads/users/40/1509587093648523883.jpg", | |
"normal": "https://gibby.id/uploads/users/40/1509587093648523883_normal.jpg", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://gibby.id/api/requests-offer/{request_id}/trip/{trip_id}?api_key=198bc4240396814a3c8fb73b52b451b0 | |
{ | |
"data" : { | |
"request_id": 1, | |
"has_offered": true, // false if blom pernah offer | |
"price" : 2000, | |
"gibby_fee" : 500, | |
"gibby_prosen" : 1700, | |
"price_to_pay" : 70000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": [ | |
{ | |
"id": 8, | |
"from_country_id": 101, | |
"from_country": "Indonesia", | |
"image": { | |
"original": "https://gibby.id/uploads/countries/101/14955144531007008508.jpg", | |
"@3x": "https://gibby.id/uploads/countries/101/[email protected]", | |
"@2x": "https://gibby.id/uploads/countries/101/[email protected]", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/VERSION/bin/ | |
$ pip install psycopg2 |
NewerOlder