Skip to content

Instantly share code, notes, and snippets.

@mietzen
mietzen / X710_OEM_crossflash.md
Last active April 18, 2024 03:13
X710 OEM crossflash

How to crossflash intel X710 OEM cards

Disclaimer

ONLY do this if you understand what this script does and when you are sure that this method is applicable to your card!!!

I'm not responsible for your doings! You are flashing the firmware of your ethernet card, in the worst case you endup with a soft- or even hardbricked card! Also this might void your warrenty.

Having said this, if you are uncertain if this will work for your card be sure to dump the ROM with a RPI, RPI Pico or 3.3v moded SPI-Flash Programmer:

@asukakenji
asukakenji / go-stdlib-interface-selected.md
Last active April 18, 2024 03:13
Go (Golang) Standard Library Interfaces (Selected)

Go (Golang) Standard Library Interfaces (Selected)

This is not an exhaustive list of all interfaces in Go's standard library. I only list those I think are important. Interfaces defined in frequently used packages (like io, fmt) are included. Interfaces that have significant importance are also included.

All of the following information is based on go version go1.8.3 darwin/amd64.

@marcorichetta
marcorichetta / postgresql-manjaro.md
Last active April 18, 2024 03:10
Install PostgreSQL on Manjaro and set it up for Django
@Francesco146
Francesco146 / Makefile
Last active April 18, 2024 03:04 — forked from Softwave/README.md
Fibonacci Program
cc = gcc
cc_standard = -std=c99
cc_optimization = -Ofast -march=native
cc_link = -lgmp
fib: fib.c
${cc} ${cc_standard} ${cc_optimization} $^ -o $@ ${cc_link}
.PHONY: clean
clean:
@mattatz
mattatz / ComponentUtil.cs
Last active April 18, 2024 03:04
CopyComponent by Script for Unity
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using UnityEngine;
namespace Utils
{
@fgdaniel
fgdaniel / custom-permalink-for-post-type.php
Last active April 18, 2024 03:02
Custom permalink from the root of the site
<?php
if (!defined('ABSPATH')) return; // Exit if accessed directly.
// Attention
// You must have ACF and ACF Extended installed, you need a group made with a slug field that will be called 'custom_permalink' and select on which post-type to appear. Example: https://i.imgur.com/aTNpHoU.png
// For custom permalink of an archive you have to activate the option here: https://i.imgur.com/SOvcbBj.png and in the group with the field 'custom_permalink' you have to select on which archive to appear, example: https://i.imgur.com/dKLfDEJ.png
// Example of an archive: https://i.imgur.com/owENTRB.png if you do not complete 'custom_permalink' then the default will be the '$default_slug' variable
// If you do not want custom url rewrite on an archive you can comment the line 'add_filter('post_type_archive_link', [$this, 'archive_link'], 10, 2);' and line '$rules['^' . $custom_url . '/?$'] = $path;'
// Replace 'example' with your post-type name
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active April 18, 2024 02:54
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

@frmz
frmz / Kustom5SecsDelayProvider.java
Last active April 18, 2024 02:54
Example content provider to fix on launcher side the "5 secs delay" security restriction Android has on the Home Button
import android.content.ContentProvider;
public class Kustom5SecsProvider extends ContentProvider {
/**
* Path used by Kustom to ask a 5 secs delay reset
*/
private final static String PATH_RESET_5SEC_DELAY = "reset5secs";
@Override
<?php
// Configuración de la cuenta de correo
$correo = 'xxxx@gmail.com';
$contrasena = '';
$host = '{imap.gmail.com:993/imap/ssl}INBOX';
// Conexión al servidor IMAP
$conexion = imap_open($host, $correo, $contrasena);