Skip to content

Instantly share code, notes, and snippets.

View martgil's full-sized avatar

Mart martgil

  • 15:17 (UTC +08:00)
View GitHub Profile
<script>
window.opener.location = 'http://evil.com/'
</script>
// Simple javascript code for undoing retweets on twitter.com user profile.
setInterval(
function() {
document.querySelector('[data-testid="unretweet"]').click()
document.querySelector('[data-testid="unretweetConfirm"]').click()
},
500
)
@martgil
martgil / ubuntu-settings.md
Created June 27, 2023 05:16
Random Ubuntu settings that I find useful.

Launch a new window in the center of the screen

gsettings set org.gnome.mutter center-new-windows true

@martgil
martgil / README.md
Created April 22, 2022 11:45 — forked from brennanMKE/README.md
Create SSH Key on Mac for Xcode

Create SSH Key on Mac for Xcode

The docs for GitHub show a command to create a key with the ed25519 encryption method which is not allowed by Xcode. Even if you are not using the Source Control features in Xcode you will often need to use an account with GitHub when you are consuming Swift packages which are pulled from GitHub.

For SSH keys there are 4 algorithms.

  • 🚨 DSA: This is an older algorithm which is no longer supported and is superceded with more modern algorithms.
  • ⚠️ RSA: This algorithm was an improvement but it is now outdated and a more modern method should be used.
  • 👀 ECDSA: Another improvement which is dependent on your computer's ability to generate random numbers.
  • ✅: Ed25519: The most recommended public-key algorithm today which you should use with GitHub.