Skip to content

Instantly share code, notes, and snippets.

View right-mouse's full-sized avatar
🏠
Working from home

Arvind Suresh right-mouse

🏠
Working from home
  • UHN
  • Toronto, Canada
View GitHub Profile
@arunoda
arunoda / gist:7790979
Last active February 16, 2024 14:05
Installing SSHPass

Installing SSHPASS

SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.

Installing on Ubuntu

apt-get install sshpass

Installing on OS X

/**
Simple(ish) example of discord gateway
This code will get to ready, and then remain connected with heartbeats
see https://discordapi.com/topics/gateway for more info
zlib compression is implemented as it will be required in gateway v7 (so get used to it now)
*/
const WebSocket = require('ws'); // npmjs.org/ws
const zlib = require('zlib-sync'); // npmjs.org/zlib-sync
const erlpack = require('erlpack'); // github.com/discordapp/erlpack
@boarnoah
boarnoah / Add URL to Google Search Results [GreaseMonkey]
Created February 6, 2020 14:28
Adds back green url to google search results
// ==UserScript==
// @name GoogleSearchShowURL
// @description Puts URL under search result in green (YK, like it used to)
// @version 1
// @grant none
// @include https://www.google.com/search*
// @run-at document-end
// ==/UserScript==
@MicahParks
MicahParks / go get private GitLab with group and subgroup (Golang modules).md
Last active January 12, 2024 05:43
go get private GitLab with group and subgroup (Golang modules)

Problem

The go command line tool needs to be able to fetch dependencies from your private GitLab, but authenticaiton is required.

This assumes your private GitLab is hosted at privategitlab.company.com.

Environment variables

The following environment variables are recommended:

export GO111MODULE=on
export GOPRIVATE=privategitlab.company.com
@boarnoah
boarnoah / VTOLVRPhysicalInputSettings.xml
Created April 2, 2022 16:41
These are bindings for Saitek X55 Hotas for https://github.com/solidshadow1126/VTOLVRPhysicalInput. Unfortunately the button and axis bindings as reported (by joy.cpl, or sites such as https://gamepad-tester.com/) differ from what DirectX via SharpDX (library used by this mod) understands. These bindings were created by hooking up the mod to a d…
<!--
These are bindings for Saitek X55 Hotas for https://github.com/solidshadow1126/VTOLVRPhysicalInput.
Unfortunately the button and axis bindings as reported (by joy.cpl, or sites such as https://gamepad-tester.com/)
differ from what DirectX via SharpDX (library used by this mod) understands.
These bindings were created by hooking up the mod to a debugger and trial and error.
Please consult the "map" to actual HOTAS keys (as reported by tools such as the config app for the HOTAS) below:
Stick:
Pitch and Roll are bound as expected