Skip to content

Instantly share code, notes, and snippets.

View floweb's full-sized avatar

Florian Le Frioux floweb

  • Seldon Finance
  • Basusarri, Euskal Herria, France
View GitHub Profile
@floweb
floweb / sickbeard_sxxexx.py
Last active February 14, 2017 16:38
Consume Sickbeard API to retreive wanted/missed/today's episodes and use sxxexx to download them via The Piracy Bay
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author : Florian Le Frioux
# Date : October 2014
# Consume SB API to retreive wanted/missed/today's episodes
# and use sxxexx to download them via The Piracy Bay
# This script make use of:
# * Sickbeard API documentation: http://sickbeard.com/api/
@floweb
floweb / ffpwdcracker.py
Created June 17, 2014 15:26
ffpwdcracker - Crack the passwords stored using Firefox browser.
#!/usr/bin/env python
# ffpwdcracker - Crack the passwords stored using Firefox browser.
# The script currently works only on Linux.
#
# usage: ffpwdcracker [paths_to_location_of_files]
# Run it with no paramters to extract the standard Passwords,
# from all Profiles of the current
# logged in User.
# Required files:
# + key3.db
@floweb
floweb / mail_sickbeard_sxxexx.py
Last active August 29, 2015 14:07
Mail some news about our sickbeard_sxxexx.py script
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Author : Florian Le Frioux
# Date : October 2014
# Version 1.0
# Mail some news about our sickbeard_sxxexx.py script
import email.utils
from email.mime.text import MIMEText
@floweb
floweb / md2mb.py
Created January 18, 2015 20:23
maildir2mailbox
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Florian Le Frioux, 18 January 2015 - PEP8 compliant
Shane Dowling, 8 Feb 2013
Frédéric Grosshans, 19 January 2012
Nathan R. Yergler, 6 June 2010
This file does not contain sufficient creative expression to invoke
assertion of copyright. No warranty is expressed or implied; use at
your own risk.
@floweb
floweb / sync.py
Last active December 12, 2015 16:10
sync.py - 1000% sure its useless for everyone else
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Website: https://github.com/rndmh3ro/home_backup
# Author: Sebastian Gumprich http://zufallsheld.de
# Modified by: Florian Le Frioux
# Date: 2015
from datetime import datetime
import logging
@floweb
floweb / force-ssl-url-scheme.php
Created October 19, 2015 13:35 — forked from webaware/force-ssl-url-scheme.php
For WordPress, force the protocol scheme to be HTTPS when is_ssl() doesn't work, e.g. on a load-balanced server where _SERVER['HTTPS'] and _SERVER['SERVER_PORT'] don't indicate that SSL is being used. See http://wordpress.org/support/topic/ssl-insecure-needs-35-compatibility for details.
<?php
/*
Plugin Name: Force SSL URL Scheme
Plugin URI: https://gist.github.com/webaware/4688802
Description: Force the protocol scheme to be HTTPS when is_ssl() doesn't work
Version: 1.0.0
Author: WebAware
Author URI: http://www.webaware.com.au/
@ref: http://wordpress.org/support/topic/ssl-insecure-needs-35-compatibility
@floweb
floweb / docker-compose.yml
Last active July 19, 2016 08:34 — forked from puppybits/docker-compose.yml
sentry docker-compose
sentry-redis:
image: redis
sentry-postgres:
image: postgres
environment:
- POSTGRES_PASSWORD=sentry
- POSTGRES_USER=sentry
volumes:
- ./data/postgresql:/var/lib/postgresql/data
@floweb
floweb / cyclos_api.py
Created February 2, 2017 08:35
API wrapper examples
import logging
from django.conf import settings
from rest_framework.exceptions import APIException
import requests
log = logging.getLogger()
class CyclosAPIException(APIException):
@floweb
floweb / react.html
Last active June 18, 2018 11:19 — forked from RickWong/react.html
Write React apps in 1 HTML file
<html>
<meta charset="utf-8" />
<body>
<div id="react-root"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-with-addons.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-dom.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.7.7/babel.min.js"></script>
<script id="react-app" type="text/template">
const App = ({name}) => {
@floweb
floweb / docker-compose.yml
Created December 5, 2017 17:37
mc compose
version: '2'
services:
mc:
ports:
- "25565:25565"
environment:
- EULA="TRUE"
- OPS=floweb