Skip to content

Instantly share code, notes, and snippets.

Avatar

Ville Nousiainen Dregu

  • Herwood
View GitHub Profile
View Spel2.asl
Go away, moved to https://github.com/Dregu/LiveSplit-Spelunky2
View alchemy.ps1
$lastseed = 0
while($true) {
$seed = Select-String -Path ".\logger.txt" -Pattern 'World seed: (.*)$' | foreach { $_.Matches.Groups[1].Value }
if ($seed -and $seed -ne $lastseed) {
$seed
$lastseed = $seed
$a = Invoke-WebRequest -Uri "http://94.172.33.134:4921/noita?${seed}&hey_you_reading_this_you_will_find_literally_nothing_and_just_waste_your_time" | Select-Object -ExpandProperty Content
$a -replace ",","`n " -replace ";","`n"
}
sleep 5
@Dregu
Dregu / Noita.asl
Last active Oct 7, 2019
Noita Scriptable Auto Splitter (+seed/kill display) for LiveSplit
View Noita.asl
/*
* Noita Scriptable Auto Splitter + seed display + kill counter
* Starts on spawn
* Splits on work
* Resets on death or new game
*
* You have to edit the logPath below to point to your installation for this to actually work, I don't know where your game is.
* Get https://github.com/hawkerm/LiveSplit.ASLVarViewer to display world seed and/or kill counter to your stream, mom or whatever.
*/
View seed.ps1
https://github.com/Dregu/NoitaScripts
@Dregu
Dregu / LiveSplit.UntitledGooseGame.asl
Last active Nov 14, 2019
LiveSplit Scriptable Auto Splitter for Untitled Goose Game
View LiveSplit.UntitledGooseGame.asl
/*
* THIS IS MERGED INTO LIVESPLIT NOW, GO AWAY
*
* AutoSplitter for Untitled Goose Game
* Works with debug log found in appdata and some memory poking
* Start: On first honk.
* Split: On intro logo and all goals, can be disabled individually.
* Reset: On main menu, level reset and/or new game.
* Menuing and loading pauses the timer when comparing against game time.
*/
View index.js
#!/usr/bin/env node
var gst = require('gstreamer-superficial');
const port = process.env.UDPPORT || 5000
const timeout = process.env.UDPTIMEOUT || 500
var pipeline = new gst.Pipeline('udpsrc name=src port='+port+' timeout='+timeout+'000000 ! application/x-rtp,media=audio,clock-rate=44100,encoding-name=L16,channels=2,payload=96 ! rtpL16depay ! audioconvert ! autoaudiosink');
var src = pipeline.findChild('src');
pipeline.pollBus((msg) => {
if (msg.name == 'GstUDPSrcTimeout') {
console.log(new Date, 'source timeout in port ' + src.port);
View reddit_auto_expand.user.js
// ==UserScript==
// @name Reddit Auto Expand and keyboard navigation
// @namespace http://www.reddit.com/
// @version 0.1
// @description Auto expand all expandos on new reddit and a keyboard navigation that's not retarded.
// @author Dregu
// @match https://www.reddit.com/*
// @grant none
// ==/UserScript==
@Dregu
Dregu / fuck-twitch.user.js
Last active Aug 3, 2020
Userscript to hide stupid fucking streamers or games from Twitch
View fuck-twitch.user.js
// ==UserScript==
// @name Fuck Twitch
// @namespace FuckTwitch
// @description Hide stupid fucking streamers or games from Twitch
// @version 1.0
// @author Dregu
// @match https://*.twitch.tv/*
// @run-at document-start
// ==/UserScript==
@Dregu
Dregu / warmup.png
Last active Mar 25, 2018
Warmup screenshot