Skip to content

Instantly share code, notes, and snippets.

@yaronf
yaronf / render-i-d-xml
Created August 14, 2021 21:44
Render Internet Draft from XML
// ==UserScript==
// @name Render Internet Draft from XML 279509
// @version 1
// @resource xslFile https://tools.ietf.org/id/rfc2629.xslt
// @grant GM_getResourceText
// @match https://tools.ietf.org/id/*.xml
// @match https://www.ietf.org/archive/id/*.xml
// ==/UserScript==
console.log("Render I-D: Loaded")
@yaronf
yaronf / twitter-font.js
Last active August 10, 2022 21:01
GreaseMonkey user script: change Twitter font (solve Hebrew font issue)
// ==UserScript==
// @name Twitter change font 695737
// @description Change font for Hebrew content on Twitter
// @version 1
// @grant none
// @match https://twitter.com/*
// ==/UserScript==
// Note: obsolete!
@yaronf
yaronf / sign.py
Created December 13, 2017 07:28
Pre-sign an S3 URL - Python
# Boto setup:
# The file ~/.aws/credentials contains:
# [default]
# region=eu-west-1
# aws_access_key_id=xxxxxx
# aws_secret_access_key=xxxxxx
import boto3
import requests
from botocore.client import Config

Keybase proof

I hereby claim:

  • I am yaronf on github.
  • I am yaronf (https://keybase.io/yaronf) on keybase.
  • I have a public key whose fingerprint is D172 1E45 108F 2366 F805 20C4 2E90 7C03 C434 1E2D

To claim this, I am signing this object:

@yaronf
yaronf / ec2-metadata
Created March 7, 2012 16:48
ec2-metadata: a simple tool for exploring Amazon EC2 metadata, extended with network and VPC info
#!/bin/bash
#
#########################################################################
#This software code is made available "AS IS" without warranties of any #
#kind. You may copy, display, modify and redistribute the software #
#code either by itself or as incorporated into your code; provided that #
#you do not remove any proprietary notices. Your use of this software #
#code is at your own risk and you waive any claim against Amazon #
#Digital Services, Inc. or its affiliates with respect to your use of #
#this software code. (c) 2006-2007 Amazon Digital Services, Inc. or its #