Skip to content

Instantly share code, notes, and snippets.

@syst3mw0rm
syst3mw0rm / servlet1
Created February 26, 2014 15:16
example to share code among servlets
public class Servlet1 extends HttpServlet {
public void init() {
doHeavyProcessing();
}
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
parseRequest();
calculateResponse();
Servlet1CustomCode();
work:~/workspace/dxr > vagrant up
/home/aamir/workspace/dxr/Vagrantfile:9:in `merge!': can't convert false into Hash (TypeError)
from /home/aamir/workspace/dxr/Vagrantfile:9
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:115:in `load'
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:115:in `procs_for_source'
from /usr/lib/ruby/vendor_ruby/vagrant/config.rb:41:in `capture_configures'
from /usr/lib/ruby/vendor_ruby/vagrant/config.rb:36:in `synchronize'
from /usr/lib/ruby/vendor_ruby/vagrant/config.rb:36:in `capture_configures'
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:114:in `procs_for_source'
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:51:in `set'
Failed to open a session for the virtual machine precise64.
VT-x features locked or unavailable in MSR. (VERR_VMX_MSR_LOCKED_OR_DISABLED).
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Console
Interface: IConsole {1968b7d3-e3bf-4ceb-99e0-cb7c913317bb}
work:~/workspace/dxr > make
make -C dxr/plugins/clang build
/usr/local/bin/llvm-config: 1: /usr/local/bin/llvm-config: Syntax error: ")" unexpected
/usr/local/bin/llvm-config: 1: /usr/local/bin/llvm-config: Syntax error: ")" unexpected
make[1]: Entering directory `/home/aamir/workspace/dxr/dxr/plugins/clang'
g++ -Wall -Wno-strict-aliasing -c dxr-index.cpp -o dxr-index.o
In file included from /usr/local/include/llvm/Support/type_traits.h:20:0,
from /usr/local/include/llvm/Support/Casting.h:18,
from /usr/local/include/clang/Basic/LLVM.h:21,
from /usr/local/include/clang/Basic/IdentifierTable.h:21,
@syst3mw0rm
syst3mw0rm / saiku-virtual-cube
Created March 12, 2014 15:00
virtual cube description
<VirtualCube name="Campaigns Full">
<CubeUsages>
<CubeUsage cubeName="DailyCampaignCube" />
<CubeUsage cubeName="DailyPortfolioCube" />
</CubeUsages>
<VirtualCubeDimension cubeName="DailyCampaignCube" name="Portfolio" visible="true" />
<VirtualCubeDimension cubeName="DailyCampaignCube" name="Customer" visible="true" />
<VirtualCubeDimension cubeName="DailyCampaignCube" name="Campaign Group" />
<VirtualCubeDimension cubeName="DailyCampaignCube" name="Campaign" />
<Dimension name="Browser" foreignKey="browser_id">
<Hierarchy hasAll="true" allMemberName="Browser" primaryKey="id">
<Table name="browser_master"/>
<Level name="Browser" column="browser_name" uniqueMembers="false" />
</Hierarchy>
</Dimension>

Keybase proof

I hereby claim:

  • I am syst3mw0rm on github.
  • I am syst3mw0rm (https://keybase.io/syst3mw0rm) on keybase.
  • I have a public key whose fingerprint is 4D1D 8376 0E9A 010B 411E 2AFE 51AB 078A 9CFB 64AC

To claim this, I am signing this object:

# Required libraries:
#
# * vobject <http://vobject.skyhouseconsulting.com/>
#
# Copyright (C) 2011 Marek Stepniowski <marek@stepniowski.com>
#
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Version 2, as published by Sam Hocevar. See
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
sudo apt-get update
sudo apt-get upgrade
import mechanize
from BeautifulSoup import BeautifulSoup
import time
user_agent = ("sadsds")
br = mechanize.Browser()
br.addheaders = [('User-agent', user_agent)]
start = time.clock()
response = br.open("http://backdoor-problems.cognizance.org.in/misc75/misc75.php")
html = response.read()