Skip to content

Instantly share code, notes, and snippets.

[
{
"len": "125",
"companyid": "58bdeaf97ee76660b2f0c68b"
},
{
"len": "93",
"companyid": "583fd88053d16b2a2d41d4e7"
},
{
@syst3mw0rm
syst3mw0rm / localhost-ssl.sh
Created July 30, 2019 22:14 — forked from jonsamp/localhost-ssl.sh
Create https key and cert on localhost
cd ~/
mkdir .localhost-ssl
sudo openssl genrsa -out ~/.localhost-ssl/localhost.key 2048
sudo openssl req -new -x509 -key ~/.localhost-ssl/localhost.key -out ~/.localhost-ssl/localhost.crt -days 3650 -subj /CN=localhost
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ~/.localhost-ssl/localhost.crt
npm install -g http-server
echo "
function https-server() {

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:

<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>
@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" />
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,
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 > 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'
@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();
Head
====
a: 12
b: 45
c: 9