Skip to content

Instantly share code, notes, and snippets.

View avindra's full-sized avatar
🙏
Acepit

Avindra Goolcharan avindra

🙏
Acepit
View GitHub Profile
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 February 22, 2021 17:03
v8/d8 dump location
@avindra
avindra / Reset-Alacritty.md
Last active February 19, 2024 09:35
Reset Terminal

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 November 29, 2020 21:27
Some boilerplate for dealing with common issues when trying to start Sway (window manager) on an NVIDIA card.
#!/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 July 31, 2018 04:37
Get NATIVE dark mode on pfSense (tested on 2.4.3)
# [ 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 January 3, 2018 17:46
Proof of python lacking lexical scope
#!/usr/bin/env python3
if True:
a = " am i lexically scoped?"
print(a)
print("exiting")
exit(0)
@avindra
avindra / suse.log
Created August 7, 2017 23:51
vbam suse build pr 135
[ 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 ...

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 June 6, 2016 01:23
CS GO: Jump to the top of silo on de_nuke
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 September 15, 2013 17:41
Text editor assignment - using a two stack buffer.
/*
* Avindra Goolcharan
* September 11, 2013
* CS 216 007 - Data Structures & Algorithms
* Assignment 2 - Two Stack Buffer
*/
import java.util.Stack;
public class Buffer