Skip to content

Instantly share code, notes, and snippets.


Crowbar Solutions crowbarsolutions

View GitHub Profile
crowbarsolutions / _README.txt
Last active January 25, 2018 17:58
Delete Reddit Comments
View _README.txt
- Using your favorite browser, goto your reddit profile page and open the comments list
- Open the browser developer tools (F12)
- Paste the code in this gist into the console and hit enter
- Observe how comments are deleted one by one
- When all comments on the page have been deleted, refresh the page and execute the script again on the remaining comments
crowbarsolutions / gist:d5ae9997bb86168515a5764ee587275b
Created December 8, 2016 02:26
Deletes all reddit comments/posts/whatever on your user page
View gist:d5ae9997bb86168515a5764ee587275b
(function deleteComments() {
var deleteButtons = document.querySelectorAll('[data-event-action="delete"]');
[], function(element) {;
var trigger = setInterval(function(){
var yesButton = document.querySelector('.yes');
if (yesButton === null) {
var nextButton = document.querySelector(' > a');
View reinstall-preinstalledApps.ps1
# Get all the provisioned packages
$Packages = (get-item 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Applications') | Get-ChildItem
# Filter the list if provided a filter
$PackageFilter = $args[0]
if ([string]::IsNullOrEmpty($PackageFilter))
echo "No filter specified, attempting to re-register all provisioned apps."
crowbarsolutions / CustomDataSourceRequestAttribute.cs
Last active March 10, 2021 20:39
Have Kendo or Telerik grid date time filters to ignore or not account for the time in the underlying data
View CustomDataSourceRequestAttribute.cs
using System.Web.Mvc;
using MyProject.ModelBinders;
using Kendo.Mvc.UI;
namespace MyProject.CustomAttributes
public class CustomDataSourceRequestAttribute : DataSourceRequestAttribute
public override IModelBinder GetBinder()