Skip to content

Instantly share code, notes, and snippets.

View rpavlik's full-sized avatar

Rylie Pavlik rpavlik

View GitHub Profile
@ageis
ageis / systemd_service_hardening.md
Last active September 30, 2026 16:58
Options for hardening systemd service units

security and hardening options for systemd service units

A common and reliable pattern in service unit files is thus:

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
@Robyer
Robyer / maven-publish-helper-usage.gradle
Last active February 20, 2025 14:37
Gradle script for publishing Android library with sources and javadoc to Maven repository using maven-publish plugin.
// You can use maven-publish-helper.gradle script without changes and even share it between multiple
// modules. Just place the maven-publish-helper.gradle file in the root directory of your project,
// then apply it at the bottom of your module's build.gradle file like this:
// ...content of module's build.gradle file...
apply from: '../maven-publish-helper.gradle'
publishing {
publications {
@jerome-pouiller
jerome-pouiller / cross-compile-ldd
Last active August 20, 2026 14:25
ldd drop-in replacement for cross-compilation toolchains.
#!/bin/bash
# ldd drop-in replacement for cross-compilation toolchains.
# Copyright (c) 2022 Jérôme Pouiller
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
@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 September 18, 2026 22:25
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 September 10, 2026 11:31
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