Skip to content

Instantly share code, notes, and snippets.

@mad
mad / gist:1260378
Created October 3, 2011 22:03
quake 3 config (osp)
// generated by quake, do not modify
unbindall
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.io.*;
import java.util.*;
import java.util.concurrent.TimeUnit;
import java.util.function.BiFunction;
import java.util.function.Consumer;
import java.util.function.Supplier;
import com.sleepycat.je.Cursor;
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;
import org.junit.jupiter.api.io.TempDir;
package c.tl.vk
import java.math.BigInteger
import java.util.List
import c.tl.type.Int128
ResPQ = req_pq(Int128 nonce)
| resPQ(Int128 nonce,
Int128 server_nonce,
BigInteger pq,

Deps:

jquery jquery ui openlayers

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.27.2"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.time.js?1.27.2"></script>
<script type="text/javascript" src="js-libs/jquery-1.7.js"></script>
<style>
@mad
mad / mongodb-collection-patch-r27936.diff
Created January 28, 2012 11:50
Trying retrieve collection from mongodb
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
mad / nse
Created January 27, 2012 22:46
NSE skeleton for emacs yassnippet
# -*- mode: snippet -*-
# name: nse
# --
description = [[
$0
]]
---
-- @usage
-- nmap --script <this script> <ip>
@mad
mad / mf.html
Created January 17, 2012 21:04
microformat test
<html>
<head>
</head>
<body>
<!--
Test it there: