Skip to content

Instantly share code, notes, and snippets.

View HarshitRuwali's full-sized avatar
👨‍💻
Learning New Things

Harshit Ruwali HarshitRuwali

👨‍💻
Learning New Things
View GitHub Profile
@HarshitRuwali
HarshitRuwali / obsidian-docx.md
Last active December 3, 2024 15:52
Export Obsidian/Markdown notes to docx

Firstly use obsidian-export to export the Obsidian Vault/Notes to regular markdown files.

Once after exporting in the regular markdown format use the following script to convert the markdown to docx. This will require Pandoc.

pandoc md-file.md \
-o out-docx-file.docx \
--from markdown+yaml_metadata_block+raw_html \
--top-level-division=chapter
@HarshitRuwali
HarshitRuwali / brigdes-tor-mac.md
Last active April 5, 2025 09:51
Using TOR obsf4 bridges from torrc for Mac's.

Install tor via HomeBrew and start the tor serivce.

brew install tor && brew services start tor

And to use obsf4 proxy we need to install its library/ Use HomeBrew for installation of the library.

brew install obfs4proxy
@HarshitRuwali
HarshitRuwali / digispark.md
Created April 10, 2021 11:52
Run digispark on mac

The issue with digispark attiny85 was that it was detectig(the light was on) with usb adapter but I was not able to upload the programs in it, IDE was not at all detecting the hardware. And the boarb was working fine in the windows environment.

So the following commands worked for me:

cd ~/Library/Arduino15/packages/digistump/tools/micronucleus/2.0a4/
chmod a+wx launcher
chmod a+wx micronucleus
@HarshitRuwali
HarshitRuwali / check.sh
Last active March 27, 2021 17:01
shasum checker bash script
#!/bin/bash
if [ "$1" == "-h" ] || [ -z "$1" ]
then
echo "$(basename "$0") [-h] [-f file] [-a algo] [-c hash] -- script to calculate and verify the shasums of the passed file
where:
-h show this help text
-f pass the file name
-a pass the algorithm to perform eg, 1 or 256 or 512
@HarshitRuwali
HarshitRuwali / VMWare_Fusion_Export.md
Last active December 20, 2020 06:13
Export the VMWare Fusion VMs to ova or ovf.

Exporting VMWare Fusion VMs

Firstly make sure that you have powered off your VM.

Now run the following commands.

cd /Applications/VMware\ Fusion.app/Contents/Library/VMware\ OVF\ Tool/

This takes us to the OVF tool in VMWare Fusion app(its dosnt have GUI support). Its same for all Mac users.

Keybase proof

I hereby claim:

  • I am harshitruwali on github.
  • I am harshitruwali (https://keybase.io/harshitruwali) on keybase.
  • I have a public key ASAsBnh00hcwkv58fIeytFKQ5K6mkX_FzExHPJgsYNTnpAo

To claim this, I am signing this object:

@HarshitRuwali
HarshitRuwali / brute-force.py
Created October 3, 2020 21:33
Brute force the password from a given set of word-list.
import re
import requests
# from __future__ import print_functions
def open_resources(file_path):
return [item.replace("\n", "") for item in open(file_path).readlines()]
host = 'http://10.10.10.191'
login_url = host + '/admin/login'
@HarshitRuwali
HarshitRuwali / insta-download.py
Created September 30, 2020 12:11
Download the instagram videos and images easily.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from datetime import datetime
import requests
from tqdm import tqdm
import re
def download():
@HarshitRuwali
HarshitRuwali / non-restoring.py
Created September 22, 2020 13:22
Division of two unsigned decimal integers.
# Python program to divide two
# unsigned integers using
# Non-Restoring Division Algorithm
# Function to add two binary numbers
def add(A, M):
carry = 0
Sum = ''
@HarshitRuwali
HarshitRuwali / ip.sh
Last active November 24, 2020 19:42
Check whether you have got a VPN activated or not.
#!/bin/sh
# Checking for VPN establishment
# TO DO: get your ip when not connected to a VPN, and replace the first 6 digits with the [a]bc[.][d]ef[.][g]hi[.]
# for ex if my ip is 123.456.789.000 format as [1]23[.][4]56[.]
# also change the name name of yor country.
RED='\033[0;31m'
GREEN='\033[0;32m'