Skip to content

Instantly share code, notes, and snippets.

View nikhita's full-sized avatar
E_TOO_MANY_THINGS

Nikhita Raghunath nikhita

E_TOO_MANY_THINGS
View GitHub Profile
@dims
dims / README.md
Last active April 18, 2024 06:16
Kubernetes Resources
@tykurtz
tykurtz / grokking_to_leetcode.md
Last active April 25, 2024 06:31
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

#!/bin/bash
set -xeu
upd::pin(){
local repo=$1
local sha=$2
hack/pin-dependency.sh $1 $2
}
@andyshinn
andyshinn / BYEQUICKSWITCHER.md
Last active July 16, 2019 15:37
Get rid of Slack Quick switch / Jump to widget

These instructions will help you get rid of the Slack quick-switcher on macOS. Slack 4.0.0 introduces a different packing mechanism which adds some steps. But both sets of steps will use the following JavaScript snippet:

document.addEventListener("DOMContentLoaded", function() {
  let customCustomCSS = `
  div.p-channel_sidebar__navigation_bar {
    display: none;
  }
  `
  
@dominictarr
dominictarr / readme.md
Created November 26, 2018 22:39
statement on event-stream compromise

Hey everyone - this is not just a one off thing, there are likely to be many other modules in your dependency trees that are now a burden to their authors. I didn't create this code for altruistic motivations, I created it for fun. I was learning, and learning is fun. I gave it away because it was easy to do so, and because sharing helps learning too. I think most of the small modules on npm were created for reasons like this. However, that was a long time ago. I've since moved on from this module and moved on from that thing too and in the process of moving on from that as well. I've written way better modules than this, the internet just hasn't fully caught up.

@broros

otherwise why would he hand over a popular package to a stranger?

If it's not fun anymore, you get literally nothing from maintaining a popular package.

One time, I was working as a dishwasher in a restu

@sinclairtarget
sinclairtarget / 1-cat-pdp7.s
Last active April 2, 2024 20:15
cat through the ages
" cat
lac 017777 i " Load accumulator (AC) with argument count
sad d4 " Skip next if we have more than 4 words of args
jmp nofiles " Otherwise, jump to nofiles
lac 017777 " Load AC with address of args
tad d1 " Increment AC by 1, past argument count
tad d4 " Increment AC by 4, now AC points to first real arg
dac name " Save arg pointer from AC into 'name'
@181192
181192 / increase_root_fedora.md
Last active March 1, 2024 03:24
How to increase the root partition size on Fedora

How to increase the root partition size on Fedora

Boot up with an Fedora Live USB stick.

  1. Run vgs to check if there's any space:
$ sudo vgs
  VG     #PV #LV #SN Attr   VSize    VFree
  fedora   1   3   0 wz--n- <237.28g    0 
#!/usr/bin/env python
# Copyright 2018 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
[27 Sep 18 23:10 UTC]: Successfully ensured /go-workspace/src/k8s.io/code-generator exists
[27 Sep 18 23:10 UTC]: /bin/bash -c "git tag | xargs git tag -d >/dev/null"
[27 Sep 18 23:10 UTC]: /publish_scripts/construct.sh code-generator master master /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/code-generator kubernetes kubernetes k8s.io false "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" 34860dafe2d86a98efe9065754b722095f24c813
+ '[' '!' 14 -eq 14 ']'
+ REPO=code-generator
+ SRC_BRANCH=master
+ DST_BRANCH=master
+ DEPS=
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git
This file has been truncated, but you can view the full file.
[24 Sep 18 07:07 UTC]: Successfully ensured /go-workspace/src/k8s.io/code-generator exists
[24 Sep 18 07:07 UTC]: /bin/bash -c "git tag | xargs git tag -d >/dev/null"
[24 Sep 18 07:07 UTC]: /publish_scripts/construct.sh code-generator master master /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/code-generator kubernetes kubernetes k8s.io false "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" 400981797e38bee5c1b84f7a1f3914db7b74f196
+ '[' '!' 14 -eq 14 ']'
+ REPO=code-generator
+ SRC_BRANCH=master
+ DST_BRANCH=master
+ DEPS=
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git