Skip to content

Instantly share code, notes, and snippets.

View someburner's full-sized avatar

Jeff Hufford someburner

View GitHub Profile
#!/bin/bash
# THIS GIST IS NO LONGER MAINTAINED!
# GO HERE FOR THE NEW REPO - https://github.com/ZakKemble/avr-gcc-build
# http://www.nongnu.org/avr-libc/user-manual/install_tools.html
# For optimum compile time this should generally be set to the number of CPU cores your machine has

Problem

In Arch Linux mkinitcpio -p linux

shows

Possibly missing firmware for module: aic94xx
 Possibly missing firmware for module: wd719x
@noidexe
noidexe / joycon-mappings.txt
Created July 31, 2017 00:25
Nintendo Switch Joycons as html5 bluetooth controller
Nintendo Switch Joycons use standard bluetooth technology and can be paired with a PC or phone by holding the power button between SL and SR while the console is off.
If your Switch can't find em after that just reattach them to the console and they'll pair up immediately.
Button scheme info obtained using http://html5gamepad.com and http://gamepadviewer.com
Joycon R: Wireless Gamepad (Vendor: 057e Product: 2007)
Switch, Generic, XBOX
SL, B4, LB
SR, B5, RB
@stueja
stueja / lxd-wayland-gui.md
Last active April 15, 2025 07:45
GUI application via Wayland from Ubuntu LXD container on Arch Linux host
@shafik
shafik / WhatIsStrictAliasingAndWhyDoWeCare.md
Last active May 15, 2025 03:57
What is Strict Aliasing and Why do we Care?

What is the Strict Aliasing Rule and Why do we care?

(OR Type Punning, Undefined Behavior and Alignment, Oh My!)

What is strict aliasing? First we will describe what is aliasing and then we can learn what being strict about it means.

In C and C++ aliasing has to do with what expression types we are allowed to access stored values through. In both C and C++ the standard specifies which expression types are allowed to alias which types. The compiler and optimizer are allowed to assume we follow the aliasing rules strictly, hence the term strict aliasing rule. If we attempt to access a value using a type not allowed it is classified as undefined behavior(UB). Once we have undefined behavior all bets are off, the results of our program are no longer reliable.

Unfortunately with strict aliasing violations, we will often obtain the results we expect, leaving the possibility the a future version of a compiler with a new optimization will break code we th

@JoelSpeed
JoelSpeed / configmap.yaml
Created July 6, 2018 10:22
Nginx caching of upstream OAuth2 Proxy authentication requests
---
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-ingress-controller
namespace: ingress
data:
http-snippet: |
proxy_cache_path /var/run/cache levels=1:2 keys_zone=authentication:10m inactive=3s;
# Connectiong by SSH from Android Termux to Desktop and vice-versa.md
# Copyright (c) 2019 Evandro Coan
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
@CollinChaffin
CollinChaffin / How_to_disable_ATT_DNS_Redirection.md
Created August 29, 2018 21:26
How to disable the very little-known AT&T setting that can appear to hijack your home DNS lookups and redirect to 104.239.207.44

How to disable the very little-known AT&T setting that can appear to hijack your home DNS lookups and redirect to 104.239.207.44

Issue

DNS queries on home network suddenly resolving hosts to 104.239.207.44.

Symptoms

You will see SPORADIC mis-resolutions of EVERYTHING to that 104.239.207.44 address if their crappy router happens to hear your PC's DHCP request - EVEN IF ANOTHER DHCP SERVER ON THE NETWORK assigns the ultimate address.

@rumansaleem
rumansaleem / clean-up-arch-linux.md
Created May 28, 2019 08:51
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
@artynet
artynet / blacklist-nouveau-alt.conf
Last active February 9, 2024 19:59
setting to blacklist nouveau drivers
Hi guys! I've made this tutorial cuz my Driver Manager wasn't working well, hope it helps:
1 Obviously starting with an update and upgrade:
sudo apt-get update && sudo apt-get upgrade
2 Then remove all Nvidia packages, skip this if your OS is fresh installed:
sudo apt-get remove nvidia* && sudo apt autoremove