Skip to content

Instantly share code, notes, and snippets.

View dudeitssm's full-sized avatar
🐧
Dood!

dudeitssm

🐧
Dood!
  • NY, USA
View GitHub Profile
@ArthurHeymans
ArthurHeymans / coreboot_x60.md
Last active April 4, 2021 08:37
How to flash coreboot properly on Thinkpad X60

How to flash coreboot to the thinkpad x60 the proper way

-> https://blog.aheymans.xyz/old-how-to-flash-coreboot-to-the-thinkpad-x60-the-proper-way/ is more up to date

What is so special about the x60 when running vendor bios?

Vendor BIOS write protects its bootblock, which means the lowest 64K of the flash can't be modified

This is a problem since the first code that runs on the CPU comes from there and if we ever want to run coreboot the cpu must start with coreboot code. This write protection is set in the PBR (protect bios range) registers on the southbridge, there is currently no known way to change them back once they are locked by setting the SPI Configuration Lock-Down bit.

@braian87b
braian87b / dumb-ap-wired-link.sh
Last active May 4, 2025 20:09
How to setup a Dumb AP, Wired backbone for OpenWRT / LEDE
@Ircama
Ircama / Digispark.md
Last active May 25, 2025 20:57
Configuring the Digispark ATtiny85 board for Arduino IDE and upgrading the bootloader

Configuring the Digispark ATTINY85 board for Arduino IDE and upgrading the bootloader

Warning: this document has to be updated by pointing to https://github.com/SpenceKonde/ATTinyCore

This note describes the configuration of an ATtiny85 based microcontroller development board named Digispark and similar to the Arduino line. It is available in many online marketplaces for roughly 1 dollar (e.g., Ebay, Amazon, AliExpress) and is shipped fully assembled, including a V-USB interface (a software-only implementation of a low-speed USB device for Atmel's AVR microcontrollers). Coding is similar to Arduino: it uses the familiar Arduino IDE and is already provided with a ready-to-use bootloader (

@mozbugbox
mozbugbox / gist:2f278b324e31a6f042377c367fb61098
Last active January 27, 2023 04:47
v-com (vcom) value for Panasonic LCD/LED TV in service mode

The meaing of the v-com (vcom) value for Panasonic LCD/LED TV under the service mode.

Wonder why the LED TV screen flicking like crazy and look washed out in white noise? Particularly when you enter the service mode for the first time?

With a wrong v-com value, the TV screen will look washed out with continue flickering.

When the vcom value was wrong, you cannot even see the service menu text clearly. The screen just flick like crazy. When you getting close to the correct value of the vcom, the text on the service menu will became clearer and clearer with a relatively steady background.

In one case, a vcom value around 0x60 gives better result.

@kking124
kking124 / configure-iis.ps1
Last active March 29, 2025 11:12
Configuration Script to Secure Public IIS Server
# configure-iis.ps1
# Version: 1.2
# Author: kking124 (https://github.com/kking124)
#
# Copyright 2016, 2017
#
# License: MIT
# .SYNOPSIS
# Tries to configure IIS as a minimal, secure installation on Windows Server 2008 and later
#
<#
.SYNOPSIS
MSI-mode utility
.DESCRIPTION
Main purpose of this script is turning on MSI-mode for all PCI devices in bulk. Script offers four modes which can be selected through following command line arguments:
'on' - turning MSI-mode on;
'off' - turning MSI-mode off;
'reg' - printing reg-file for backup purposes (to save text to reg-file use standard redirection or piplining to comandlet Out-File);
- started without command line argument script prints devices capable for MSI-mode.
@Sulter
Sulter / readme
Last active January 14, 2023 17:00
screen+zmodem sending data
lrzsz package needed (debian) which include sz and rz
Sending from remote -> local
* screen into remote
* ctrl-a : zmodem catch
* 'sz filename' on the remote (in terminal)
Sending from local -> remote
* screen into remote
* ctrl-a : zmodem catch
@w4ilun
w4ilun / ProMicroTXRXLEDRemap
Last active January 24, 2025 03:38
Using the TX/RX LEDs as extra pins on the Pro Micro
The TX/RX LEDs on the Pro Micro uses the pins PD5 and PB0.
You can remove the resistors and use these pins, but you will need to first redefine the TXLED/RXLED pins.
In OS X:
/Users/USERNAME/Library/Arduino15/packages/SparkFun/hardware/avr/1.1.3/variants/promicro/pins_arduino.h
Change these values:
#define TX_RX_LED_INIT DDRD |= (1<<5), DDRB |= (1<<0)
#define TXLED0 PORTD |= (1<<5)
#define TXLED1 PORTD &= ~(1<<5)
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active May 28, 2025 08:20
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.