Skip to content

Instantly share code, notes, and snippets.

@starlinq
starlinq / nuc7refusestoboot.md
Last active September 6, 2024 13:25
How to fix Intel NUC that refuses to boot

Recently I have got a problem. My NUC7 refused to boot OS. The sympthom was exact as in this posting. The power button turned to solid amber/orange color (no blinking).

I've tried holding the power button for any length between 3 to 15 seconds, no changes.

Fortunately I solved the problem following an advice from Intel NUC community. The link to possible solutions is here.

I diassembled the NUC7 to reach an opposite side of the main board (with cooling fan and CMOS battery). I disconnected the battery for 15 minutes, and then connected it again. It solved the problem with power indicator and booting.

@sheeeng
sheeeng / keycool.md
Last active November 11, 2024 07:14
KEYCOOL keyboard.

KEYCOOL Keyboard

  • Compact 84 keys layout.
  • Cherry MX switches.
  • No backlight by default, but able to support DIY backlight.
  • Polybutylene terephthalate (PBT) key caps.
  • Detachable 1.5 meter USB-C cable.
  • NKRO refers to N-key rollover. A keyboard with N-key rollover can register as many keys as you can press at once without "dropping" any characters. This means that no matter how fast you type, your keyboard will keep up.
  • 750 grams.
@chrisoldwood
chrisoldwood / autounattend.xml
Created November 25, 2019 16:12
Example Packer configuration files for creating a Windows 10 VM on QEMU/KVM/libvirt.
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SetupUILanguage>
<UILanguage>en-US</UILanguage>
</SetupUILanguage>
<SystemLocale>en-US</SystemLocale>
@leandrofilipe
leandrofilipe / Raspberry Pi RAID NAS Server Setup.md
Last active November 13, 2024 13:21
Raspberry Pi RAID NAS Server Setup

※ Raspberry Pi RAID NAS Server Setup ※

Hardware:

  • Raspberry Pi 4 (4GB RAM)
  • Micro SD card 32GB
  • 2x Integral USB 3.1 flash drives 128GB

OS:

  • Raspbian Buster
@leopck
leopck / ubuntu-linux-setup-guide.txt
Last active September 10, 2019 10:44
This is a simple ubuntu linux guide to help setup GTX1070 and keyboard backlight on ASUS ROG GL502VS but not limited to ASUS only
1. Setup Nvidia driver
Go to Drivers > Install Tested Nvidia
2. After installing Nvidia the dither for the background of Ubuntu would be horrible. You'll need to go into Nvidia settings and enable Dither
NVIDIA X Server Settings > DFP-0-(LGD) > Change to Controls tab > "Dithering" > Enabled
3. Setup kb backlight
# 0 - 3 and 3 is the brightest
@cnlohr
cnlohr / gist:83719f445cc5c6614ae51270d683fdd4
Created December 4, 2016 03:57
HTC Vive Example Data Files
Controlled environment with LED, right on edge.
POST 0: 5 (55ab) - 48 fc 30 e1 ad da c4 39 f0
POST 0: 5 (55b1) - 48 fc 40 a7 b2 30 de db f9
POST 0: 5 (55b7) - 48 fc db 6d b7 18 46 82 1c
POST 0: 5 (55ba) - 48 fc 2a 34 bc 56 8d a2 f1
POST 0: 5 (55c0) - 48 fb fd f9 c0 7b 6b a8 0c
POST 0: 5 (55c3) - 48 fc 21 c0 c5 55 28 20 d3
POST 0: 5 (55c8) - 48 fc e3 85 ca 0f c6 8f 38
POST 0: 5 (55ce) - 48 fc c8 4b cf 70 e8 5c 50
@leopck
leopck / usb_config.h
Created October 3, 2016 17:48
usb_config.h for Joystick over espusb (Still work in progress; doesn't work)
#ifndef _USB_CONFIG_H
#define _USB_CONFIG_H
//Defines the number of endpoints for this device. (Always add one for EP0)
#define ENDPOINTS 5
//Defines a pin that is useful for debugging USB on a logic analyzer
//#define DEBUGPIN 2
//DPLUS and DMINUS are not actually used except for setting things up.
@leopck
leopck / usb_config.h
Last active October 4, 2016 07:15
usb_config.h for espusb low speed CDC (Still work in progress; doesn't work)
#ifndef _USB_CONFIG_H
#define _USB_CONFIG_H
//Defines the number of endpoints for this device. (Always add one for EP0)
#define ENDPOINTS 3
//Defines a pin that is useful for debugging USB on a logic analyzer
//#define DEBUGPIN 2
//DPLUS and DMINUS are not actually used except for setting things up.
@detomon
detomon / intrinsic.md
Last active March 6, 2024 17:57
SSE Intrinsic Cheat Sheet (SSE3)

SSE Intrinsic Cheat Sheet (SSE3)

Load and Store

__m128 _mm_load_ps (float * a)
{
@antimatter15
antimatter15 / algorithm.pseudo
Created February 16, 2012 03:22
Pseudocode to Graphviz Converter
Place phone call.
Home?
Leave message
Wait for callback
"Would you like to share a meal"
"Would you like to share a meal"
What is the response (A) ?
"Do you enjoy a hot beverage"
What is the response (B) ?
n = 0