Skip to content

Instantly share code, notes, and snippets.

From 199ce7b8f86c815500c0621610daaa2b4fac04ba Mon Sep 17 00:00:00 2001
From: Sathyanarayanan Gunasekaran <[email protected]>
Date: Sat, 24 Mar 2012 11:55:39 +0530
Subject: [PATCH] Move foreign key to cms_resource_keywords
---
modules/eden/cms.py | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/modules/eden/cms.py b/modules/eden/cms.py
From d31badd2632d8f96ba1a71ca208c1b4498f6d5da Mon Sep 17 00:00:00 2001
From: Sathyanarayanan Gunasekaran <[email protected]>
Date: Sat, 24 Mar 2012 11:20:04 +0530
Subject: [PATCH] Add keywords to tasks
Support associating keywords (text strings) with tasks
---
modules/eden/cms.py | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 44 insertions(+), 0 deletions(-)
From 6a11e821214616994e6eff5da7451eeccd58496b Mon Sep 17 00:00:00 2001
From: Sathyanarayanan Gunasekaran <[email protected]>
Date: Sat, 24 Mar 2012 11:20:04 +0530
Subject: [PATCH] Add keywords to tasks
Support associating keywords (text strings) with tasks
---
modules/eden/cms.py | 42 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 42 insertions(+), 0 deletions(-)
class MicrodescriptorExitPolicy:
def __init__(self):
self.ports = []
self.policy = None
# assume it's an accepted list of ports
self.is_accept = True
self.is_policy = False
def __str__(self):
# usage - $python trainglewords.py words.txt
import sys
from math import *
file = open(sys.argv[1], 'r')
data = file.read()
file.close()
alpha = {}
FAIL: test_cached_microdesc_consensus
----------------------------------------------------------------------
Traceback:
File "/Users/sathya/Documents/stem/test/integ/descriptor/networkstatus.py", line 81, in test_cached_microdesc_consensus
self.fail()
AssertionError: None
@gsathya
gsathya / flashproxy-gadget.md
Created January 9, 2013 19:02
set up a flashproxy mediawiki gadget
  • Log in to en.wikipedia.org
  • Go to Preferences -> Appearance -> Custom JavaScript
  • You will end up editing common.js; insert the following code and save it -
$('#p-personal ul').append('<li><iframe src="//crypto.stanford.edu/flashproxy/embed.html" width="80" height="15" frameborder="0" scrolling="no"></iframe></li>')
  • Refresh the page, you will be able to see a slightly confusing dark blue flashproxy badge near the "Log Out" link.
diff --git a/app/controllers/register_controller.rb b/app/controllers/register_controller.rb
index a53db23..64fdd74 100644
--- a/app/controllers/register_controller.rb
+++ b/app/controllers/register_controller.rb
@@ -10,10 +10,10 @@ class RegisterController < ApplicationController
@users = @search.results
unless @users.blank?
@user = @users[0]
- @college = CollList.college(@user.college).coll_name
- Write a `chutney check` - #8530
- Sending and receiving Tor data - #8531
- Test tor features
- Coverage of succeding testing things on Linux using Chutney - code coverage by running chutnet for 10-15 mins
- Hidden services
- Write a daemon
+ control all tors
+ get unified log
+ easily change tors confs
- tors confs won't get written to file
@gsathya
gsathya / status.py
Last active December 20, 2015 15:08
from datetime import datetime
from willie import module
# use this to separate different parts of the status
DELIMITER = ";"
@module.commands('status')
def status(bot, trigger):
status_msg = []
# add name