This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env ruby | |
| require 'trakt' | |
| trakt = Trakt.new‚ | |
| trakt.apikey = 'apikey' | |
| trakt.username = 'simonszu' | |
| trakt.password = 'password' | |
| #puts client.server.time | |
| #p client.show.episode_unseen("imdb_id" => "tt0364845", "episodes" => {"season" => 1, "episode" => 1}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # This script saves your soup including enclosures. See below. | |
| if [ "X$1" = "X" ] || [ "X$1" = "X-h" ]; then | |
| echo " | |
| This script saves your soup including enclosures and might kill your cat | |
| (laughing or not.) A little .sh by neingeist (http://nein.gei.st.) | |
| Usage: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env ruby | |
| require 'tumblr_client' | |
| consumer_key = "" | |
| consumer_secret = "" | |
| access_token = "" | |
| access_token_secret = "" | |
| Tumblr.configure do |config| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/python | |
| import sys,urllib | |
| # Get clean NZB name | |
| job_name = sys.argv[3] | |
| # Prowl API settings - http://prowl.weks.net/api.php | |
| # Set Prowl API | |
| API = "0d1946d5026af97087954e84f4d45135d11f7241" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env ruby | |
| code = "Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut! Hut? Hut. Hut? Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut? Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut? Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut? Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut? Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut? Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut? Hut. Hut? Hut. Hut? Hut. Hut? Hut. Hut? Hut. Hut? Hut. Hut! Hut! Hut? Hut! Hut. Hut? Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut! Hut. Hut. Hut? Hut. Hut. Hut. Hut. Hut. Hut. Hut! Hut. Hut. Hut? Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut! Hut. Hut. Hut? Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. Hut. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # encoding: UTF-8 | |
| # Input: WordPress XML export file. | |
| # Outputs: a series of Textile files ready to be included in a Jekyll site, | |
| # and comments.yml which contains all approved comments with metadata which | |
| # can be used for a Disqus import. | |
| # Changes from the original gist: http://gist.github.com/268428 | |
| # 1. Handles titles containing special characters. Those have to be YAML escaped | |
| # 2. Use the original permalinks in wordpress. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env ruby | |
| require 'nokogiri' | |
| # Parsed results in wordpress.xml | |
| # Change your octopress feed template in source/atom.xml | |
| # Change the limit in {% for post in site.posts limit: to a value higher than your postcount to ensure the creation of the feed of | |
| # ALL your posts | |
| # Add a line "<categories>{{post.categories}}</categories>" in the <entry> Tag. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'nokogiri' | |
| require 'open-uri' | |
| module Jekyll | |
| class PicasaAlbumTag < Liquid::Tag | |
| def initialize(tag_name, rss_url, token) | |
| super | |
| @rss_url = rss_url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| # This script creates a new bare git repo and adds it to cgit | |
| echo -n "Enter the name and press [ENTER]:" | |
| read name | |
| echo -n "Enter the description and press [ENTER]:" | |
| read description | |
| echo -n "Enter a mail address and press [ENTER]:" | |
| read mail | |
| cd /home/simonszu/repos |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $username = "user"; | |
| $password = "password"; | |
| if ((!isset($_POST["user"])) && (!isset($_POST["pw"]))){ | |
| echo "<form action=\"secure.php\" method=\"post\">"; | |
| echo "username: <input type=\"text\" name=\"user\"><br />"; | |
| echo "password: <input type=\"password\" name=\"pw\">"; | |
| echo "<input type=\"submit\" value=\"Abschicken\">"; |