Skip to content

Instantly share code, notes, and snippets.

@theit8514
theit8514 / FailWidget.html
Created December 8, 2015 21:11
Shows error .plugin/e.fn[c]/<@http://kendo.cdn.telerik.com/2015.3.930/js/kendo.all.min.js:10
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled</title>
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2015.3.930/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2015.3.930/styles/kendo.rtl.min.css">
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2015.3.930/styles/kendo.default.min.css">
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2015.3.930/styles/kendo.mobile.all.min.css">
@theit8514
theit8514 / AcrHelper.cs
Last active August 29, 2015 14:24
Tenant redirect for IS3
public class AcrHelper
{
public static string GetAcrValue(IEnumerable<string> acrValues, string acrKey)
{
acrKey = string.Format("{0}:", acrKey);
var acrKeyValue = acrValues.SingleOrDefault(x => x.StartsWith(acrKey));
if (acrKeyValue == null) return null;
var acrValue = acrKeyValue.Substring(acrKey.Length);
return acrValue;
@theit8514
theit8514 / FGfeh
Created June 3, 2015 16:03
Same as auto-start-for-i3-simple, except includes ability to search for a specific window name (eg: feh creates a window, but it doesn't attach it to a pid) and to be able to search child pids for windows (eg: running a batch script which runs a lxterm/xterm/uxterm)
#!/bin/sh
feh -xrz.Z --image-bg black --slideshow-delay 30 --no-fehbg /path/to/Backgrounds