$ git remote add upstream git://[remote-username]/[remote-project-name].git
$ git fetch upstream
$ git rebase -i upstream/master
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
from rest_framework.pagination import LimitOffsetPagination, remove_query_param, replace_query_param | |
from rest_framework.response import Response | |
class CustomPagination(LimitOffsetPagination): | |
""" | |
We are creating a custom pagination class here because count | |
will take too much time to return a value, so we omit is from | |
the results. Inspired by: |
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
cat [json-file] | kubectl exec [curl-pod] -- curl -XPOST [service-url] -d @- |
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
-- Get pid | |
SELECT | |
pid | |
,datname | |
,usename | |
,application_name | |
,client_hostname | |
,client_port | |
,backend_start | |
,query_start |
I hereby claim:
- I am erroneousboat on github.
- I am erroneousboat (https://keybase.io/erroneousboat) on keybase.
- I have a public key whose fingerprint is 4FD7 A028 BDAC E545 A5B4 98AB D442 7DBE B52B D806
To claim this, I am signing this object: