Skip to content

Instantly share code, notes, and snippets.

View mstraughan86's full-sized avatar
🔥
Motivated for change.

Michael Straughan mstraughan86

🔥
Motivated for change.
View GitHub Profile
@mstraughan86
mstraughan86 / Troubleshooting.md
Last active July 24, 2020 22:08
Pixma Pro-100

Print stops halfway:

Potential reasons:

  • Print head overheating: use quiet mode
  • Print Spooling settings running out of memory: Adjust spooling settings
  • Computer running out of memory when spooling: Close more programs or get more RAM

Things I Did:

  • Change spool setting to Start printing after last page is spooled
  • Turn on quiet mode
https://www.hanselman.com/blog/RunningBBSDoorGamesOnWindows10WithGameSrvDOSBoxPlusTelnetFunWithWSL.aspx
https://www.gamesrv.ca/downloads/
https://www.gamesrv.ca/docs/
https://web.archive.org/web/20140904222043/http://www.gamesrv.ca/docs/
Linux
Linux will take a bit of extra work, due to the fact that some extra software is required, some of which must be compiled. Here's what I did on my Ubuntu Server 11.04 x86 VPS:
Install the prerequisites: sudo apt-get install build-essential dosemu libglib2.0-dev libmono-system-data2.0-cil mono-gmcs mono-runtime pkg-config
Extract dosutils.tgz, which has some useful old DOS utilities that may come in handy in DOSEmu: cd dosutils then tar zxvf dosutils.tgz then cd ..
@mstraughan86
mstraughan86 / witcher3
Created January 20, 2019 08:09
game.configs
https://www.nexusmods.com/witcher3/mods/484?tab=description
https://www.nexusmods.com/witcher3/mods/1931/?tab=posts
https://www.nexusmods.com/witcher3/mods/1996?
https://www.nexusmods.com/witcher3/mods/3
https://www.nexusmods.com/witcher3/mods/943
https://www.nexusmods.com/witcher3/mods/38/?tab=files
@mstraughan86
mstraughan86 / bankDriver.js
Created April 7, 2018 04:54
Experiments with Nightmare.js and Configuration-Driven-Development
const Nightmare = require('nightmare');
let webDriver;
const nightmareConfiguration = {
show: false,
openDevTools: false
};
const promiseSeries_withCombinedResults = (array, initial, ...args) => {
const combinedResults = [];
@mstraughan86
mstraughan86 / Computer Science.txt
Last active March 22, 2021 07:15
Extra Curricular Education
---------------
MOOCS:
---------------
edX:
Software Construction: Object Oriented Design
Data Science Essentials
Applied Machine Learning
Machine Learning for Data Science and Analytics
Artificial Intelligence
Robotics
XML-XSLT: How to check if a string is null or empty?
https://stackoverflow.com/questions/825831/check-if-a-string-is-null-or-empty-in-xslt/825924#825924
@mstraughan86
mstraughan86 / Slack.md
Last active October 8, 2017 00:12
Slack Playground

@see: slackapi/hubot-slack#105 (comment)

I needed this functionality too, so I ended up working around this by writing a standalone PHP script 
to automatically invite the bot into every channel. If I get time I'll convert it into node.js.

It essentially just uses the Web API to pull down a list of all channels:

https://slack.com/api/channels.list?token=MY_TOKEN
This gives me the Slack ID for every channel (ie "A12B45C789"), as well as which Users are members of that Channel.
@mstraughan86
mstraughan86 / Arguments.md
Last active January 18, 2018 04:38
Javascript Utility Belt

Want to handle arguments in vanilla JS? Here is how!

const args = process.argv.slice(2).reduce((accumulator, current) => {
  let [key, value = true] = current.split('=');
  accumulator[key] = value;
  return accumulator;
}, {})

console.log(args);
@mstraughan86
mstraughan86 / 00-about-search-api-examples.md
Created October 2, 2017 05:12 — forked from jasonrudolph/00-about-search-api-examples.md
5 entertaining things you can find with the GitHub Search API
@mstraughan86
mstraughan86 / 0_reuse_code.js
Created September 11, 2017 08:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console