Skip to content

Instantly share code, notes, and snippets.

http://stackoverflow.com/questions/10393541/how-can-i-control-which-elements-are-signed-in-a-wcf-soap-request
using System;
using System.Text;
using System.ServiceModel.Channels;
using System.Xml;
using System.IO;
using System.Security.Cryptography;
using System.Resources;
using System.Security.Cryptography.X509Certificates;
namespace eMedNySOAPClient
@yaronn
yaronn / gist:6f48c52b985c2fef195d
Created November 23, 2015 00:43
sublime move tabs with pageup
[
{ "keys": ["command+pagedown"], "command": "next_view" },
{ "keys": ["command+pageup"], "command": "prev_view" }
]
@yaronn
yaronn / gist:e4a9452bd56d87aac53a
Created November 16, 2015 17:05
python http echo server
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
request_path = self.path
print("\n----- Request Start ----->\n")
@yaronn
yaronn / gist:b505a81431af52efd175
Created October 27, 2015 12:51
sed replace strings in android resource file
sed -i '' -- 's/="find"/="replace"/g' **/strings.xml
//disable wcf signature body header part
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Description;
using System.ServiceModel.Security;
using System.Text;
namespace ConsoleApplication309
US Weather forcast in the terminal:
$> a=$(curl -Ls "bit.ly/1OuRPDJ"); curl --data "$a" "tty.zone?cols=${COLUMNS}"
<document>
<page>
<item col="0" row="0" colSpan="5" rowSpan="2">
<markdown style-paragraph="chalk.white" style-strong="chalk.cyan.underline" style-em="chalk.green" border-type="line" border-fg="gray">
<markdown>
*wopr* is a markup format for rich terminal `reports`, `presentations` and `inforgraphics`. &#10;Build the report from any language and view it locally or remotely via curl. &#10;&#10;More information: &#10;&#10;&#10;&#10;[https://github.com/yaronn/wopr](https://github.com/yaronn/wopr) &#10;&#10;[https://twitter.com/YaronNaveh](https://twitter.com/YaronNaveh)
</markdown>
$> p=0; while true; do curl tty.zone/$((p++))\?cols=$((COLUMNS)); read; done
$> curl tty.zone/1\?cols=$((COLUMNS))