Skip to content

Instantly share code, notes, and snippets.

View isra17's full-sized avatar

Israël Hallé isra17

View GitHub Profile
@isra17
isra17 / cucumber_result.json
Created November 1, 2012 18:09
Json result from cucumber tests
[
{
"id":"Navigation",
"name":"Navigation",
"description":"In order to access all feature in SPD\nAs a SPD user\nI want to navigate through the sections",
"line":1,
"keyword":"Feature",
"uri":"(feature)",
"elements":[
{
import socket
HOST = '10.6.8.205' # The remote host
PORT = 4242 # The same port as used by the server
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
buf = '\xAA' * 56 + '\x10\x11\x40\x00' + '\x00' * 4 + '\x00\x00\x02\xFF'
#buf = '\xAA' * 56 + '\x00\x40\x11\x10' + ''
s.sendall(buf)
data = s.recv(4092)
var keys = openpgp.keyring.privateKeys;
var lastKey = keys.length > 0?
keys[keys.length - 1]: null;
if(lastKey) {
var pubKey = lastKey.obj.extractPublicKey();
var keyName = lastKey.obj.userIds.length > 0? lastKey.obj.userIds[0].text: 'Unnamed key';
$('#homeSpan .key-name').text(keyName);
$('#homeSpan .pub-key').text(pubKey);
}
import socket
import os, sys
HOST = ''
PORT = 50006
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((HOST, PORT))
s.listen(1)
conn, addr = s.accept()
import socket
import struct
is_local = False
if is_local:
HOST = 'localhost'
PORT = 50005
else:
HOST = '54.218.22.41'
GET api_endpoint/:imdb_ids
GET api_endpoint/35245623,46432552,13534523
Response format:
{
"imdb id": {
"language code": "subtitle url",
...
}
<div class="quality switch white">
<input type="radio" name="switch" id="switch-off"<% if (this.model.get('quality') === '720p') { %> checked<% } %>>
<input type="radio" name="switch" id="switch-on"<% if (this.model.get('quality') === '1080p') { %> checked<% } %>>
<label for="switch-off">720p</label>
<label for="switch-on">1080p</label>
<span class="toggle"></span>
</div>
.switch {
background: transparent;
#include <arpa/inet.h>
#include <errno.h>
#include <pwd.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
import socket
import struct
HOST = 'localhost'
PORT = 31337
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
# challenge 1
print('challenge1')

Keybase proof

I hereby claim:

  • I am isra17 on github.
  • I am isra17 (https://keybase.io/isra17) on keybase.
  • I have a public key ASCHYDaWuhJEPTTGuX2Dq6y0CfWI5afKErH7RKVFeaJ1rAo

To claim this, I am signing this object: