Skip to content

Instantly share code, notes, and snippets.

View titanous's full-sized avatar

Jonathan Rudenberg titanous

View GitHub Profile
@titanous
titanous / twilight.py
Created June 22, 2010 02:57
Twilight pygments style
# -*- coding: utf-8 -*-
"""
pygments.styles.twilight
~~~~~~~~~~~~~~~~~~~~~~~~
A clone of the Twilight style from TextMate.
"""
from pygments.style import Style
from pygments.token import Keyword, Name, Comment, String, Error, \
// ==UserScript==
// @name Declutter Twitter
// @namespace https://titanous.com
// @description Removes "Who To Follow", "Trends" and the legalese/footer
// @include http://twitter.com/*
// @include http://www.twitter.com/*
// @include https://twitter.com/*
// @include https://www.twitter.com/*
// @grant none
// ==/UserScript==
// Copyright 2020 Google LLC.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Derived from https://github.com/salrashid123/oauth2/blob/4342bfaf8491f79fce4c951dff55384ad1f90f1f/google/impersonate.go
package impersonate
import (
"context"
"encoding/json"
@titanous
titanous / # macvim - 2017-09-25_15-22-02.txt
Created September 25, 2017 19:27
macvim on macOS 10.12.6 - Homebrew build logs
Homebrew build logs for macvim on macOS 10.12.6
Build date: 2017-09-25 15:22:02
@titanous
titanous / ppp-v3.rb
Created March 5, 2009 20:57
Ruby implementation of Steve Gibson's 'Perfect Paper Passwords' v3
# Perfect Paper Passwords v3
# For more info see http://grc.com/ppp
#
# The MIT License
#
# Copyright (c) 2009 Jonathan Rudenberg
# Original version by Gavin Stark (http://is.gd/lYIf)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>vc-build-version</key><string>1W16</string>
<key>vc-build-revision</key><string>198959</string>
<key>id-validation-cert</key><string>https://identity.ess.apple.com/WebObjects/TDIdentityService.woa/wa/validationCert</string>
<key>id-initialize-validation</key><string>https://identity.ess.apple.com/WebObjects/TDIdentityService.woa/wa/initializeValidation</string>
<key>id-provision-phone-number</key><string>https://identity.ess.apple.com/WebObjects/TDIdentityService.woa/wa/provisionPhoneNumber</string>
<key>id-provision-ds-id</key><string>https://profile.ess.apple.com/WebObjects/VCProfileService.woa/wa/idsProvisionEmails</string>
package main
import (
"bytes"
"fmt"
"net"
"net/http"
"os"
"sort"
"strconv"
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"crypto/x509/pkix"
"encoding/pem"
"fmt"
"math"
package main
import (
"fmt"
"os"
"github.com/titanous/goamz/aws"
"github.com/titanous/goamz/s3"
)
@titanous
titanous / json.go
Last active December 19, 2015 05:39
Pretty JSON syntax errors in Go
package main
import (
"bytes"
"encoding/json"
"io"
"strconv"
)
type JSONSyntaxError struct {