Skip to content

Instantly share code, notes, and snippets.

View DeeprajPandey's full-sized avatar

Deepraj Pandey DeeprajPandey

View GitHub Profile
@DeeprajPandey
DeeprajPandey / Drive File Link Generator.gs
Created October 15, 2024 09:29
Generate a table of payment records from a drive folder with invoices formatted with details.
@DeeprajPandey
DeeprajPandey / open-sesame.sh
Last active August 6, 2024 18:35
Convert a device's public IP address to CIDR notation and update ingress rules on Oracle Cloud Infrastructure Network List to allow ingress from current device to devices configured on our VCN
#!/bin/bash
# Deepraj Pandey
# 06 August 2024
#
# Convert a device's public IP address to CIDR notation and update ingress rules on Oracle Cloud Infrastructure
# Network List to allow ingress from current device to devices configured on our VCN
#
# Dependencies: OCI cli tool installed and configured with a ~/.oci/config file
# Enable alias expansion and load custom aliases (oci setup)
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.

Final Presentation Prompts

Mesh-querading Surveillance in the Information Age

  • The Red/Blue team you belong to will be responsible for creating the video demonstration as part of your presentation. Ensure that every team member participates in the production process.
  • Everyone in a team can contribute in different ways to the research. Make sure you are dividing the roles appropriately and are collating the data you want to present.
  • Draw upon and focus on the technical knowledge you are slowly going to gain over the duration of the workshop. Use these insights to add a layer to your understanding of the complex issues you are discussing.

Surveillance and Ethics

Discuss the ethical boundaries of surveillance in maintaining public safety. Reflect on the smart city surveillance scenario, considering the trade-offs between individual privacy and communal security. What guidelines would you propose to balance these interests?

@DeeprajPandey
DeeprajPandey / main.cpp
Created April 26, 2024 11:07
ESP32 Getting Started with AsyncServer
#include <Arduino.h>
#include <ArduinoJson.h>
#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include <Wifi.h>
#define LED 2
const char *ssid = "[SSID]";
const char *pswd = "[PASSWD]";
@DeeprajPandey
DeeprajPandey / Master -> Main.md
Created November 11, 2023 16:54
Rename default branch from master to main (and push changes to remote)

How to rename default branch in git on older repos...

Scenario: old repo, checked out locally. You discover that the default branch is master.

Follow these instructions to rename the branch - locally and on your remote copies.

Instructions

  1. Make sure you are on master
@DeeprajPandey
DeeprajPandey / README.md
Created May 5, 2023 11:35
Testimony: a generic python unit testing wrapper.

Testimony: Bearing witness to your code's quality

Welcome to Testimony, the tool that holds a mirror up to our code and provides a platform for it to testify to its own correctness. We all write code we're not proud of, tucked away in private repositories, hoping it will never see the light of day. But with Testimony, you can bring that code out of the shadows and into the light of public scrutiny.

Testimony provides a simple and intuitive interface for testing Python functions and verifying their outputs against a set of input-output pairs. Simply define your test cases in a JSON file, and Testimony will automatically run your code against each one and report any failures.

With Testimony, you can be confident that your code is functioning as expected and producing the correct outputs for a variety of inputs. No more second-guessing or relying on manual testing – Testimony has got you covered.

So what are you waiting for? Let Testimony be your guide to writing better, more reliable code, and let your co

@DeeprajPandey
DeeprajPandey / logging_config.py
Created May 4, 2023 14:31
Python Logger Config
import logging
import logging.config
import os
LOGGING_CONFIG = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"standardFormatter": {
"format": "%(asctime)s %(levelname)s %(name)s: %(message)s",
@DeeprajPandey
DeeprajPandey / pset1_input_format.md
Created February 21, 2021 12:37
Input Format for problem pset 1

Problem 1: Pyramids of Asterisk

Input:

4

Output:

   *
  * *
 * * *
@DeeprajPandey
DeeprajPandey / a6_deeprajPandey.txt
Created September 23, 2020 05:39
[CS 1319 HW1] Your solution to the crosswords in question 6 should be in this format in a text file following this naming convention a6_<firstnameLastname>.txt
i
A B C
D E F
ii
G H I
J K L
iii
M N O