Skip to content

Instantly share code, notes, and snippets.

@rohanp2051
rohanp2051 / Mosiki-Compentence-Test.java
Last active June 16, 2022 12:41
1.) get current date 2.) get current time 3.) check if a string is present in a list<String>
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;
public class MosikiTasks1 {
static void currentDate() { //Current Date Method
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("MM/dd/uuuu");
LocalDate localDate = LocalDate.now();
@rohanp2051
rohanp2051 / iterm2-dracula.md
Last active December 17, 2022 23:18 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Dracula color scheme + Powerlevel10k + Extras - (macOS)

Images

Default State

CleanShot 2021-10-24 at 23 49 00@2x

Powerlevel10K

CleanShot 2021-10-25 at 00 03 20@2x

Ligatures

@rohanp2051
rohanp2051 / base64-clipboard-decoder.py
Last active June 16, 2022 12:39
Decodes Base64 strings and copies them to keyboard. Single/Double encoded URLs copied to clipboard and opened in the default browser.
#!/usr/local/bin/python3
import base64
import subprocess
import webbrowser
# Converts a string from Base64 to ASCII
def converter(message):
message_bytes = message.encode("ascii")
base64_bytes = base64.b64decode(message_bytes + b'===')
base64_message = base64_bytes.decode("ascii")