Skip to content

Instantly share code, notes, and snippets.

View rpavlik's full-sized avatar

Rylie Pavlik rpavlik

View GitHub Profile
@stevejenkins
stevejenkins / e4200-startup.sh
Last active March 29, 2018 10:03
Linksys E4200 v1 DD-WRT Startup Script
## Steve Jenkins' E4200 v1 Speed Optimizations
## Can be used on any Broadcom-based DD-WRT device
## PLEASE READ: http://wp.me/p1iGgP-DW
## Have fun, but use and tweak at your own risk :)
## Updated Feb 4, 2016
## INITIAL SLEEP COMMAND
## First command in script is ignored in some builds, so this is a throw-away
sleep 10
@rpavlik
rpavlik / third-party-related-hiding.txt
Last active January 20, 2017 18:16
AdblockPlus-compatible (used with uBlock Origin) filter list: Gets rid of the often vaguely-spammy third-party-powered "related links", at least as fully as possible
@rpavlik
rpavlik / boilerplate.ps1
Last active February 25, 2016 22:19
Boilerplate Send-To
# C++ Boilerplate Generator Send-To Scripts
# Maintained at https://gist.github.com/rpavlik/fbdf1347e52b64b833c5
# Main script
#
# Look at that gist for a bootstrapper script that installs or upgrades this script for you.
# Create shortcuts like
# %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -WindowStyle Hidden -NoProfile -ExecutionPolicy Bypass -File C:\Users\Ryan\Dropbox\configs\win-scripts\boilerplate.ps1
# to use this easily - or just use the bootstrapper/installer to make them for you.
@PurpleBooth
PurpleBooth / README-Template.md
Last active June 5, 2025 09:28
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@rpavlik
rpavlik / Eigen Metaprogramming.md
Last active October 23, 2015 18:35
Eigen metaprogramming notes

Eigen Metaprogramming Notes

Ryan Pavlik

Useful static constant members/enums:

  • ::IsRowMajor
  • ::IsVectorAtCompileTime
  • ::RowsAtCompileTime - note that in the case of dynamic sizes, this is weird (-1, iirc - specifically, Eigen::Dynamic)
  • ::ColsAtCompileTime - same as above
  • ::SizeAtCompileTime - works like picking the right one of the above for either arrangement of vectors, or full size (I assume?) for matrices.
@opalenic
opalenic / Makefile
Created September 1, 2015 23:05
Template Makefile project for STM8 SDCC builds
SDCC = sdcc
STM8FLASH = stm8flash
CHIP = STM8S003
CHIP_LCASE = $(shell echo $(CHIP) | tr '[:upper:]' '[:lower:]')
CFLAGS = -lstm8 -mstm8 -L./libsrc/build/ -lstm8s_periph.lib -I./libsrc/inc -D$(CHIP) -DUSE_STDPERIPH_DRIVER
MAIN_SOURCE = launcher

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
@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 *
@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 / 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"