This file contains 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
[C6.10-base] | |
name=CentOS-6.10 - Base | |
baseurl=https://archive.kernel.org/centos-vault/6.10/os/$basearch/ | |
http://linuxsoft.cern.ch/centos-vault/6.10/os/$basearch/ | |
https://vault.centos.org/centos/6.10/os/$basearch/ | |
http://mirror.nsc.liu.se/centos-store/6.10/os/$basearch/ | |
https://cernet.mirrors.ustc.edu.cn/centos-vault/6.10/os/$basearch/ | |
gpgcheck=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 | |
enabled=1 |
This file contains 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/sh | |
# DESCRIPTION: fixes up /boot selected kernels for vmlinuz and initrd.img | |
# | |
# INSTALLATION: sudo wget 'https://gist.githubusercontent.com/anonyco/ec7c1d69b2ddde23fc1bdade017a0ad0/raw' \ | |
# -O/etc/grub.d/01_fixup_boot_kernel && sudo chmod +x /etc/grub.d/01_fixup_boot_kernel | |
# | |
# ERROR HANDLING: Run this program with peace of mind knowing that any serious/critical error (that would likely bork | |
# your computer if you were to reboot) will alert you with a graphical popup error dialog to catch your attention: | |
# * IF either no initrd.img or no vmlinuz was found. This could happen if your system uses a different model |
This file contains 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(){"use strict"; | |
var Object_freeze = Object.freeze; | |
/** | |
* @param {!Array<MutationRecord>} mutationRecords | |
* @return {undefined} | |
*/ | |
function redoMutations(undidMutations) { | |
if (undidMutations) for (var i=undidMutations.length|0, record, type, target, addedNodes, removedNodes, nextSibling, value; i; ) { |
This file contains 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(){ | |
const setProps = new WeakMap; | |
for (const ele of document.getElementsByTagName("*")) | |
setProps.set(ele, new Set); | |
function parseRules(ruleSet) { | |
for (const rule of ruleSet) | |
if (rule.type === 1) { // STYLE_RULE | |
for (const ele of document.querySelectorAll(rule.selectorText)) { | |
const setObj = setProps.get(ele); |
This file contains 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
^(?!(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$)(?:[$A-Z_a-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\ |
This file contains 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
if (!CodeMirror.prototype.destroy) (function(){ | |
// A destroy extension. Absolutely positively beyond a shadow of a doubt obliterate a CodeMirror instance from memory. | |
function hasExclusion(stringArr, regexpArr){ | |
return function(exclusion){ | |
var iSA = stringArr.length, cur = null, iEL = 0, iC = 0, iRA = regexpArr.length; | |
if (isRegExp(exclusion)){ | |
while (iRA--) | |
if (regexpArr[iRA].source === exclusion.source && regexpArr[iRA].flags === exclusion.flags) | |
return iRA; | |
} else { |
This file contains 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
// This file aims to provide a quick, fast, small-as-possible-while-avoiding-encoding-errors solution for those who | |
// are interested in parsing javascirpt files using javascript. What this does do is it determines whether a string | |
// is a valid javascript variable name according to the variable name's code points. What this script does not do is | |
// determine whether or not that variable is already a reserved keyword. If you need that check, then look elsewhere. | |
// NOTE: This is the unminified file-part. To use this file, place this file INSIDE the global IIFE around your code | |
// before any calls to it. But, don't distribute it just yet. The source code is rather large. Instead, you must | |
// minify it before you incorperate it into the end product website using the closure compiler. Online access to the | |
// Closure Compiler can be found at https://closure-compiler.appspot.com. |