Skip to content

Instantly share code, notes, and snippets.

View sinky's full-sized avatar

Marco Krage sinky

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
#mapid { height: 500px; }
</style>
</head>
@sinky
sinky / Remove-AppxPackage-GUI.ps1
Created January 3, 2019 21:48
Remove-AppxPackage GUI (Remove-AppXProvisionedPackage)
#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
sinky / rrd_graph.html
Last active May 25, 2018 11:56
RRD to Highchart with rrdtool xport
<!doctype html>
<html lang="de-DE">
<head>
<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="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highcharts/6.0.7/css/highcharts.css" />
@sinky
sinky / veryfastping.ps1
Created September 2, 2016 04:59 — 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
# with reference to http://theadminguy.com/2009/04/30/portscan-with-powershell/
function fastping{
[CmdletBinding()]
param(
[String]$computername = "127.0.0.1",
[int]$delay = 100
)
$ping = new-object System.Net.NetworkInformation.Ping
# see http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ipstatus%28v=vs.110%29.aspx
@sinky
sinky / for_each_file.sh
Created August 10, 2016 08:09
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
sinky / media_query.css
Created December 26, 2015 10:44
css media query boilerplate
/* Mobile first */
/* --- >= smartphones landscape --- */
@media screen and (min-width: 480px) {
}
/* --- >= tablets portrait --- */
@media screen and (min-width: 768px) {
@sinky
sinky / index.html
Last active August 29, 2015 14:27
my-azur.de image gallery in JavaScript
<!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>
@sinky
sinky / jqueryFy.js
Created June 22, 2015 13:33
Load jQuery if not present
(function() {
function init(ownjQuery) {
var $ = jQuery;
console.log('jQueryFy');
}
if(typeof jQuery === "undefined") {
loadScript('//code.jquery.com/jquery.js', function() {
@sinky
sinky / jquery.flickr_stream.js
Created May 19, 2015 05:37
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="https://www.flickr.com/photos/{{pathalias}}/{{id}}/" title="{{title}} ({{datetaken}})" target="_blank" style="background-image:url({{url_m}});"></a></li>'
};
@sinky
sinky / restoreXPSPrinter.ps1
Created May 11, 2015 05:55
restore XPS Printer with Powershell
$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()