Skip to content

Instantly share code, notes, and snippets.

@ouroborus
ouroborus / reset-LCore.ps1
Created May 6, 2017 21:39
Restart LCore.exe when it's using to much memory
# LCore.exe (Logitech's tool for configuring and customizing their devices) has a pretty bad memory leak.
# This script kills LCore when it starts using more that 256MB, cleans up the task tray, then restarts LCore.
# It uses the same command line used to initially start LCore.
# Set LCore to start when Windows starts.
# (If you need to start it manually, include the /minimized argument: LCore.exe /minimized )
# Save this file to %USERPROFILE%\command\reset-LCore.ps1
# Create a Task Scheduler item with triggers for:
# every hour after logon, and
# every hour after created or modified.
@ouroborus
ouroborus / anti-blockAdBlock.user.js
Last active March 30, 2016 15:42
Greasemonkey script to block Wired's ad block blocking.
// ==UserScript==
// @name anti-blockAdBlock
// @include http://www.wired.com/*
// @include https://www.wired.com/*
// @grant none
// ==/UserScript==
window.addEventListener('load', function(event){
var $ = jQuery,
$target = $('section.post-container');
@ouroborus
ouroborus / Hide_Suggested_post_on_Facebook.user.js
Created March 30, 2016 15:30
Greasemonkey script to hide "Suggested post" entries on Facebook.
// ==UserScript==
// @name Hide "Suggested post" on Facebook
// @include https://www.facebook.com/*
// @grant none
// ==/UserScript==
(function(){
var watcher = function(){
var target=document.querySelector('div#stream_pagelet>div[id^="topnews_main_stream_"]>div[id^="feed_stream_"]');
if(target) {
var mangle=function(){