Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Sean McNamara allquixotic

🎯
Focusing
  • GDIT
  • Maryland, USA
View GitHub Profile
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>ESO Log Formatter</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootswatch/4.3.1/united/bootstrap.min.css" crossorigin="anonymous"/>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" crossorigin="anonymous"/>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
View browserified-url-parse.js
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
"use script";
var R = require('url-parse');
},{"url-parse":4}],2:[function(require,module,exports){
'use strict';
var has = Object.prototype.hasOwnProperty;
/**
* Decode a URI encoded string.
View gist:1ae1abb5b99fa7599b4b535f9fdd8455
if(typeof jQuery=='undefined') {
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.1",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,a
@allquixotic
allquixotic / !README.md
Last active Aug 17, 2018
Hide collapsed and muted channel categories in Discord
View !README.md

First, mute and collapse every channel category you don't care about. You only have to do this once, even if you restart Discord.

Second, click on the "Raw" button next to the file in this Gist named "COPY-THIS.js" (it's right below this readme). Then, press Ctrl+A followed by Ctrl+C. The code is now on your clipboard. We'll use this later. You must do this every time you restart Discord.

Developer Tools Sequence

Step 1 below varies. The remaining steps are the same for Discord Web App and Discord Desktop.

DO ONLY ONE OF THESE vvvvvvv

Discord Web App

View CMakeLists.txt
project(asdf)
cmake_minimum_required(VERSION 2.8.12)
set(CMAKE_VERBOSE_MAKEFILE TRUE)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
@allquixotic
allquixotic / conanpatcher_config.json
Created Jun 2, 2018
Greyfalls conanpatcher_config.json
View conanpatcher_config.json
{
"GameID" : "440900",
"GameName" : "Conan Exiles",
"ModlistUrl" : "https://gist.github.com/allquixotic/faf7dfe35f72d499a0667471797e8e3b/raw",
"RsyncUrl" : "rsync://smcnam.me:21857/files",
"RsyncArgs" : "-z --progress --verbose --checksum --delete --recursive --force --log-file=rsync.log"
}
@allquixotic
allquixotic / !README.md
Created Jun 1, 2018
.NET 4.0 Conan Patcher using rsync
View !README.md
  • Should be compiled with .NET 4.0 Client Profile
  • Change path if you are rsyncing to another server
  • You need to run an rsync server to make this work. It should have all your mod files in a common place labeled "files" by the rsync daemon.
  • You can keep your server-side mod files up to date using steamcmd.
  • conan_steamcmd.txt is the list of commands sent to steamcmd
  • 440900 is currently? (or permanently I hope) the Conan Exiles steam app ID
  • The other numbers are the Steam workshop IDs of each mod
  • conan-rsync.sh is the daemon script. Set this to launch on system startup.
  • Run update.sh whenever a mod updates
  • These scripts assume steamcmd.sh exists and runs steamcmd in the current working directory and ~/conan is where you have all this stuff
@allquixotic
allquixotic / chatse-vs-matrix-feature-comparison.md
Last active May 22, 2018
chat.SE vs. Matrix feature comparison
View chatse-vs-matrix-feature-comparison.md
Factor Matrix Chat-SE
Client Platforms
  • Web (multiple, open source)
  • Android (native)
  • iOS (native)
  • Desktop (Win/Mac/Lin; multiple; open source)
  • Web/mobile web (proprietary)
  • Various hacks (lacking all features, and subject to random breakage when chat code changes)
Bot Support First-class - officially supported Tenuous; allowed but at the whims of SE, and hackish
Basic text formatting Standard Markdown Ghetto Chat Markdown (mostly the same for the very basics)
Strikethrough <del>strike</del> ---strike---
Avatars Upload one via client Gravatar or upload
Gateway Support Overall: Many exist & well supported
  • IRC
  • Gitter.im
  • Slack
No official; a few hackish ones that semi-work
Hosting model Decentralized Centralized
View Files-and-scratch-setup.md
  • ~/dev: Base dir where everything is.
  • ~/dev/SO-ChatBot: git clone https://github.com/allquixotic/SO-ChatBot
  • run-headless.config.json: drop in ~/dev/SO-ChatBot
  • run-headless.sh: drop in ~/dev

Steps:

  • Extract firefox latest .tar.bz2 (with "firefox" folder inside) to ~/dev/firefox. Firefox binary should be ~/dev/firefox/firefox/firefox (we have to say firefox three times to summon @Bob-refox) - known working with Firefox 59.0.3
  • Update geckodriver version (download from Github) and WebdriverIO in SO-ChatBot/package.json to use newer Firefox, as they are both fairly tightly coupled to the Firefox version
  • Extract geckodriver binary into ~/dev/firefox (known working with 0.20.1)
View blah.md

https://xkcd.com/386/

RE: https://superuser.com/a/1311054/144607

Thanks for the detailed information, but I want to address the fact this is "mis-information" and I do not agree with your stance on this topic. I disagree with the advice given to this individual.I am not > sure whether it is because you are an avid supporter of UEFI, or you