Skip to content

Instantly share code, notes, and snippets.

mad / gist:1260378
Created October 3, 2011 22:03
quake 3 config (osp)
View gist:1260378
// generated by quake, do not modify
bind TAB "+scores"
bind ENTER "+button2"
bind ESCAPE "togglemenu"
bind SPACE "+moveup"
bind + "sizeup"
bind - "sizedown"
bind 0 "weapon 10"
bind 1 "weapon 1"
import java.util.*;
import org.apache.commons.compress.utils.Lists;
import org.apache.tinkerpop.gremlin.process.traversal.P;
import org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy;
import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource;
import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__;
import org.apache.tinkerpop.gremlin.structure.Column;
import org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph;
import org.junit.jupiter.api.Test;
package com.bic.jmh;
import java.util.*;
import java.util.concurrent.TimeUnit;
import java.util.function.BiFunction;
import java.util.function.Consumer;
import java.util.function.Supplier;
package org.janusgraph;
import org.janusgraph.core.JanusGraph;
import org.janusgraph.core.JanusGraphFactory;
import org.janusgraph.testutil.MemoryAssess;
import org.apache.commons.lang3.RandomStringUtils;
import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.RepeatedTest;
View VK.jadt
import java.math.BigInteger
import java.util.List
ResPQ = req_pq(Int128 nonce)
| resPQ(Int128 nonce,
Int128 server_nonce,
BigInteger pq,
View search.js


jquery jquery ui openlayers

View dispatch_click.html
<!DOCTYPE html>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src="js-libs/jquery-1.7.js"></script>
mad / mongodb-collection-patch-r27936.diff
Created January 28, 2012 11:50
Trying retrieve collection from mongodb
View mongodb-collection-patch-r27936.diff
Index: scripts/mongodb-databases.nse
--- scripts/mongodb-databases.nse (revision 27936)
+++ scripts/mongodb-databases.nse (working copy)
@@ -65,6 +65,20 @@
status, result = mongodb.query(socket, packet)
if not status then return result end-- Error message
+ for k,v in pairs(result["databases"]) do
+ local result2, colls
mad / nse
Created January 27, 2012 22:46
NSE skeleton for emacs yassnippet
View nse
# -*- mode: snippet -*-
# name: nse
# --
description = [[
-- @usage
-- nmap --script <this script> <ip>
mad / mf.html
Created January 17, 2012 21:04
microformat test
View mf.html
Test it there: