Skip to content

Instantly share code, notes, and snippets.

View allquixotic's full-sized avatar
🎯
Focusing

Sean McNamara allquixotic

🎯
Focusing
View GitHub Profile
@allquixotic
allquixotic / CMakeLists.txt
Created July 5, 2018 11:42
Wt FTBFS on Linux
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 June 2, 2018 01:57
Greyfalls 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 June 1, 2018 03:21
.NET 4.0 Conan Patcher using rsync
  • 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 02:34
chat.SE vs. Matrix feature comparison
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
  • ~/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)
@allquixotic
allquixotic / blah.md
Last active March 6, 2020 18:26
Duty Calls

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

@allquixotic
allquixotic / geekese.rb
Created March 2, 2018 04:45
Generate JourneymanGeek-ese
geex = [ { word: "hm", weight: 0.2 }, { word: "lol", weight: 0.65 }, { word: ";p", weight: 0.4 }, { word: "eh", weight: 0.15 }, { word: "ahh", weight: 0.3 } ]
total = geex.inject(0) {|sum, hash| sum + hash[:weight]}
curr = 0.0
geex.each do |word|
word[:range] = curr..curr+word[:weight]
curr += word[:weight]
end
rnd = Random.new
output = "@allquixotic "
startSentence = true
@allquixotic
allquixotic / bookmarklet.js
Last active February 2, 2017 22:59 — forked from appel/bookmarklet.js
Turbolinks.js bookmarklet (via CDNJS)
javascript:(function()%7Bfunction callback()%7BTurbolinks.start()%7Dvar s%3Ddocument.createElement("script")%3Bs.src%3D"https%3A%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Fturbolinks%2F5.0.0%2Fturbolinks.min.js"%3Bif(s.addEventListener)%7Bs.addEventListener("load"%2Ccallback%2Cfalse)%7Delse if(s.readyState)%7Bs.onreadystatechange%3Dcallback%7Ddocument.body.appendChild(s)%3B%7D)()
@allquixotic
allquixotic / foo.txt
Created December 5, 2016 01:50
Abandonware(?) Qt5/C++ attempt at speech to text for Teamspeak 3
Placeholder
@allquixotic
allquixotic / README.md
Last active December 4, 2016 02:49
quick QtAV test that fails
  • http://www.qtav.org -- download version 1.11.x (minor version doesn't matter)
  • Get Qt Open Source 5.6.x (minor version doesn't matter) and make sure the compiler matches the QtAV binaries if you use Windows
  • Find sdk_deploy.bat or sdk_deploy.sh in the QtAV binaries and run it after having installed Qt; this will put the QtAV binaries in the right place
  • You might still have to copy libavcodec, libavformat, libswscale, libswresample, libavutil, etc. from the QtAV binaries to the Qt libs directory where the other DLLs / .sos are
  • Run qmake or use Qt Creator GUI to run qmake and build
  • run test.exe

Result that I get is the test fails on the QVERIFY2 within test_convert.cpp saying the buffer is empty. I expect it to have data in it.