- https://coreskills.mmodrow.rocks
This file contains hidden or 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
for(var i=0, a="";i<16;i++)a+=((+"[]")+"").substring(0,2)+(!!((i+1)%9)?"":" ")+(!!((i+1)%16)?"":String.fromCharCode(32,66,65,84,77,65,78,33)) |
This file contains hidden or 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
/** | |
* add a cache breaking get parameter to an url, that's based on the local git dir timestamp | |
* @return string | |
*/ | |
public function getCachebrokenUrl($url = "") { | |
$version = $this->getVersionHash(); | |
$cachebrokenUrl = preg_replace("/((?:href|src)=\"[^?\"]*)(\")/", "$1?version=".$version."$2", $url); | |
return $cachebrokenUrl; | |
} |
This file contains hidden or 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 caesar(char, offset){ | |
var charArray = Array.prototype.slice.call(char); | |
var output = ""; | |
charArray.forEach( function(singleChar){ | |
output += singleChar === " " ? " " : | |
String.fromCharCode(((((singleChar+"").toUpperCase().charCodeAt (0) + offset + 26) - 65)% 26)+ 65); | |
}); | |
return {message: output, offset: offset}; | |
} |
This file contains hidden or 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
// ==UserScript== | |
// @name The Front-End Checklist Persistator | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description load and store data put into "The Front-End Checklist" | |
// @author Marc Modrow | |
// @match https://frontendchecklist.io | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
using System.Text.RegularExpressions; | |
using Newtonsoft.Json; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
ClassWithRegexAttribute objectWithRegexAttribute = | |
JsonConvert.DeserializeObject<ClassWithRegexAttribute>( | |
"{\"RegexAttribute\": \"committing-some-shitty-code-on-my-colleagues\"}"); |
This file contains hidden or 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
// ==UserScript== | |
// @name Non-Evented Download-Link on 9gag | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Adds an anchor to every 9gag-Post, that has no events attached to it. | |
// @author https://gist.github.com/mmodrow | |
// @match https://9gag.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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/bash | |
function allocateByName() { | |
ID=$(getWindowIdByTitle "$1") | |
if [ "$ID" = "" ]; then | |
echo "Window $1 not found." | |
echo "" | |
else | |
allocateByIds "$ID" $2 "$1" "$3" | |
fi |
This file contains hidden or 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
// ==UserScript== | |
// @name MSDocs redirect to english | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author mmodrow <[email protected]> | |
// @match https://docs.microsoft.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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/bash | |
force=0 | |
for arg in "$@" | |
do | |
if [[ "$arg" = "-h" || "$arg" = "--help" ]] | |
then | |
echo "Just add program starting commands as parameters as you please. They will be started in order." | |
echo "Add '-f' at any point to apply force mode to all following programs." | |
echo "Add '-F' at any point to remove force mode to all following programs." | |
continue |
This file contains hidden or 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
# symlink as /usr/sbin/git-lol to access as "git lol" alias | |
git log --graph --decorate --oneline --abbrev-commit --all --color=always |
OlderNewer