This file contains 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 | |
# Skript um alle verfügbaren Taz-Ausgaben aus dem Taz digiabo in ein Archiv herunterzuladen | |
# Siehe http://www.taz.de/zeitung/abo/digiabo/ für mehr Informationen | |
# Basisverzeichnis für das taz-Archiv | |
taz_dir=$HOME/pub/doc/taz | |
# Heutiges Datum 0:00 - 20 Tage | |
date=$[$(date -d $(date +%Y/%m/%d) +%s)-20*24*60*60] | |
now=$(date +%s) |
This file contains 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
# Inspired by http://blog.worldofcoding.com/2013/03/formatting-git-patches-for-partially.html | |
# This calls git log to get a list of commits that affect a certain file pattern and then exports each of them into a file | |
# If the exported commits shall be limited to these files, another pathspec could be added in the second git log call. | |
# The code is split into several lines to make it more readable, but all ";" are there such that all line breaks could be removed. | |
c=0; | |
git log --oneline --reverse -- your/pathspec.* |cut -d' ' -f1 | while read a; | |
do | |
c=$[c+1]; |
This file contains 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 | |
class s9y2blogger { | |
private $database = NULL; | |
private $errors = array(); | |
private $curEntry = array(); // current entry of the parser | |
private $inPublished = false; | |
public function __construct() { |
This file contains 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
--- a/inc/media.php 2018-12-28 17:46:14.000000000 +0100 | |
+++ b/inc/media.php 2018-08-20 21:05:55.000000000 +0200 | |
@@ -1084,6 +1084,15 @@ | |
$w = (int) $info[0]; | |
$h = (int) $info[1]; | |
+ if ($meta) { | |
+ $orientation = media_getTag('Orientation', $meta); | |
+ if ($orientation == 3 || $orientation == 6) { | |
+ $tmp = $h; |
This file contains 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
# This file also fails to compile with error error: redefinition of ‘std::vector<int, std::allocator<int> > __pyx_convert_vector_from_py_int(PyObject*)’. Note that it only fails when I have another definition without the fused type. | |
from libcpp.vector cimport vector | |
cdef extern from "test.h": | |
cdef cppclass _TestClassInt "TestClass<int>": | |
vector[double] toDouble(const vector[int] &items) except + | |
cdef cppclass _TestClassChar "TestClass<char>": | |
vector[double] toDouble(const vector[char] &items) except + |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
javascript:window.location.href='http://www.jamendo.com/get/album/list/album/archiverestricted/redirect/?ids='+/\/list\/a(\d+)/.exec(window.location.href)[1]+'&are=ogg3';void(0) |
This file contains 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
diff --git a/lib/exe/indexer.php b/lib/exe/indexer.php | |
index 95e2af0..9edd8be 100644 | |
--- a/lib/exe/indexer.php | |
+++ b/lib/exe/indexer.php | |
@@ -16,15 +16,16 @@ if(!defined('NL')) define('NL',"\n"); | |
// check if user abort worked, if yes send output early | |
$defer = !@ignore_user_abort() || $conf['broken_iua']; | |
-if(!$defer){ | |
+$output = isset($_REQUEST['debug']) && $conf['allowdebug']; |
This file contains 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 | |
command="$1" | |
expression="$2" | |
$command | |
inotifywait -r -m --format '%f' -e close_write "$PWD" | while read file; do | |
if echo "$file" | grep "$expression"; then | |
$command |
This file contains 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/ruby | |
require 'net/http' | |
require 'cgi' | |
require 'rexml/document' | |
require 'optparse' | |
require 'time' | |
options = { | |
:lang => 'de', |
NewerOlder