Skip to content

Instantly share code, notes, and snippets.

View erdnussflips's full-sized avatar

Philipp S. erdnussflips

View GitHub Profile
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active April 29, 2025 08:58
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@pastleo
pastleo / GA-H170N-WIFI_NV970_DebianJessie.md
Last active March 9, 2018 22:16
Install drivers (firmware) for debian 8 (jessie) on GA-H170N-WIFI with Nvidia GTX970

Install drivers (firmware) for debian 8 (jessie) on GA-H170N-WIFI with Nvidia GTX970

After installing debian 8 (jessie) on my GA-H170N-WIFI with Nvidia GTX970, there are many hardwares not working properly. After digging for some time, I finally get everything working. So I am going to write this simple note to help people might need this in the future (for me as well).

Today is 2016/6/25, many things may be fixed in the future

Things not working properly after installation:

  • Audio chip Realtec ALC1150 built on GA-H170-WIFI
/**
* Simple routine that performs the following:
* 1. Configures the software UART on pins 2 and 4 (RX,TX)
* 2. Increments a 32-bit variable every 500ms
* 4. If it receives a '1' character from bluetooth, it toggles an LED
*
* @author Justin Bauer - mcuhq.com
* @date 4.24.2016
*/
@evantoli
evantoli / GitConfigHttpProxy.md
Last active April 29, 2025 14:42
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:

@gonzalezreal
gonzalezreal / ios-cell-registration-swift.md
Last active March 5, 2025 02:07
iOS Cell Registration & Reusing with Swift Protocol Extensions and Generics

iOS Cell Registration & Reusing with Swift Protocol Extensions and Generics

A common task when developing iOS apps is to register custom cell subclasses for both UITableView and UICollectionView. Well, that is if you don’t use Storyboards, of course.

Both UITableView and UICollectionView offer a similar API to register custom cell classes:

public func registerClass(cellClass: AnyClass?, forCellWithReuseIdentifier identifier: String)
public func registerNib(nib: UINib?, forCellWithReuseIdentifier identifier: String)
下载链接 http://www.charlesproxy.com/download/
Registered name:
Rajax Network Technology Co., Ltd.
License key:
2dcd56e6f3cbacaa7e
@angularsen
angularsen / MarginSetter.cs
Created January 17, 2015 12:19
WPF - Automatic horizontal or vertical spacing in StackPanel and other list like panels
using System.Windows;
using System.Windows.Controls;
using JetBrains.Annotations;
namespace Foo
{
public class MarginSetter
{
private static Thickness GetLastItemMargin(Panel obj)
{
@bfg100k
bfg100k / snapRAID_helper.sh
Last active February 23, 2025 19:56
Bash helper script to help with the automation of routine snapRAID tasks. Add it as a cron job to automate the routine tasks of running sync and scrub. Script will optionally send you email of status and issues encountered during the run.
#!/bin/bash
#######################################################################
# This is a helper script that keeps snapraid parity info in sync with
# your data and optionally verifies the parity info. Here's how it works:
# 1) It first calls diff to figure out if the parity info is out of sync.
# 2) If parity info is out of sync, AND the number of deleted files exceed
# X (configurable), it triggers an alert email and stops. (In case of
# accidental deletions, you have the opportunity to recover them from
# the existing parity info)
# 3) If partiy info is out of sync, AND the number of deleted files exceed X
@syshen
syshen / gist:c24d127e1adc2783e0e7
Last active March 3, 2025 15:02
Universal framework
######################
# Options
######################
REVEAL_ARCHIVE_IN_FINDER=false
FRAMEWORK_NAME="${PROJECT_NAME}"
SIMULATOR_LIBRARY_PATH="${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${FRAMEWORK_NAME}.framework"
@MaciejDobrowolski
MaciejDobrowolski / MultipleAxesLineChart.java
Last active February 17, 2024 20:20
This is try to implement multiple axes line chart in JavaFX. Being little cumbersome to use, it allows you to have a number of axes with series "binded" to single LineChart. The main restrictions are: All axes should have the same width (it is assumed to be 60px). Any additional axes will appear at the right side of LineChart. You should know wh…
package macko;
import javafx.beans.Observable;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.geometry.Pos;
import javafx.geometry.Side;
import javafx.scene.Cursor;
import javafx.scene.Node;
import javafx.scene.chart.Axis;