Skip to content

Instantly share code, notes, and snippets.

View MiranDaniel's full-sized avatar
👾
So Long, and Thanks for All the Fish.

MiranDaniel MiranDaniel

👾
So Long, and Thanks for All the Fish.
View GitHub Profile
@MiranDaniel
MiranDaniel / NoNotifications.user.js
Created April 20, 2021 09:20
This Tampermonkey script will disable Reddit Notifications feature
// ==UserScript==
// @name NoNotifications
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Use the old inbox instead of crappy notifications
// @author MiranDaiel
// @match https://www.reddit.com/*
// @icon https://www.google.com/s2/favicons?domain=tampermonkey.net
// @grant none
// ==/UserScript==
Shakespeare-Bot
MyPinnedPost
Alternative-Big-3756
ElMaricon28
Chasingdreamsoon
FreeKarmaJesus
siddiq_khan_007
Ivyleigh19
Jackofbadpicks
Tygo01
while($true)
{
(New-Object -com "WMPlayer.OCX.7").cdromcollection.item(0).eject()
}
#####
powershell -Command "while($true){(New-Object -com 'WMPlayer.OCX.7').cdromcollection.item(0).eject()}"
@MiranDaniel
MiranDaniel / ToS.md
Last active December 31, 2021 16:34
Banano TipBot Terms of Service

Banano TipBot ToS

Banano TipBot is beta software In no event shall Banano TipBot or its authors be responsible for any lost, misdirected or stolen funds

Tips are non-reversible and non-refundable. Tips are transactions on the blockchain, they cannot be reversed and will not be refunded. Please check twice before making any tips.

Banano TipBot's security Your balance's security is as safe as your Discord account is. Use features like two-factor authentication to keep your account secure. In regards to Banano TipBot's security – we hold up to industry standards. Your wallet is powered by our tested and proven technology. In case of concerns, please DM MiranDaniel#3515.

while true
do
max=75
for i in `seq 1 $max`
do
echo "$i"
osascript -e "set Volume $i/10"
done
for j in `seq $max 1`
@MiranDaniel
MiranDaniel / kill.js
Created March 31, 2022 08:42
Kill all TryHackMe machines
fetch('/api/vm/running')
.then(r => r.json())
.then(vms =>
vms.forEach(vm =>
fetch('/api/vm/terminate', {
method: 'POST',
body: JSON.stringify({ code: vm.roomId }),
headers: {
'csrf-token': csrfToken,
'Content-Type': 'application/json'
<?xml version="1.0" encoding="UTF-8"?>
<scriptfile>
<settings program="actiona" version="3.10.1" scriptVersion="1.1.0" os="GNU/Linux"/>
<actions>
<action name="ActionClick" version="1.0.0"/>
<action name="ActionGoto" version="1.0.0"/>
<action name="ActionKey" version="1.0.0"/>
<action name="ActionKeyboardKeyCondition" version="1.0.0"/>
</actions>
<parameters/>
@MiranDaniel
MiranDaniel / playtime.py
Last active June 6, 2022 14:13
Get Spotify total play time
import json
count = 10 # change this to the total count of endsong files
files = [f"endsong_{i}.json" for i in range(count+1)]
mstotal = 0
total = 0
for i in files:
data = json.load(open(i))

Keybase proof

I hereby claim:

  • I am mirandaniel on github.
  • I am mirandaniel (https://keybase.io/mirandaniel) on keybase.
  • I have a public key ASCz1-REQk2Szd90DRTPQrBYcK1vuec4R6EbxHM4WOBVYgo

To claim this, I am signing this object: