Skip to content

Instantly share code, notes, and snippets.

Avatar

Marco Krage sinky

View GitHub Profile
View index.html
<!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 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
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">
<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 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 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 Aug 10, 2016
Do something for each file in a directory with bash (every time i don't remember)
View for_each_file.sh
for a in $(ls -1 *.txt); do echo $a; done
@sinky
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
sinky / index.html
Last active Aug 29, 2015
my-azur.de image gallery in JavaScript
View index.html
<!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 Jun 22, 2015
Load jQuery if not present
View jqueryFy.js
(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
jquery.flickr_stream.js
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="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
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';
$printer.Put()