Skip to content

Instantly share code, notes, and snippets.

View garvit-exe's full-sized avatar
💻
Coding

Garvit Budhiraja garvit-exe

💻
Coding
View GitHub Profile
@garvit-exe
garvit-exe / index.html
Created February 27, 2025 13:44
GeoGuesser Game --- Replace `{YOUR-GOOGLE-MAPS-JAVSCRIPT-API-KEY}` with your actual API Key.
<!DOCTYPE html>
<html>
<head>
<title>GeoGuessr</title>
<script src="https://polyfill.io/v3/polyfill.min.js?features=default"></script>
<style type="text/css">
html,
body {
height: 100%;
margin: 0;
@garvit-exe
garvit-exe / main.go
Created January 30, 2025 16:47
web-service-gin
package main
import (
"net/http"
"github.com/gin-gonic/gin"
)
// album represents data about a record album.
type album struct {
@garvit-exe
garvit-exe / Terminal Emulator using Go (Pseudo Teletype).md
Last active October 31, 2024 14:17
Terminal Emulator using Go (Pseudo Teletype)

TERMINAL EMULATOR WRITTEN IN GOLANG

SUMMARY

DEMO

ScreenRecording2024-10-31at19 20 38-ezgif com-speed

Run `go install` and

- `gogitlocalstats -add /path/to/folder` will scan that folder and its subdirectories for repositories to scan
- `gogitlocalstats -email [email protected]` will generate a CLI stats graph representing the last 6 months of activity for the passed email. You can configure the default in `main.go`, so you can run `gogitlocalstats` without parameters.

Being able to pass an email as param makes it possible to scan repos for collaborators activity as well.

Above statements are not working.

@garvit-exe
garvit-exe / onscreen-keyboard.py
Created September 13, 2024 16:40
Onscreen Keyboard using Kivy
import kivy
kivy.require('2.3.0')
from kivy.app import App
from kivy.uix.vkeyboard import VKeyboard
class Key(VKeyboard):
player = VKeyboard()
class MyApp(App):
@garvit-exe
garvit-exe / backup_and_upload.sh
Created September 13, 2024 14:35
This script backs up important files, compresses them, and uploads them to a remote server via SSH while logging the entire operation.
#!/bin/bash
# Variables
SRC_DIRS="/var/www /home/user/documents /etc" # Directories to backup
BACKUP_NAME="backup_$(date +'%Y-%m-%d_%H-%M-%S').tar.gz" # Backup filename
BACKUP_DIR="/tmp/backups" # Temporary location for backup storage
REMOTE_USER="your_username"
REMOTE_HOST="your_remote_server.com"
REMOTE_DIR="/path/to/remote/backup/dir"
LOG_FILE="/var/log/backup.log"
@garvit-exe
garvit-exe / whois.py
Created June 21, 2024 19:36
A python snippet that describes the current me
class Intro:
def __init__(self):
self.username = 'garvit-exe'
self.name = 'Garvit Budhiraja'
self.role = 'Computer Science Student'
self.github = 'https://github.com/garvit-exe'
self.linkedin = 'https://linkedin.com/in/garvit-budhiraja'
self.code = {
'concepts': ['DSA', 'OOP', 'DBMS', 'ML', 'Computer Networking', 'Cloud Computing'],
'frontend': ['HTML', 'CSS', 'JavaScript', 'Bootstrap'],
@garvit-exe
garvit-exe / WINDOWS_batchFileRename.bat
Created June 21, 2024 04:58
Windows: Rename all files in a folder from *.* to *.jpeg
@echo off
setlocal enabledelayedexpansion
REM Change this path to the directory where your files are located
set target_path=C:\path\to\your\directory
cd /d "%target_path%"
for %%f in (*.*) do (
set "filename=%%~nf"