Skip to content

Instantly share code, notes, and snippets.

View martynjarvis's full-sized avatar

Martyn Jarvis martynjarvis

View GitHub Profile
@martynjarvis
martynjarvis / mouse-accel.txt
Created April 18, 2018 10:53
Disable mouse acceleration
# list devices
xinput list
# disable (assuming we're id=10)
xinput --set-prop 10 'libinput Accel Speed' -1.0
# confirm
xinput --list-props 10
@martynjarvis
martynjarvis / log.txt
Last active October 25, 2016 22:33
webdriver.io logs waitUntil
=======================================================================================
Selenium 2.0 / webdriver protocol bindings implementation with helper commands in nodejs.
For a complete list of commands, visit http://webdriver.io/api.html.
=======================================================================================
[23:32:54] COMMAND POST "/wd/hub/session"
[23:32:54] COMMAND POST "/wd/hub/session/f86cab50-9b02-11e6-b80b-af8da496e768/url"
[23:32:54] COMMAND POST "/wd/hub/session/f86cab50-9b02-11e6-b80b-af8da496e768/execute"

Keybase proof

I hereby claim:

  • I am martynjarvis on github.
  • I am mjarvis (https://keybase.io/mjarvis) on keybase.
  • I have a public key whose fingerprint is 1A9E BCA4 5F76 35DD 3B7D F10C DE11 13FF 265D 85A6

To claim this, I am signing this object:

@martynjarvis
martynjarvis / scipy-notebook-docker-windows.md
Last active January 8, 2017 00:51
Running jupyter-notebook sci-py stack with Docker on Windows
@martynjarvis
martynjarvis / rocket_league_xbox360_controller.md
Created October 6, 2015 22:07
Fixing xbox360 controller in Rocket League (wine)

Problem

Xbox 360 controller doesn't work with rocket league in wine.

Solution

Grab xbox360cemu.v.3.0.rar from 'somewhere' and unrar

unrar x xbox360cemu.v.3.0.rar 
@martynjarvis
martynjarvis / dnsapi.dll.md
Last active November 5, 2022 03:20
Fix dnsapi.dll error when running EVE online with Wine

Problem

Launcher would correctly load. However, the game would not launch from the launcher.

The following line was seen in output

err:module:import_dll Library DNSAPI.dll

Solution

@martynjarvis
martynjarvis / eve.md
Created June 20, 2015 16:51
Installing EVE Online on Arch Linux
@martynjarvis
martynjarvis / i8k.md
Created June 20, 2015 13:55
CPU fan idles at ~300 for 8 seconds then revs up to 3000 for two seconds

Problem:

Dell Studio XPS 8100 w/ i7 CPU. CPU fan idles at ~300 for 8 seconds then revs up to 3000 for two seconds. This then repeats. Happens most, but not all, boots. Seems to be caused by i8k and the bios fighting over control of the fan.

Solution was to simply blacklist the i8k kernel module. In /etc/modprobe.d/blacklist.conf:

blacklist i8k
@martynjarvis
martynjarvis / ATI_HDMI.md
Created June 20, 2015 13:03
ALSA: Change the default soundcard from ATI card with HDMI sound to installed soundcard

Problem.

System has a creative sound card and an ATI gfx card which has a sound card for audio over HDMI. ATI HDMI is the default sound card.

Create the file /etc/modprobe.d/50-alsa.conf with contents[1]

options snd-hda-intel index=1,0

Reboot.

#!/bin/sh
# Called by "git push" after it has checked the remote status,
# but before anything has been pushed.
#
# If this script exits with a non-zero status nothing will be pushed.
#
# Steps to install, from the root directory of your repo...
# 1. Copy the file into your repo at `.git/hooks/pre-push`
# 2. Set executable permissions, run `chmod +x .git/hooks/pre-push`