Skip to content

Instantly share code, notes, and snippets.

Avatar
🙏
Acepit

Avindra Goolcharan avindra

🙏
Acepit
View GitHub Profile
View steam-dump-for-rdo.json
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen Threadripper 1950X 16-Core Processor
CPU Family: 0x17
@avindra
avindra / v8-canary.md
Last active Feb 22, 2021
v8/d8 dump location
View v8-canary.md
View Reset-Alacritty.md

Introduction

To reset your terminal, you can call reset from your shell, which is generally included with the target operating systems.

If you want to reset when you are not at a shell prompt (i.e., inside some other application), we can send an escape sequence in another way.

As an example, we can send a special escape sequence to the Nth tty:

echo -e "\ec" > /dev/pts/$N
@avindra
avindra / TrySwayNVIDIA.sh
Last active Nov 29, 2020
Some boilerplate for dealing with common issues when trying to start Sway (window manager) on an NVIDIA card.
View TrySwayNVIDIA.sh
#!/bin/sh
primaryGPU=/dev/dri/card0
if [[ ! -c "$primaryGPU" ]]; then
echo "No dri card detected"
exit 1
fi
@avindra
avindra / pfsense-dark-mode.sh
Created Jul 31, 2018
Get NATIVE dark mode on pfSense (tested on 2.4.3)
View pfsense-dark-mode.sh
# [ SSH TO YOUR ROUTER ] =
# Press 8 for a shell
cd /usr/local/www/css
ls -lah
cp pfSense.css pfSense.css.base
cat pfSense.css.base pfSense-dark.css > pfSense.css
# Reload browser, the styles should take effect immediately.
@avindra
avindra / lexicalScoping.py
Created Jan 3, 2018
Proof of python lacking lexical scope
View lexicalScoping.py
#!/usr/bin/env python3
if True:
a = " am i lexically scoped?"
print(a)
print("exiting")
exit(0)
@avindra
avindra / suse.log
Created Aug 7, 2017
vbam suse build pr 135
View suse.log
[ 0s] Using BUILD_ROOT=/var/cache/obs/worker/root_6/.mount
[ 0s] Using BUILD_ARCH=x86_64:i686:i586:i486:i386
[ 0s] Doing kvm build in /var/cache/obs/worker/root_6/root
[ 0s]
[ 0s]
[ 0s] lamb60 started "build vbam.spec" at Mon Aug 7 23:45:30 UTC 2017.
[ 0s]
[ 0s] Building vbam for project 'home:avindra' repository 'openSUSE_Tumbleweed' arch 'x86_64' srcmd5 '65f360f4ee3815247bf2507b1252fe3b'
[ 0s]
[ 0s] processing recipe /var/cache/obs/worker/root_6/.build-srcdir/vbam.spec ...
View keybase.md

Keybase proof

I hereby claim:

  • I am avindra on github.
  • I am avindra (https://keybase.io/avindra) on keybase.
  • I have a public key ASCcoxgPMW3e2nhdBiuamrz-gmWd7iJhfUh5DYf908tcwQo

To claim this, I am signing this object:

@avindra
avindra / old-nuke.ahk
Created Jun 6, 2016
CS GO: Jump to the top of silo on de_nuke
View old-nuke.ahk
isFast = 1
XButton2::
Send {3} ; Use knife
Send {W down} ; Move forward
Sleep 690 ; ...
Send {Space} ; Jump at the right moment
Send {Ctrl down} ; Crouch
Sleep 1200 ; Hold it...
@avindra
avindra / Buffer.java
Created Sep 15, 2013
Text editor assignment - using a two stack buffer.
View Buffer.java
/*
* Avindra Goolcharan
* September 11, 2013
* CS 216 007 - Data Structures & Algorithms
* Assignment 2 - Two Stack Buffer
*/
import java.util.Stack;
public class Buffer