Skip to content

Instantly share code, notes, and snippets.

View leomikezee's full-sized avatar

Maizi Liao leomikezee

View GitHub Profile
@leomikezee
leomikezee / ip.sh
Created May 12, 2021 08:10
get ip address
ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}'
@leomikezee
leomikezee / nippon.js
Created February 27, 2019 14:54
Take screenshots of NIPPON COLORS website as wallpaper
const puppeteer = require("puppeteer");
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.setExtraHTTPHeaders({ "Accept-Language": "en, en-US" });
// adjust resolution according to your monitors
await page.setViewport({ width: 1920, height: 1200 });
await page.goto("http://nipponcolors.com/");
// there are totally 250 different colors