Skip to content

Instantly share code, notes, and snippets.

@EitanBlumin
EitanBlumin / simplest_alternative_to_sp_MSforeachdb.sql
Last active August 29, 2022 10:05
The simplest possible alternative to sp_MSforeachdb
/*
Author: Eitan Blumin | https://eitanblumin.com | https://madeiradata.com
Description:
This is the simplest possible alternative to sp_MSforeachdb which is not too great.
Instructions:
1. Replace the contents of the @Command variable with the command you want to run INSIDE each database.
2. Replace the contents of the @Parameters variable with the parameters you want the command to receive.
3. Add parameters as needed, given @p1 as an example.
4. Change the database filter predicates in the cursor declaration, as needed.
@dealingwith
dealingwith / trello-stylish.css
Last active October 22, 2020 03:03
Trello Stylish
body, button, html, input, select, textarea {
font-family: sans-serif;
font-size: 0.9rem;
}
.board-header-btn.board-header-btn-enabled.js-star-board {
background-color: transparent;
}
.board-header-btn.board-header-btn-enabled.js-star-board span:before {
@davestewart
davestewart / workflowy x 2.js
Last active February 20, 2024 16:25
WorkFlowy x 2 - a browser bookmarklet to give you a dual panel WorkFlowy view
javascript:
`
WorkFlowy x 2
=============
- A browser Bookmarklet to give you a dual panel WorkFlowy view
Features / Usage:
@IzzySoft
IzzySoft / ff57_addons.md
Last active June 1, 2022 16:40
Firefox 57+ Addon Compatibility / Replacements

Mozilla is doing it again: detering the addon developers who once made it „big“ (last time was when they forced them from XUL to their new „stable API“ for „long-time compatibility“ – which then proved to change as often as the XUL did before). So again, many of them are „jumping boat“, as they a) have no time to migrate to the new WebExtensions, b) WebExtensions don't offer the APIs required to perform the tasks needed by their addon, c) WebExtensions not even being ready yet (with just a couple of weeks left to the deadline, the API is still changing and far from being completed).

I won't start a rant on „if I wanted a browser that looks like Chrome (Aurora with FF29), behaves like Chrome (only signed addons via a central store), and now feels like Chrome, I'd use Chrome“. Of course that's true, and having to re-configure ~80% of the browser of course lets me consider changing to a different browser (certainly not Chrome, though). But first let's look where we stand (comments, additions and suggestions wel

/*****************************************************************************
MIT License, http://www.opensource.org/licenses/mit-license.php
Contact: help@sqlworkbooks.com
Copyright (c) 2018 SQL Workbooks LLC
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom
@MrYar
MrYar / Firefox-68
Last active July 4, 2024 22:52 — forked from haasn/about:config.md
Firefox telemetry and spy removal
// Turn off "Sends data to servers when leaving pages"
user_pref("beacon.enabled", false);
// Prevention of some telemetry related to the newtab
user_pref("browser.newtabpage.directory.ping", "");
user_pref("browser.newtabpage.directory.source", "");
user_pref("browser.newtabpage.enhanced", false);
// "In the release channels the Mozilla location service is used to help in figuring out regional search defaults."
// Which means sending collectable data
@steinwaywhw
steinwaywhw / One Liner to Download the Latest Release from Github Repo.md
Last active July 26, 2024 14:30
One Liner to Download the Latest Release from Github Repo
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
@Wizmann
Wizmann / workflowy-with-image.js
Last active June 14, 2023 13:29
workflowy-with-image.js
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://workflowy.com/*
// @grant none
// ==/UserScript==
/* jshint -W097 */
@idbrii
idbrii / gist:e00b2c62120bc002ec1d
Created March 14, 2015 14:08
BugMeNot Bookmarklet
// The bookmarklet you can find online for bugmenot doesn't work. Looks like
// bugmenot now wants just the hostname instead of the full url. Here's one
// that works.
javascript:(function() { var url = ('http://www.bugmenot.com/view/' + escape(location.hostname)); w = open(url, 'w', 'location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=500,height=400,modal=yes,dependent=yes'); if (w) { setTimeout('w.focus()', 1000) } else { location = url } })();
@Ede123
Ede123 / userChrome.css
Last active February 11, 2020 11:06
CSS code to get Firefox' Australis theme usable (features: tabs on bottom; rectangular tabs; small space saving back/forward button; tweaked colors in tabbar)
/* FIXES TO AUSTRALIS THEME */
/* bookmarks toolbar below adress bar */
#PersonalToolbar {
-moz-box-ordinal-group: 2 !important;
}
/* tabs bar below adress bar and bookmarks toolbar */
#TabsToolbar {
-moz-box-ordinal-group: 3 !important;
margin: 0 !important;
padding: 0 !important;