I hereby claim:
- I am shivanshs9 on github.
- I am shivanshs9 (https://keybase.io/shivanshs9) on keybase.
- I have a public key whose fingerprint is AB5F BF93 4643 CDEF C77F 7686 4A92 F697 E2C6 C0FC
To claim this, I am signing this object:
| class UnsafeResponseSerializerMixin(object): | |
| """ | |
| Apply this mixin to any view or viewset to automatically use a different response | |
| serializer on POST, PUT or PATCH requests. | |
| Override 'get_response_data' method to return back the desired data, or | |
| 'get_response' method to also provide additional changs to the returned Response. | |
| """ | |
| def get_response_data(self, request): |
I hereby claim:
To claim this, I am signing this object:
| input=() | |
| for path in /sdcard/{"Pictures","Download","DCIM"}; do | |
| input+=$(adb shell "ls -d '$path'") | |
| done | |
| for path in $input; do | |
| adb pull $path & | |
| done |
| #! /usr/bin/env python3 | |
| """ | |
| Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04 and also debian jessie, with bluez5. | |
| Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
| Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
| This will be only fixes the bluez5 problem mentioned above . |
| name: Keep the versions up-to-date | |
| on: | |
| release: | |
| types: [published, edited] | |
| jobs: | |
| actions-tagger: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: Actions-R-Us/actions-tagger@v2 | |
| env: |
| #!/usr/bin/env bash | |
| ## Copyright 2020 Shivansh Saini<shivanshs9@gmail.com> | |
| # Licensed under MIT | |
| usage() { | |
| cat << EOD | |
| Usage: `basename $0` [options] [date] -- [commit args] |
| ### Use: | |
| # reassign_owner dbName newOwner oldOwner/root dbHost | |
| reassign_owner() { | |
| db="$1" | |
| newUser="$2" | |
| owner="${3:-$newUser}" | |
| dbHost="$4" | |
| local pw | |
| echo -n "Password: " > /dev/tty |
Picking the right architecture = Picking the right battles + Managing trade-offs
| #!/bin/sh | |
| # Assume sudo by default | |
| [ $(id -u) -eq 0 ] || exec sudo $0 $@ | |
| for bin in /var/lib/rancher/k3s/data/**/bin/; do | |
| [ -d $bin ] && export PATH=$PATH:$bin:$bin/aux | |
| done | |
| set -x |
| #!/bin/bash | |
| # How to use? | |
| ## bash gh_migrate_init.sh competition-service | |
| GITHUB_ORG="coindcx-app" | |
| JIRA="IDOPS-153" | |
| SOURCE_FOLDER="coindcx-api-help" | |
| prepare_repo() { |