Skip to content

Instantly share code, notes, and snippets.

View KushagraKarira's full-sized avatar

KushagraKarira KushagraKarira

View GitHub Profile
@KushagraKarira
KushagraKarira / c2.sh
Last active March 21, 2023 13:23
use chatgpt from terminal, it pretends to be C2 interacting with lelouch
#!/bin/bash
# Set your OpenAI API key
API_KEY="your api here"
# Get the prompt from the command line argument
PROMPT="$1"
# Set the model ID for GPT-3.5 (cheaper than gpt-4)
MODEL_ID="gpt-3.5-turbo"
@KushagraKarira
KushagraKarira / 2048.ino
Created June 26, 2022 17:55
Automate GNOME 2048 using Digispark Attiny85
#include "DigiKeyboard.h"
void setup() {
// don't need to set anything up to use DigiKeyboard
}
void loop() {
// this is generally not necessary but with some older systems it seems to
// prevent missing the first character after a delay:
@KushagraKarira
KushagraKarira / Megalovania.ino
Created October 1, 2021 15:31
Megalovania on Piezo
// Piezo ground base which is to be connected to the arduino ground. The smaller circle is to be connected to pin 9 or 11.
// Tested on Arduino UNO
int tonePin = 11; //or pin 9 - both have PWM
void setup() {
}
void midi() {
tone(tonePin, 293, 93.75);
delay(104.166666667);
@KushagraKarira
KushagraKarira / nightly.desktop
Created August 10, 2018 16:53
Firefox Nightly .desktop file
[Desktop Entry]
Version=1.0
Name=Nightly
Comment=Browse the World Wide Web
GenericName=Web Browser
Keywords=Internet;WWW;Browser;Web;Explorer
Exec=nightly %u
Terminal=false
X-MultipleArgs=false
Type=Application
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->