Skip to content

Instantly share code, notes, and snippets.


Marco Krage sinky

View GitHub Profile
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
#mapid { height: 500px; }
sinky / Remove-AppxPackage-GUI.ps1
Created Jan 3, 2019
Remove-AppxPackage GUI (Remove-AppXProvisionedPackage)
View Remove-AppxPackage-GUI.ps1
#Durch Out-GridView ist eine auswahl über ein grafische Oberfläche möglich
#App aus dem aktuellen Userprofil deinstallieren:
Get-AppxPackage | sort name | Out-GridView -PassThru | Remove-AppxPackage
#ggf. den Parameter -AllUser bei Get-AppxPackage und Remove-AppxPackage hinzufügen, um bei allen Userprofilen des PCs die App zu deinstallieren
#Um die App aus dem Windows Image zu entfernen, damit sie bei einem neuen User nicht wieder installiert wird:
Get-AppXProvisionedPackage -online | sort DisplayName | Out-GridView -PassThru | Remove-AppxProvisionedPackage -online
sinky / rrd_graph.html
Last active May 25, 2018
RRD to Highchart with rrdtool xport
View rrd_graph.html
<!doctype html>
<html lang="de-DE">
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>RRD to Highchart</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="" />
<link rel="stylesheet" href="" />
sinky / veryfastping.ps1
Created Sep 2, 2016 — forked from mbrownnycnyc/veryfastping.ps1
test-connection got you down? ping just not cutting it for you? How about using the System.Net.NetworkInformation.Ping.send() method
View veryfastping.ps1
# with reference to
function fastping{
[String]$computername = "",
[int]$delay = 100
$ping = new-object System.Net.NetworkInformation.Ping
# see
sinky /
Created Aug 10, 2016
Do something for each file in a directory with bash (every time i don't remember)
for a in $(ls -1 *.txt); do echo $a; done
sinky / media_query.css
Created Dec 26, 2015
css media query boilerplate
View media_query.css
/* Mobile first */
/* --- >= smartphones landscape --- */
@media screen and (min-width: 480px) {
/* --- >= tablets portrait --- */
@media screen and (min-width: 768px) {
sinky / index.html
Last active Aug 29, 2015 image gallery in JavaScript
View index.html
<!doctype html>
<html lang="de-DE">
<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">
sinky / jqueryFy.js
Created Jun 22, 2015
Load jQuery if not present
View jqueryFy.js
(function() {
function init(ownjQuery) {
var $ = jQuery;
if(typeof jQuery === "undefined") {
loadScript('//', function() {
sinky / jquery.flickr_stream.js
Created May 19, 2015
View jquery.flickr_stream.js
(function( $ ){
$.fn.flickrStream = function(options) {
var $that = $(this);
var defaults = {
api_key: 'a08b39223a47743d48a2fe27afefda28',
user_id: 's1nky',
count: '9',
tpl: '<li><a href="{{pathalias}}/{{id}}/" title="{{title}} ({{datetaken}})" target="_blank" style="background-image:url({{url_m}});"></a></li>'
sinky / restoreXPSPrinter.ps1
Created May 11, 2015
restore XPS Printer with Powershell
View restoreXPSPrinter.ps1
$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';