Skip to content

Instantly share code, notes, and snippets.

@guyru
guyru / outbrained.user.js
Last active August 29, 2015 14:04
Outbrained - Greasemonkey script to remove tracking URLs from Outbrain links.
// ==UserScript==
// @name Outbrained
// @namespace http://www.guyrutenberg.com
// @description Removes annoying tracking outbrain links.
// @include http://www.haaretz.co.il/*
// @include http://www.ynet.co.il/*
// @include http://www.calcalist.co.il/*
// @include http://www.themarker.com/*
// @version 1.0
// @grant none
@guyru
guyru / qr_code_skeleton.recipe
Last active August 29, 2015 14:16
Skeleton for adding a QR code at the end of articles
from calibre.web.feeds.news import BasicNewsRecipe
from calibre.ebooks.BeautifulSoup import BeautifulSoup, Tag
import urllib
class QrCodeSkeletonRecipe(BasicNewsRecipe):
# If True, it will add a QR code with the article's URL at the
# end of each article.
qr_code = True
# If keep_only tags is used, don't forget to add the qr-code to it.
// ==UserScript==
// @name Collins download pronunciation links
// @namespace http://www.guyrutenberg.com
// @description Add direct audio controls to Collin's Dictionary pronunciations.
// @include http://www.collinsdictionary.com/dictionary/*
// @version 1.0
// @grant none
// ==/UserScript==
//
//
@guyru
guyru / en_IL
Last active April 22, 2016 07:33
comment_char %
escape_char /
% This file is part of the GNU C Library and contains locale data.
% The Free Software Foundation does not claim any copyright interest
% in the locale data contained in this file. The foregoing does not
% affect the license of the GNU C Library as a whole. It does not
% exempt you from the conditions of the license if your use would
% otherwise be governed by that license.
@guyru
guyru / tarsum
Created April 23, 2016 17:38
A small utility to compute checksums on every file inside a tar archive.
#! /usr/bin/env python
# Copyright (C) 2008-2009 by Guy Rutenberg
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
// ==UserScript==
// @name Bank Hapoalim
// @description Workaround bugs in Bank Hapoalim website to display pdf messages.
// @author Guy Rutenberg
// @namespace http://www.guyrutenberg.com
// @include https://login.bankhapoalim.co.il/portalserver/mailInbox#/folders/0
// @include https://login.bankhapoalim.co.il/ng1-portals/rb/he/mails#/folders/0
// @run-at document-idle
// @version 1.1
// @grant none
Monitoring activity from the power daemon. Press Ctrl+C to cancel.
[09:22:36.096] device added: /org/freedesktop/UPower/devices/phone_3_1x3x2
[09:22:41.311] daemon changed:
[09:22:41.311] daemon changed:
[09:22:41.311] daemon changed:
[09:22:41.311] daemon changed:
[09:22:41.311] device changed: /org/freedesktop/UPower/devices/line_power_AC
[09:22:41.311] device changed: /org/freedesktop/UPower/devices/line_power_AC
[09:22:41.311] device changed: /org/freedesktop/UPower/devices/line_power_AC
[09:22:41.311] device changed: /org/freedesktop/UPower/devices/line_power_AC
@guyru
guyru / rclone-dropbox.service
Last active September 9, 2022 08:23
Autostart rclone mount using systemd
[Unit]
Description=Dropbox (rclone)
AssertPathIsDirectory=%h/Dropbox
# Make sure we have network enabled
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/rclone mount --vfs-cache-mode full Dropbox: Dropbox