Skip to content

Instantly share code, notes, and snippets.

Avatar
🚫
I may be slow to respond.

Nikhita Raghunath nikhita

🚫
I may be slow to respond.
View GitHub Profile
@dims
dims / README.md
Last active Jan 15, 2022
Kubernetes Resources
View README.md
View update-dependencies.sh
#!/bin/bash
set -xeu
upd::pin(){
local repo=$1
local sha=$2
hack/pin-dependency.sh $1 $2
}
@andyshinn
andyshinn / BYEQUICKSWITCHER.md
Last active Jul 16, 2019
Get rid of Slack Quick switch / Jump to widget
View BYEQUICKSWITCHER.md

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 Nov 26, 2018
statement on event-stream compromise
View readme.md

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 Apr 4, 2021
cat through the ages
View 1-cat-pdp7.s
" 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 Dec 24, 2021
How to increase the root partition size on Fedora
View increase_root_fedora.md

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 
View do_things_with_sigs_yaml.py
#!/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
#
View gist:31e8ab3d959384e38feea00453f820cf
[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
View gist:f34e44064e6fe914b150ce6bcc502d00
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=
View README.md