Skip to content

Instantly share code, notes, and snippets.

View igeligel's full-sized avatar
🤷‍♀️
Shifting bits around the world

Kevin Peters igeligel

🤷‍♀️
Shifting bits around the world
View GitHub Profile
POST https://steamcommunity.com/mobileconf/multiajaxop HTTP/1.1
Host: steamcommunity.com
Connection: keep-alive
Content-Length: 223
Accept: */*
Origin: https://steamcommunity.com
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Linux; Android 6.0; MotoG3 Build/MPI24.65-33; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/51.0.2704.81 Mobile Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://steamcommunity.com/mobileconf/conf?p=android:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&a=SteamCommunityId&k=XXX&t=1468401310&m=android&tag=conf
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Index</title>
<meta name="description" content="The HTML5 Herald">
<meta name="author" content="SitePoint">
using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
namespace BackpackApiInterface
{
internal class Program
{
private static void Main()
<template>
<div class="container">
<div class="row">
<div class="col s12 m12 l6">
<game-card-view
:game="gameNorwayGermany">
</game-card-view>
</div>
<div class="col s12 m12 l6">
<game-card-view
<template>
<div class="container">
<div v-for="row in matches | chunk 2" class="row">
<div v-for="match in row" class="col s12 m12 l6">
<game-card-view
:game="match">
</game-card-view>
</div>
</div>
</div>
@igeligel
igeligel / CustomerService.java
Created October 19, 2016 18:40
Java Persistence API service created with plop cli
package de.ostfalia.groupfour.services;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
@Stateless
public class CustomerService {
@PersistenceContext
package de.ostfalia.groupfour.controllers;
import de.ostfalia.groupfour.models.Actor;
import de.ostfalia.groupfour.services.ActorService;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
<template v-for="language in languages">
<developer-chip
:name="language.name"
:image="language.image"
:description="language.description">
</developer-chip>
</template>
<script>
var languages: [{
private static string EncryptPassword(EncryptPasswordModel encryptPasswordModel) {
// Convert the public keys to BigIntegers
var modulus = CreateBigInteger(encryptPasswordModel.PublicKeyMod);
var exponent = CreateBigInteger(encryptPasswordModel.PublicKeyExp);
// Original: $data = this.pkcs1pad2($data,($pubkey.modulus.bitLength()+7)>>3);
// I'm going to hardcode the bitlength, I can't figure that out right now.
var encryptedNumber = Pkcs1Pad2(encryptPasswordModel.Password, (2048 + 7) >> 3);
// And now, the RSA encryption