Skip to content

Instantly share code, notes, and snippets.

View abhay-venkatesh's full-sized avatar
👋
I may be slow to respond.

Abhay abhay-venkatesh

👋
I may be slow to respond.
View GitHub Profile
@abhay-venkatesh
abhay-venkatesh / delete-likes-from-twitter.md
Created April 16, 2022 15:21 — forked from aymericbeaumet/delete-likes-from-twitter.md
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@abhay-venkatesh
abhay-venkatesh / System Design.md
Created October 11, 2020 01:13 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@abhay-venkatesh
abhay-venkatesh / serverdemo.go
Created April 28, 2020 03:54 — forked from fkautz/serverdemo.go
A simple demo of mixing various go http server and rpc using mux
package main
import (
"bytes"
"fmt"
"github.com/gorilla/mux"
grpc "github.com/gorilla/rpc"
"github.com/gorilla/rpc/json"
"log"
"net/http"
@abhay-venkatesh
abhay-venkatesh / nixos-on-dell-9560.org
Created February 6, 2020 15:40 — forked from domenkozar/nixos-on-dell-9560.org
NixOS on a Dell 15" 9560 with the 4K screen.
@abhay-venkatesh
abhay-venkatesh / pub_sub_cpp.cpp
Created December 19, 2019 01:13 — forked from makomweb/pub_sub_cpp.cpp
Fun with C++: implementing a pub/sub scenario using std::bind and other standard facilities. The approach is pretty similar to the well known .NET event mechanism.
#include <iostream>
#include <map>
#include <algorithm>
#include <functional>
#include <memory>
using namespace std;
class EventArgs {
public:
@abhay-venkatesh
abhay-venkatesh / README.md
Created August 30, 2019 16:30
QEMU + Ubuntu ARM aarch64

QEMU + Ubuntu ARM aarch64

These are the steps I used to get Ubuntu ARM aarch64 running with QEMU on OSX.

Get Ubuntu Image and QEMU EFI:

wget https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-arm64-uefi1.img
wget https://releases.linaro.org/components/kernel/uefi-linaro/latest/release/qemu64/QEMU_EFI.fd
@abhay-venkatesh
abhay-venkatesh / maxPerf.sh
Created July 4, 2019 17:33 — forked from jmtatsch/maxPerf.sh
Nvidia's Max Performance Script for Tegra X1
#!/bin/sh
# turn on fan for safety
echo "Enabling fan for safety..."
if [ ! -w /sys/kernel/debug/tegra_fan/target_pwm ] ; then
echo "Cannot set fan -- exiting..."
fi
echo 255 > /sys/kernel/debug/tegra_fan/target_pwm
echo 0 > /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/enable
@abhay-venkatesh
abhay-venkatesh / keras_quant.py
Created June 4, 2019 22:10 — forked from rocking5566/keras_quant.py
Quantization aware training in keras
import numpy as np
import tensorflow as tf
from tensorflow.keras.datasets import mnist
from tensorflow.keras.utils import to_categorical
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Activation, Conv2D, Flatten
from tensorflow.keras.optimizers import RMSprop
# download the mnist to the path '~/.keras/datasets/' if it is the first time to be called
# X shape (60,000 28x28), y shape (10,000, )