Skip to content

Instantly share code, notes, and snippets.

View apurvmishra99's full-sized avatar
💻
Working away at Metaview.ai

Apurv Mishra apurvmishra99

💻
Working away at Metaview.ai
View GitHub Profile
@apurvmishra99
apurvmishra99 / firefox_unlock.sh
Created March 1, 2022 15:50
Unlock your firefox profile on DICE
#!/bin/bash
files=`find ~/.mozilla -name "*lock"`
for file in `echo $files`
do
echo "removing $file..."
rm "$file"
done
@apurvmishra99
apurvmishra99 / sshDICE.md
Last active January 24, 2025 13:24
Setup for easy ssh experience with DICE machines in University of Edinburgh

SSH Config to access any DICE machines easily

Remote access to DICE machines is a bit painful, you first need to connect to a ssh gateway, enter your password and then do ssh student.login to have proper access. Also, directly accessing any of the DICE lab computers doesn't work. We can solve all these probelms by editing our ~/.ssh/config file and kerberos.

Using kerberos, will make sure you won't need to type your password more than once per day while working remotely. The instructions on how to set it up are here.

After you have set it up open up your ssh config file which is usually in ~/.ssh/config. Then add the following lines.

@apurvmishra99
apurvmishra99 / undollarify
Last active August 18, 2019 15:17
Undollarify: Copy code from the internet with "$" in front and execute it without any worry.
#!/bin/sh
exec "$@"

Keybase proof

I hereby claim:

  • I am apurvmishra99 on github.
  • I am apurvmishra (https://keybase.io/apurvmishra) on keybase.
  • I have a public key ASBjZc8Zryn9Bqo_yrbSTbjGMSkYweem6aMbbxOAlI6hQgo

To claim this, I am signing this object: