Skip to content

Instantly share code, notes, and snippets.

View Brianetta's full-sized avatar

Brian Ronald Brianetta

  • North East England
View GitHub Profile
@snobu
snobu / config.txt
Created March 29, 2018 09:21
Raspberry Pi 2560x1440@60Hz
hdmi_group=2
hdmi_mode=87
hdmi_cvt=2560 1440 60 3 0 0 1
max_framebuffer_width=2560
max_framebuffer_height=1440
hdmi_pixel_freq_limit=400000000
@freem
freem / twitter-killjunk.js
Last active December 28, 2022 22:22
disabling extraneous twitter features
/* NOTICE: THIS WAS MADE BACK IN 2017, OF COURSE IT'S NOT GOING TO WORK WELL NOW THAT TWITTER'S FUCKED THINGS UP */
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("twitter.com") {
[data-component-context="suggest_recap"],
[data-component-context="suggest_who_to_follow"],
[data-component-context="suggest_activity"],
[data-component-context="suggest_activity_tweet"],
[data-component-context="suggest_recycled_tweet_inline"],
[data-component-context="suggest_recycled_tweet"]{
@leahcim
leahcim / 25_pre-os-prober
Created March 3, 2014 19:13
In Ubuntu, /etc/grub.d/30_os-prober overrides grub menu style and timeout defined by the user in /etc/default/grub. Here is a workaround to save the menu style and timeout values before os-prober changes them, and to restore them afterwards. The two files need to be placed under /etc/grub.d and made executable. Finally, "sudo update-grub" should…
#! /bin/sh
set -e
# Save the $timeout and $timeout_style values set by /etc/grub.d/00_header
# before /etc/grub.d/30_os-prober messes them up.
cat << EOF
set timeout_bak=\${timeout}
set timeout_style_bak=\${timeout_style}
EOF
@taddev
taddev / nginx.conf
Last active July 27, 2023 10:49
Nginx reverse proxy to Exchange 2010/2013
server {
listen 80;
#listen [::]:80;
server_name mail.gwtest.us autodiscover.gwtest.us;
return 301 https://$host$request_uri;
}
server {
listen 443;
#listen [::]:443 ipv6only=on;
@eteq
eteq / issue2pr.py
Created February 6, 2012 08:23
Python function/script to convert github issues to pull requests
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Requires python >=2.6
"""
Tool to convert github issues to pull requests by attaching code. Uses the
github v3 API. Defaults assumed for the `astropy <http://www.astropy.org>`_
project.
"""
from __future__ import print_function
@winterdyne
winterdyne / PioneerModelNotes.md
Created November 29, 2011 22:06
Pioneer Model Infrastructure Notes

Pioneer Model Infrastructure Notes

Models are built out of meshes by a descriptor, format to be decided. The descriptor will be built by means of a GUI tool. The descriptor can be human readable and for efficiency compiled into pure data form. Where meshes are attached to existing bones, the hierarchy of bones in the attached mesh is attached (by its root) to the receiving bone.

Most meshes are based around bones. The bones are used as named locators within the model, attachment points, and manipulative 'handles'. All meshes are skin meshes. Where no bones are present, a root bone is generated for the mesh at the origin.

Meshes and models can be interrogated to retrieve a bone for direct manipulation or attachment of another mesh.

Pioneer meshes may expose animations. These are added to a list of animations the model can play as it is built. The play call cascades to all member meshes.