Skip to content

Instantly share code, notes, and snippets.

View creatorrr's full-sized avatar
🐕
Chillin

Diwank Singh Tomer creatorrr

🐕
Chillin
View GitHub Profile

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.
javascript:(function() {
var bookmarklet = {
init: function() {
this.parse();
},
parse: function() {
page = "";
$(".PlaylistPage:visible")
.children(".Collection")
.find(".Track")
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<!-- Set preferences for app -->
<ModulePrefs title="Keep Bluffin">
<Require feature="rpc" />
<Require feature="views" />
<Require feature="locked-domain" />
</ModulePrefs>
@creatorrr
creatorrr / __readme.markdown
Created December 4, 2012 03:01 — forked from karmi/.gitignore
ElasticSearch bootstrap script and node configuration for Ubuntu [https://gist.github.com/2050769]

Installing ElasticSearch with Monit & nginx

This repository contains files tailored for bootstrapping, installing and configuring ElasticSearch with Chef Solo on the Ubuntu operating system, inspired by this article.

Launch and ssh into Ubuntu 12.04 instance (if on ec2, use ami from alestic.com and with a security group as detailed here)

Now, copy the files to the machine and execute the bootstrap script:

@creatorrr
creatorrr / sat.hs
Created February 12, 2012 01:17 — forked from gatlin/sat.hs
SAT Solver in Haskell
import Data.Maybe
import Control.Monad
type Literal = Integer
type Clause = [Literal]
type Formula = [Clause]
type Record = [Literal]
data SolverState = SolverState { formula :: Formula
, record :: Record