Skip to content

Instantly share code, notes, and snippets.

View nihaals's full-sized avatar
🤖
Obsessing over CI

Nihaal Sangha nihaals

🤖
Obsessing over CI
View GitHub Profile
@nihaals
nihaals / status.py
Created March 7, 2018 18:01
Python status
import sys.stdout as std
def update_last_line(text):
std.write("\r{}\033[K".format(text))
std.flush()
@nihaals
nihaals / IPCServer.py
Last active March 6, 2020 16:20 — forked from TheRockettek/IPCServer.py
Rock's IPC Server
import asyncio
import base64
import csv
import html
import imghdr
import logging
import math
import os
import pathlib
import random

Keybase proof

I hereby claim:

  • I am nihaals on github.
  • I am orangutan (https://keybase.io/orangutan) on keybase.
  • I have a public key ASC85yhPuDyOyjJhWCtSp2BtEJa5QaVA7nEpo8-Wq34jsQo

To claim this, I am signing this object:

@nihaals
nihaals / pythonstartup.py
Created April 20, 2023 15:52
Python shell temporary history
# Disables Python's default history handling
# See https://github.com/python/cpython/blob/4898415df724380d4c8b0ec08e8cb92f126193c3/Lib/site.py#L462-L483
# Makes history only available in the current shell and stops reading and writing it to disk
# Only side-effect is there is an empty history entry before getting a bell while pressing up arrow
__import__('readline').add_history('')
@nihaals
nihaals / CONTRIBUTING.md
Last active January 11, 2024 19:10
Discord Nitro Boosting

If you have some information to add, please leave a comment or DM me on Discord (Orangutan#9393).

Currently untested:

  • Duration of subscription giving more boosts or building up boosts possibly allowing you to spend multiple boosts on one guild