Skip to content

Instantly share code, notes, and snippets.

@DaSourcerer
DaSourcerer / opensearch.xml
Created December 11, 2016 20:02
minds.com opensearch xml description
<?xml version="1.0" encoding="utf-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Minds</ShortName>
<Description>Search Minds — Powered by DuckDuckGo</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image height="16" width="16" type="image/png">https://www.minds.com/assets/icon.png</Image>
<Url type="text/html" method="get" template="https://duckduckgo.com/">
<Param name="q" value="{searchTerms} site:minds.com"/>
</Url>
<Url type="application/x-suggestions+json" template="https://duckduckgo.com/ac/">
@DaSourcerer
DaSourcerer / phpstorm.desktop
Created March 5, 2015 10:53
~/.local/share/applications/phpstorm.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=PhpStorm
Icon=~/.local/share/phpstorm/bin/webide.png
Exec="~/.local/share/phpstorm/bin/phpstorm.sh" %f
Comment=Develop with pleasure!
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-phpstorm
-Xms512M
-Xmx1G
-XX:ReservedCodeCacheSize=512m
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djsse.enableSNIExtension=false
-XX:+UseCodeCacheFlushing
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-Dswing.aatext=true
@DaSourcerer
DaSourcerer / blogspam
Created December 22, 2013 01:33
Looks like some spammers template engine had a little hiccup. Exploitable?
Please enter {your|your own|the|your current|ones|a person's|an individual's|ones own|your personal|any|a} brw.{com|org|net|internet|web|world wide web|online|world-wide-web}.au username {and|as well as|and also|along with|in addition to|plus|together with|and even|not to mention|and additionally|and then} email address. {Your|Your own|The|Your current|Ones|A person's|An individual's|Ones own|Your personal|Any|A} password {will be|is going to be|will probably be|will likely be|are going to be|might be|shall be|can be|could be|will undoubtedly be|would be} emailed {to you|for you|to you personally|for your requirements|to your account|back|back to you|for your needs|for you personally|in your direction|to your}. Leadership Dump Rupert Murdoch {as|because|since|while|seeing that|when|mainly because|simply because|just as|for the reason that|like} Fox chairman, advisory group聽ISS tells shareholders Leadership 鈥楬alf {a|the|any|a new|some sort of|your|a good|an important|a fabulous|some|a real} job鈥?聽Insecure work
@DaSourcerer
DaSourcerer / httpget
Last active December 27, 2015 09:29
A simple stream-based http client. Good for experimentation.
#!/usr/bin/php
<?php
$scheme='tcp';
$host='www.kernel.org';
$port=80;
$path='/';
if(isset($argv[1])) {
$parsedUrl=parse_url($argv[1]);