Skip to content

Instantly share code, notes, and snippets.

mobilevikings.be
www.mobilevikings.be
static.mobilevikings.de
vikingdeals.be
www.vikingdeals.be
awin.com
www.awin.com
@tmcls
tmcls / mnm.py
Last active March 20, 2018 09:28
#!/usr/bin/python
import requests
while 1:
try:
payload = {'clicks': 50}
r = requests.post("http://playground.mnm.be/peterpaaseiei/ajax/breaktheegg.php", data=payload)
print r.content
except (KeyboardInterrupt, SystemExit):
/*
* FUNCTION getOriginUrl
* Go to he main domain, follow all the redirect till the end (statuscode 200)
*/
function getOriginUrl($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt($ch, CURLOPT_ENCODING, "" );
curl_setopt($ch, CURLOPT_HEADER, 1);
[
{
"code_type": null,
"custom_cta_text": "Naar Hello bank! >",
"deals": [
{
"description": "Per transactie met je bankkaart",
"end_date": null,
"highlight": true,
"image": "https://viking-deals-production.s3.amazonaws.com/__sized__/catalog/deals/image/Hello_Footer_v5-crop-c0-53__0-6-1200x400-70.jpg",

Keybase proof

I hereby claim:

  • I am tomclaus on github.
  • I am tomclaus (https://keybase.io/tomclaus) on keybase.
  • I have a public key whose fingerprint is 372C 5DA7 CB53 9C4D A9DE 60E5 30B9 867B 24D8 3976

To claim this, I am signing this object:

@tmcls
tmcls / deals_draft.json
Last active August 4, 2017 16:58
Deals Json
[
{
"slug":"zalando",
"title":"Zalando",
"subtitle":"Shop online",
"visibility":"publishable",
"is_published":true,
"logo_image":"https://www.dropbox.com/s/9005bsjr493xid5/100-crop-c0-5__0-5-200x200-70.jpg?dl=1",
"header_image":"https://www.dropbox.com/s/1x67yay8jda55hl/vm-banners-05-wide-crop-c0-65__0-21-1200x400-70.jpg?dl=1",
"code_type":null,
@tmcls
tmcls / README
Last active August 29, 2015 14:01
Check Syntra website for updates
Only works on OSX.
Run with:
~: python run.py
If you haven't installed httplib2, run first:
~: sudo pip install httplib2
if you haven't installed PIP, run first:
<?php
/**
* The template used for displaying page content in page.php
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
?>
@tmcls
tmcls / VikingCo_Engineering_community_manifesto.md
Created April 23, 2013 13:32
VikingCo Engineering community manifesto

#VikingCo Engineering community manifesto

This is the official VikingCo Engineering G+ community manifesto, please follow these simple Do’s and Don’s.

##DO's:

  • DO use the awesome categories feature when you post something. A question should go to "Ask" category. You're smart, you'll figure it out.
  • DO post amazing things related to Python, Django, Front End, Javascript, HTML5, CSS3, API’s, etc in the category “Share”.
  • DO engage in discussions regarding development, new ideas, best practices, mobile web, web in general
  • DO invite your friends, boyfriends, girlfriends , dogs, cats, mice, and others...
@tmcls
tmcls / replace404images.js
Created August 24, 2012 09:16
Replace broken images with some cool images
$('img').each(function() {
if((typeof this.naturalWidth != "undefined" && this.naturalWidth == 0 ) || this.readyState == 'uninitialized' ) {
console.log('[REPLACE 404 IMG] '+ $(this).attr('src'));
$(this).attr('src', '//lorempixel.com/250/250/?' + Math.random());
}
});