Skip to content

Instantly share code, notes, and snippets.

View rpavlik's full-sized avatar

Rylie Pavlik rpavlik

View GitHub Profile
@jerome-pouiller
jerome-pouiller / cross-compile-ldd
Last active February 26, 2024 03:03
ldd drop-in replacement for cross-compilation toolchains.
#!/bin/bash
# ldd drop-in replacement for cross-compilation toolchains.
# This file is a slightly modified version of xldd.in from
# crosstool-ng 1.22.0
# In order to use it, copy it in same directory than other
# toolchain binaries and rename it with same tuple.
# (i.e. /opt/arm-sysmic-linux-gnueabihf/bin/arm-sysmic-linux-gnueabihf-ldd)
@rpavlik
rpavlik / GetRenderManager.cmd
Last active February 23, 2022 11:53
Batch script for keeping an up-to-date local copy of the latest 32 and 64-bit continuous builds of OSVR RenderManager and OSVR Core
@echo off
rem By Ryan Pavlik, Sensics, Inc. <http://sensics.com/osvr>
rem Copyright 2015-2016 Sensics, Inc.
rem SPDX-License-Identifier: Apache-2.0
rem Put this in a directory of its own, preferably. It will create one file and two subdirectories.
rem Doesn't hurt to run it more often than there are builds: it won't re-download (though
rem it will harmlessly re-extract)
rem Requires that you have wget and 7za (the command line version of 7z) in your path.
@c-kick
c-kick / hnl.mobileConsole.js
Last active January 14, 2024 18:24
NOTE: V2 Released! Seehttps://github.com/c-kick/mobileConsole hnl.mobileConsole.js - extends JavaScript's console to display a visual console inside the webpage. Very usefull for debugging JS on mobile devices with no real console. Info and demo: http://www.hnldesign.nl/work/code/mobileconsole-javascript-console-for-mobile-devices/
/*!
*
* NEW VERSION AT https://github.com/c-kick/mobileConsole
*
* hnl.mobileConsole - javascript mobile console - v1.3.8 - 04/01/2021
* Adds html console to webpage. Especially useful for debugging JS on mobile devices.
* Supports 'log', 'trace', 'info', 'warn', 'error', 'group', 'groupEnd', 'table', 'assert', 'clear'
* Inspired by code by Jakub Fiala (https://gist.github.com/jakubfiala/8fe3461ab6508f46003d)
* Licensed under the MIT license
*
@rpavlik
rpavlik / ComputeGenerator.groovy
Last active July 13, 2016 19:21
Compute the CMake generator for Windows (for use in Jenkins, for instance) based on some orthogonal environment variables.
/* ComputeGenerator.groovy by Ryan Pavlik - maintained at https://gist.github.com/rpavlik/3ad0e691e5d51606bd67 */
/* Uncomment the following for testing purposes only */
/*
VS='12'
BIT='64'
*/
/* should give result [GENERATOR:Visual Studio 12 2013 Win64] */
@rpavlik
rpavlik / building-osvr-on-debian-jessie.sh
Last active November 21, 2016 12:24
Building OSVR on debian jessie
# Git - for retrieving source
sudo apt-get install git gitk git-core
# CMake - for configuring the source, ccmake is a command-line "gui" provided by cmake-curses-gui, while cmake-gui is provided by cmake-qt-gui
# Pulls in a lot of basic build deps with it if you don't have them.
sudo apt-get install cmake cmake-curses-gui cmake-qt-gui
# Installs the standard compilers, etc.
sudo apt-get install build-essential
@evantoli
evantoli / GitConfigHttpProxy.md
Last active April 26, 2024 17:21
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@rpavlik
rpavlik / 99-sensics-usb.rules
Created November 23, 2015 19:42
Sensics Linux UDEV rules
# udev file for USB interfaces on Sensics-based HMDs and emulated devices
###
# Section to permit access to HID streaming
###
# OSVR HDK (via HIDAPI/libusb)
SUBSYSTEM=="usb", ATTRS{idVendor}=="1532", ATTRS{idProduct}=="0b00", MODE="0660", GROUP="plugdev"
@Grimthorr
Grimthorr / pending-updates.ps1
Created November 9, 2015 16:03
PowerShell script to list the pending/missing Windows updates.
$UpdateSession = New-Object -ComObject Microsoft.Update.Session
$UpdateSearcher = $UpdateSession.CreateupdateSearcher()
$Updates = @($UpdateSearcher.Search("IsHidden=0 and IsInstalled=0").Updates)
$Updates | Select-Object Title
@rpavlik
rpavlik / README.md
Last active October 23, 2015 18:34
Data structures in meta and typepack

(Based in part on https://ericniebler.github.io/meta/index.html, designed to be a printable quick reference.)

Quick reference examples

Using the C++14 standard library.

  • Trait: std::add_pointer
    • is a "template" (has template parameters) - not a type unless evaluated.
    • Evaluate: typename std::add_pointer<int>::type (aka typepack::t_<std::add_pointer<int>>) is int *
  • Alias (alias template): std::add_pointer_t
    • is a "template" (has template parameters) - not a type unless evaluated.
  • application: std::add_pointer_t is int *

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a