Skip to content

Instantly share code, notes, and snippets.

@fopina
fopina / bulk_trakt.py
Created June 23, 2015 16:35
Trakt.tv Bulk AddToHistory
from urllib2 import Request, urlopen
import json
import sys
URL = 'https://api-v2launch.trakt.tv'
# create your own app
API_KEY = ''
SECRET = ''
PIN_URL = 'https://trakt.tv/pin/????'
@fopina
fopina / rm2gitlab.py
Created April 1, 2015 18:28
Python script to copy redmine issues to gitlab
'''
Requires python-redmine and gitlab3 (both available with pip)
Copy all issues from a Redmine server to Gitlab for the projects specified in a text mapping the projects such as:
redmine_project_identifier:gitlab_project_identifier_with_namespace
rmproject:fopina/glproject
'''
from redmine import Redmine
@fopina
fopina / repo2gitlab.py
Created April 1, 2015 13:45
Python script to push list of repositories to Gitlab
'''
I wanted to migrate all my gitosis repositories to gitlab.com.
Compile a list with the repositories in text file and run this script with your GITLAB token, the name of the text file and a directory to be used to clone the repositories temporarily.
Example:
python repo2gitlab.py x1xxxxxxxxxxX1Xx1xXX repos.txt /tmp/
'''
@fopina
fopina / outlook-push.vba
Last active August 29, 2015 14:02
Outlook VBA Script to push new mail notifications using qpush.me
' Small Outlook-VBA script to push a new email notification to your iOS device
' using QPush (https://qpush.me/)
'
' Just install the application on your iOS device, choose a Push Name
' and place that and the generated Push Code in the section below
'
' How to add the script to Outlook?
' - Press Alt-F11 in Outlook to open Builtin VBA Editor
' - Paste this code in "ThisOutlookSession", save and exit edtior
' - Create a rule with the action "run script" and select the saved script
@fopina
fopina / magnet-transmission.user.js
Created March 7, 2012 16:22
Magnets2Transmission userscript
// ==UserScript==
// @name Magnet-Transmission
// @namespace http://fopina.co.cc
// @description PirateBay + Transmission
// @include https://thepiratebay.se/*
// @include http://thepiratebay.se/*
// ==/UserScript==
unsafeWindow.sendToTransmission = function(href) {
setTimeout(function(){