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
/** | |
* | |
* Here's a thing that will look through all the text nodes of a document, and | |
* upon encountering an emoji codepoint, will replace it with an image. | |
* For now, those images are pulled from GitHub, which isn't very nice, so I | |
* need to find a more suitable host. | |
* | |
* Much of this code was gleaned from staring at the minified GitHub JS. | |
* | |
* Copyright (c) 2013 Mark Wunsch. Licensed under the MIT License. |
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
// Pfad zum Wordpress Theme | |
var stylesheet_directory = "//my-azur.de/blog/wp-content/themes/azur"; | |
// Existiert auf dieser Seite die gewünschte Tabelle | |
if($('.cinematiclist').length) { | |
// dann lade Script und führe Funktion aus | |
loadScript(stylesheet_directory+"/lib/jquery.tablePagination.js", function() { | |
$('.cinematiclist').tablePagination(); | |
}); | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am sinky on github. | |
* I am sinky (https://keybase.io/sinky) on keybase. | |
* I have a public key whose fingerprint is 7797 1CFD E497 A4FE 7674 61BF 510D FAAD BFB2 CB29 | |
To claim this, I am signing this object: |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<title>my-azur.de</title> | |
</head> | |
<body> | |
<h1>my-azur.de</h1> | |
<?php | |
$site = $_GET['site']; | |
if (!isset($site)) { |
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/sh | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
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
$printerclass = [wmiclass]'Win32_Printer'; | |
$printer = $printerclass.CreateInstance(); | |
$printer.Name = $printer.DeviceID = 'Microsoft XPS Document Writer'; | |
$printer.PortName = 'XPSPort:'; | |
$printer.Network = $false; | |
$printer.Shared = $false; | |
$printer.DriverName = 'Microsoft XPS Document Writer'; | |
$printer.Put() |
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
$Printers = Get-WmiObject win32_printer | |
$oldPrintserver = "OLD_PRINTSERVER_HOSTNAME" | |
$newPrintserver = "NEW_PRINTSERVER_HOSTNAME" | |
foreach($oldPrinter in $Printers) { | |
Write-Host "Bearbeite Drucker: "$oldPrinter.Name | |
#if( $oldPrinter.Name.StartsWith("Microsoft XPS Document Writer") -Or $oldPrinter.Name.StartsWith("Fax") -Or $oldPrinter.Name.StartsWith("An OneNote 2010 Senden") ) { | |
# Write-Host "Lösche Drucker: "$oldPrinter.Name | |
# $oldPrinter.PSBase.Delete() |
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
(function( $ ){ | |
$.fn.flickrStream = function(options) { | |
var $that = $(this); | |
var defaults = { | |
api_key: 'a08b39223a47743d48a2fe27afefda28', | |
user_id: 's1nky', | |
count: '9', | |
tpl: '<li><a href="https://www.flickr.com/photos/{{pathalias}}/{{id}}/" title="{{title}} ({{datetaken}})" target="_blank" style="background-image:url({{url_m}});"></a></li>' | |
}; |
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
(function() { | |
function init(ownjQuery) { | |
var $ = jQuery; | |
console.log('jQueryFy'); | |
} | |
if(typeof jQuery === "undefined") { | |
loadScript('//code.jquery.com/jquery.js', function() { |
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
<!doctype html> | |
<html lang="de-DE"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>HTML 5 Template</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style></style> | |
</head> |
OlderNewer