Skip to content

Instantly share code, notes, and snippets.

@gsathya
gsathya / gsoc_tor_proposal.textile
Created April 3, 2011 07:58
GSoC Proposal - Tor Project

Google Summer of Code Proposal : Orbot & ORLib

Sathyanarayanan, India
gsathya.ceg@gmail.com

March 24 2011

What project would you like to work on?

I would like to work on Orbot and ORLib.

Index: res/values-ca/strings.xml
===================================================================
--- res/values-ca/strings.xml (revision 24406)
+++ res/values-ca/strings.xml (working copy)
@@ -97,7 +97,7 @@
<string name="wizard_tips_tricks">Aplicacions per a usar-se amb Orbot</string>
<string name="wizard_tips_msg">T\'animem a descarregar-te &amp; utilitza aplicacions que sàpiguen com connectar-se directament a Orbot. Fes clic als botons de sota per instal·lar.</string>
- <string name="wizard_tips_otrchat">OTRCHAT - Client de missatgeria instantània segura per a Android</string>
+ <string name="wizard_tips_otrchat">GibberBot - Client de missatgeria instantània segura per a Android</string>
@gsathya
gsathya / Bye.rb
Created May 9, 2011 13:55
Polkabot
require 'bot'
module Bot
class Bye < Polkabot
def execute(msg,username,channel)
if msg.match('polkabot[:,] (bye|Bye|ciao|Ciao)$') then
puts msg
say "PRIVMSG ##{channel} :#{username}, Ciao"
end
@gsathya
gsathya / wizardActivity.java
Created June 2, 2011 17:24
This is the one I wrote
package org.torproject.android;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
@gsathya
gsathya / problems.textile
Created June 9, 2011 20:06
Problems with the wizard

Intro + Warning screenFIXED

  • BUG – When activity is restarted when viewing “warning” screen, intro screen is displayed instead.
  • Dirty flag variable approach won’t work – need to use SharedPreferences

Permissions screen

  • “next” button needs to be made un-clickable – my code needs review – doesn’t seem to work(Not sure, why though)FIXED
  • TorTransProxy.testOwnerModule(this) is called in the stepThree() – before pressing “Grant Permissions” – causes lag – should this be called later when the “Grant Permissions” button is pressed ?
  • Check flow of logic
@gsathya
gsathya / beats.rb
Created July 28, 2011 17:54
Beats Time
Shoes.app :width => 300, :height => 100 do
def calc_time
t = Time.new.utc.to_i%86400
t = t.to_s
t = "@ "+t[0..2]+" : "+t[3..5]
end
background "#BE8"
stack do
@title = title "New Internet Time!",
:align => "center",
@gsathya
gsathya / about.md
Created August 9, 2011 23:53 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@gsathya
gsathya / AnonBlipTVUploader.diff
Created September 2, 2011 15:04
GSoC work on Orbot
commit c732680861e7f9f8a6983c21d5eeaf0bd3c5491a
Author: Sathyanarayanan Gunasekaran <gsathya.ceg@gmail.com>
Date: Sat Aug 13 14:40:19 2011 +0530
Added progress bar dialog + new home screen
diff --git a/bin/BlipTVUploader.apk b/bin/BlipTVUploader.apk
index 37b1515..c81658b 100644
Binary files a/bin/BlipTVUploader.apk and b/bin/BlipTVUploader.apk differ
diff --git a/bin/classes.dex b/bin/classes.dex
@gsathya
gsathya / OrlibRoutingCode.java
Created September 2, 2011 15:21
Routing through orbot
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://blip.tv/file/post");
HttpHost proxy = new HttpHost("localhost", 8118);
httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);
@gsathya
gsathya / hackfest.textile
Created October 3, 2011 18:27
Event Format

Hackfest

Introduction -

A two/three night hackathon on free and open source software[Ex. Gnome, KDE, Wikimedia].
Mentors who have been contributing to said foss projects help new hackers get
started by giving them a primer on -

  • Intro to FOSS – the philosophy of that project
  • Download the source – using version control