Skip to content

Instantly share code, notes, and snippets.

@chengguizi
chengguizi / _rpi_common_problems_on_windows.md
Last active February 2, 2025 14:04
SSH into Raspberry Pi on Windows using "raspberrypi.local"

SSH into Raspberry Pi on Windows using "raspberrypi.local"

General Steps

  • Download the latest Raspbian OS image, and burn it into a micro SD card using Etcher.
  • Create a file "ssh" in the boot partition in your micro SD card, without extension! ( How to check file extensions? )
  • Insert the freshly prepared micro SD card into Raspberry Pi.
  • Power on Raspberry Pi.
  • Plug in Ethernet cable, connecting the Raspberry to the Windows machine. Verify the lights of Ethernet ports are blinking.
  • Open a cmd window, and verify ping raspberrypi.local returns "Reply from ..."
  • Open your favourite ssh terminal (e.g. MobaXterm) and type ssh [email protected], password is raspberry.
@chengguizi
chengguizi / functions.php
Created August 24, 2018 17:46
Enable Excerpt on Pages (WordPress)
add_action( 'init', 'my_add_excerpts_to_pages' );
function my_add_excerpts_to_pages() {
add_post_type_support( 'page', 'excerpt' );
}
@chengguizi
chengguizi / install_wordpress_LEMP.md
Created August 23, 2018 04:30
Install Nginx HTTP and reverse proxy server

Install Nginx HTTP and reverse proxy server

sudo apt install nginx

Check: Now by accessing the server IP, the "Welcome to nginx!" should show up!

(For more info on configuration file, visit this ,this,this)

Install Database