Skip to content

Instantly share code, notes, and snippets.

View arjunmayilvaganan's full-sized avatar

Arjun Mayilvaganan arjunmayilvaganan

  • Bellevue, WA
  • 03:45 (UTC -08:00)
View GitHub Profile
@arjunmayilvaganan
arjunmayilvaganan / stack_direction.cpp
Created December 22, 2019 16:18
C++ (adaptable to C) program to determine the stack (memory) direction
#include<iostream>
using namespace std;
static int find_stack_direction ()
{
static char *addr = 0;
auto char dummy;
if (addr == 0)
{
addr = &dummy;
return find_stack_direction ();
@arjunmayilvaganan
arjunmayilvaganan / unwatch-repo.js
Last active August 21, 2019 12:12
Script to unsubscribe from repos belonging only to a particular organisation
(function() {
let qx = $x;
let unwatch = function(org) {
let nodes = document.querySelectorAll('.Box-row');
let rows = [ ...nodes ];
let orgRows = rows.filter(e => e.innerText.startsWith(` ${org}/`));
let orgUnsubButtons = orgRows.map(row => row.querySelector('button.select-menu-item[value="included"]'));
orgUnsubButtons.forEach(button => console.log(button.click()));
setTimeout(function() {
qx("//a[text()='Next']")[0].click();

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

Keybase proof

I hereby claim:

  • I am arjunmayilvaganan on github.
  • I am arjunm (https://keybase.io/arjunm) on keybase.
  • I have a public key ASCORb9pPG6jNG-0jH4PLs_ut3Y32ljoD1aZzQOjt9k4RAo

To claim this, I am signing this object: