Skip to content

Instantly share code, notes, and snippets.

View JonnyHaystack's full-sized avatar
🤠

Jonathan Haylett JonnyHaystack

🤠
View GitHub Profile
@arturo182
arturo182 / bom2grouped_csv_jlcpcb.xsl
Last active September 18, 2024 19:49
A KiCad BOM script for generating JLCPCB PCBA-compatible files!
<!--XSL style sheet to convert EESCHEMA XML Partlist Format to grouped CSV BOM Format
Copyright (C) 2014, Wolf Walter.
Copyright (C) 2013, Stefan Helmert.
Copyright (C) 2018, Kicad developers.
Copyright (C) 2019, arturo182.
GPL v2.
Functionality:
Generation of JLCPCB PCBA compatible BOM
@maxme
maxme / raspberry-power-supply-check.sh
Last active August 5, 2023 06:45
Check your Raspberry pi power supply and USB cable
#!/bin/bash
# Before running this script, make sure you have sysbench installed:
# sudo apt-get install sysbench
#
# This script helps you check if your Raspberry pi is correctly powered.
# You can read more about Raspberry pi powering issues here: https://ownyourbits.com/2019/02/02/whats-wrong-with-the-raspberry-pi/
# If you're pi is correctly powered (stable power supply and quality cable), after running the script, you should get something like:
@GAS85
GAS85 / nextcloud_fail2ban.md
Last active April 8, 2024 20:51
Harden Nextcloud 17+ with Fail2Ban, GUI and WebDAV - Ubuntu 20.04

Fail2ban and Nextcloud

Prerequsits

  • Ubuntu 20.04
  • nextcloud, fail2ban and e.g. iptables are installed

Note

@nicklasfrahm
nicklasfrahm / .clang-format
Last active June 4, 2024 06:28
Opinionated .clang-format for JS boys coming from prettier and stumbling into C++
AccessModifierOffset: 2
AlignAfterOpenBracket: true
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignEscapedNewlines: Right
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: true
//This section is for user inputted data to make the code personalized to the particular controller
//shield drop
#define sw_notch_x_value -.7000
#define sw_notch_y_value -.7000
#define se_notch_x_value .7000
#define se_notch_y_value -.7000
//record southwest and southeast notch values
//to switch to dolphin mode hold dpad right for 5 seconds
@derofim
derofim / astylerc
Created August 27, 2016 13:11
Astyle code automatic formatting settings
# @file Astyle code automatic formatting settings
# @see http://astyle.sourceforge.net/astyle.html#_General_Information
#
# "One True Brace Style" uses linux brackets and adds brackets to unbracketed one line conditional statements.
# Opening brackets are broken from namespaces, classes, and function definitions.
# Brackets are attached to everything else including statements within a function, arrays, structs, and enums.
# In the following example brackets have been added to the "return 0;" statement. The option ??add?one?line?brackets can also be used with this style.
#
# int Foo(bool isBar)
@MightyPork
MightyPork / usb_hid_keys.h
Last active September 15, 2024 05:38
USB HID Keyboard scan codes
/**
* USB HID Keyboard scan codes as per USB spec 1.11
* plus some additional codes
*
* Created by MightyPork, 2016
* Public domain
*
* Adapted from:
* https://source.android.com/devices/input/keyboard-devices.html
*/
@s4wny
s4wny / dell display manager command line documentation
Created October 10, 2015 18:59
dell display manager command line documentation
===============================================
Dell Display Manager
===============================================
Command language
-----------------------------------
A rich and flexible command language is supported via the
command-line, and command-line arguments can be combined.
Where appropriate, a specific display can be targeted by
prefacing the command with the display number, e.g.,

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