Skip to content

Instantly share code, notes, and snippets.

View creatorrr's full-sized avatar

Diwank Singh Tomer creatorrr

View GitHub Profile
@creatorrr
creatorrr / hasura.ts
Last active October 23, 2021 07:08 — forked from bkniffler/hasura.ts
Hasura ECS cdk typescript example
import ec2 = require('@aws-cdk/aws-ec2');
import ecs = require('@aws-cdk/aws-ecs');
import secrets = require('@aws-cdk/aws-secretsmanager');
import cdk = require('@aws-cdk/core');
export interface StaticSiteProps extends cdk.StackProps {
connectionString: string;
hasuraVersion: string;
vpc: ec2.IVpc;
}
@creatorrr
creatorrr / README.md
Last active June 24, 2021 07:39 — forked from danisla/README.md
GKE GPU Sharing Daemonset

GPU Sharing on GKE DaemonSet

NOTE: This is not a Google supported product.

Example Usage

  1. Create a GKE cluster with a GPU node pool:
gcloud container clusters create gpu-sharing-demo --zone us-central1-c

Keybase proof

I hereby claim:

  • I am creatorrr on github.
  • I am diwank (https://keybase.io/diwank) on keybase.
  • I have a public key whose fingerprint is 8DFE F952 DE35 C293 B09E AC8C E88E 17F6 9197 27EE

To claim this, I am signing this object:

@creatorrr
creatorrr / README.md
Created March 17, 2018 21:14
Utility for merging sqitch migrations

Merge sqitch migrations easily. Example:

❯ sqitch-merge --verbose                                                                                                                                                                                           
Path to sqitch plan file [./sqitch.plan]: ./db/migrations/sqitch.plan                                                                                                                                              
27 items found in plan                                                                                                                                                                                             
Choose range to merge from following 27 items                                                                                                                                                                      
1. 0000000000_initial                                    # Add schema for KEA             

Keybase proof

I hereby claim:

  • I am creatorrr on github.
  • I am diwank (https://keybase.io/diwank) on keybase.
  • I have a public key ASC7xYGYRh3fGiEhzazfsjr0BPLfNIv6YJ27dTdtpx15Mwo

To claim this, I am signing this object:

@creatorrr
creatorrr / right_mirrorboard.vimrc
Last active September 12, 2021 19:29
Right-handed MirrorBoard vim key-mapping
"
" Right-handed MirrorBoard one-hand keymapping
" Diwank Singh
" Dated: 2016-09-29
"
" Original:
" " MirrorBoard one-hand keymapping
" " Hacked together by Randall Munroe and neale
" " 2007-06-25
// LZW-compress a string
function lzw_encode(s) {
var dict = {};
var data = (s + "").split("");
var out = [];
var currChar;
var phrase = data[0];
var code = 256;
for (var i=1; i<data.length; i++) {
currChar=data[i];
#!/bin/sh
# User Home Directory
USER_HOME=$(eval echo ~${SUDO_USER})
echo "Let's get rolling."
apt-get -y update
# Installing stuff
@creatorrr
creatorrr / frodoandring.txt
Created June 3, 2014 05:23
LOTR Pivotal Moment
`Why are you so unfriendly? ' said Boromir. `I am a true man, neither thief nor tracker. I need
your Ring: that you know now; but I give you my word that I do not desire to keep it. Will you not
at least let me make trial of my plan? Lend me the Ring! '
`No! no! ' cried Frodo. 'The Council laid it upon me to bear it.'
`It is by our own folly that the Enemy will defeat us,' cried Boromir. `How it angers me! Fool!
Obstinate fool! Running wilfully to death and ruining our cause. If any mortals have claim to theRing, it is the men of Númenor, and not Halflings. It is not yours save by unhappy chance. It might
have been mine. It should be mine. Give it to me! '
Frodo did not answer, but moved away till the great flat stone stood between them. `Come,
come, my friend! ' said Boromir in a softer voice. 'Why not get rid of it? Why not be free of your
doubt and fear? You can lay the blame on me, if you will. You can say that I was too strong and
@creatorrr
creatorrr / fareforward.txt
Created June 3, 2014 02:06
Not fare well, But fare forward, voyagers.
III
I sometimes wonder if that is what Krishna meant -
Among other things - or one way of putting the same thing:
That the future is a faded song, a Royal Rose or a lavender spray
Of wistful regret for those who are not yet here to regret,
Pressed between yellow leaves of a book that has never been opened.
And the way up is the way down, the way forward is the way back.
You cannot face it steadily, but this thing is sure,
That time is no healer: the patient is no longer here.