This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var huginn = window.location.protocol + "//" + window.location.host | |
var auth_key = document.getElementsByName("csrf-token")[0].content; | |
for (var a in window.agentPaths) { | |
var url = huginn + window.agentPaths[a].match(/\/agents\/\d+/)[0] + "/remove_events" | |
console.log(url) | |
$.post(url,"_method=delete&authenticity_token=" + auth_key,function(data,success,xhr){ | |
console.log("finish",url) | |
}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# If you are new to arch, I encourage you to at least read and understand what | |
# this script does befor blindley running it. | |
# That's why I didn't make a one-liner out of it so you have an easier time | |
# reading and understanding it :) | |
# | |
# This scripts purpose is purly to save you a few seconds on your new installation. | |
# | |
# Enjoy your time on an awesome system. Arch FTW! |