Skip to content

Instantly share code, notes, and snippets.

@drunkrhin0
drunkrhin0 / install_ruby_with_rbenv.md
Last active October 4, 2023 07:46 — forked from barnett/install_ruby_with_rbenv.md
Installing a new Ruby with rbenv on Mac OS

Install a new Ruby with rbenv on Mac OS

If you're doing stuff with Ruby on a Mac, e.g. installling Jekyll or something, by default you'll end up having to use the sudo command to do stuff, since the permission to modify the default config is not available to your user account.

This sucks and should be avoided. Here's how to fix that.

Install Homebrew

To make this better, we are going install a new, custom Ruby. This used to be a big, scary thing, but thanks to the awesome tools Homebrew and rbenv, it's a snap.*

@drunkrhin0
drunkrhin0 / SendDocViaGmail.js
Created September 29, 2023 08:31
Send a Google Doc with Google App script at a random time to someone. Has a 70% probability of sending it Between Midnight and 6AM when they're sleeping
/*
Set the Subject & recipient email.
Change the prbability times if you feel inclined.
Go to Extensions -> App Script and dump this code in so it fetches it dynamically
App uses.gs but syntax highlight with JS.
*/
function sendDocByEmail() {
// Fetch the ID of the document where the script editor has been opened
var docId = DocumentApp.getActiveDocument().getId();

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@drunkrhin0
drunkrhin0 / Active_Directory_dump_n_crack.md
Last active July 21, 2020 03:32 — forked from 7MinSec/Active_Directory_dump_n_crack.md
Active Directory hash dump n' crack methodology

Creating AD backup dump of user accounts and hashes

Upgrade to latest version of PowerShell

Check your version with:

$Psversiontable.psversion

If you are below Major: 5, Minor:1 head to Microsoft's download site to get the latest.