Skip to content

Instantly share code, notes, and snippets.

View debloper's full-sized avatar

Soumya Deb debloper

View GitHub Profile
@debloper
debloper / mediawiki.md
Last active August 29, 2015 13:56
Script examples for regular server deployments

Short URLs in MediaWiki

Settings for mediawiki running on Apache server, with clean URLs like domain.tld/Article_Name, when the installation directory is %{DOCUMENT_ROOT}/w/

The Contents of the .htaccess file:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
@debloper
debloper / keybase.md
Created May 21, 2014 08:25
GitHub proof for Keybase

Keybase proof

I hereby claim:

  • I am debloper on github.
  • I am debs (https://keybase.io/debs) on keybase.
  • I have a public key whose fingerprint is B0CA 7DEA 40F3 120C 14A8 8484 9552 3A9B 0090 2AED

To claim this, I am signing this object:

@debloper
debloper / ingress.js
Created July 14, 2014 11:05
Distraction Free Ingress Intel
// Here are the elements we don't need to see
// Feel free to remove the ones you _do_ need
var elements = [
"header",
"comm",
"geotools",
"game_stats",
"player_stats",
"bottom_right_stack",
"portal_filter_header",
@debloper
debloper / repel.js
Last active August 29, 2015 14:07
Lean mouseover-on-page element animator scripts
// Set the element to select; the only moving part here
// Like literally...
var elem = document.querySelector("elem")
, html = document.querySelector("html");
// Apply positioning, just in case it wasn't already
elem.style.position = "absolute";
// Take the viewport height/width into consideration
// @TODO: should be updated on window resize
@debloper
debloper / timing.md
Created March 15, 2015 04:21
Hacking Gaia at FOSSAsia2015

Total Time 1:30hrs

Break ups:

  • [5min] Introduction of Gaia
    • Schematic Architecture of FxOS
    • Pick the top layer - i.e. Gaia
    • Discuss it's attributes (built with Web Technologies)
    • Briefly discuss the general overview
    • Demonstration of Mulet, WebIDE (& Flame)
  • [10min] App security/permission model
@debloper
debloper / benderSays.rs
Created May 17, 2015 08:22
A simple switch-case/match with string output reference implementation on Rust
use std::os;
fn main() {
let argv = &os::args();
match argv[1] {
~"biteMe" => println("\n\tBite my _Rusty_ metal ass!\n"),
~"killYa" => println("\n\tKILL ALL HUMANS!\n"),
~"letsGo" => println("\n\tLet's GO ALREADYYY...\n"),
_ => println("\n\tOh. Your. God.\n")
}
}
@debloper
debloper / index.html
Created July 10, 2011 14:46
Complex Stripes with Repeating CSS Gradients - misses a soft color-blending!
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="style.css" />
<title>CSS Repeating Gradients</title>
</head>
<body>
<section></section>
</body>
@debloper
debloper / clone.html
Created August 5, 2011 19:30
In a response to Chirag64's effort to CSS3-Animation [http://justinme.0fees.net] - and how to debulkify the AdobeEDGE/jQuery junks.
<!DOCTYPE HTML>
<html>
<!-- Just save it as a standalone HTML file and open in Firefox/Chrome/Safari -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Chiroo's Animation : Pirated by Debloper</title>
<style>
html, body { height: 100%; width: 100%; }
body { margin: 0; padding: 0; background: #EEE; }
@debloper
debloper / index.html
Created December 31, 2011 10:24
CSS Borders: simpler implementation, coolness intact
<!DOCTYPE html>
<html>
<head>
<title>CSS Borders</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="zero"></div>
</body>
</html>
@debloper
debloper / detect.js
Created July 20, 2012 16:27
Feature-detecting old IE version
if (!window.addEventListener && !!window.attachEvent) {
console.log("IE lt 9");
} else {
console.log("IE gte 9");
}