Skip to content

Instantly share code, notes, and snippets.

View PeterRao's full-sized avatar

Undefined PeterRao

  • 北京
View GitHub Profile
@WebReflection
WebReflection / Promise.js
Last active November 8, 2017 12:51
An attempt to make sense in cancelable Promises world
(function (Object, Original) {'use strict';
// (C) Andrea Giammarchi - WTFPL
if (Original._isPatch) return;
var
$then = Original.prototype.then,
$catch = Original.prototype.catch,
defineProperty = Object.defineProperty,
@duluca
duluca / npm-scripts-for-docker.md
Last active August 19, 2024 09:22
npm scripts for Docker

These are generic npm scripts that you can copy & paste into your package.json file as-is and get access to convinience scripts to manage your Docker images all in one place.

How to Use

npm i -g mrm-task-npm-docker
npx mrm npm-docker

Contribute

Here's the code repository https://github.com/expertly-simple/mrm-task-npm-docker

@rise-worlds
rise-worlds / For Mac 4.2.6 unlimited trial.md
Last active March 6, 2026 23:23 — forked from satish-setty/trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+ux BCompare : touch BCompare && chmod a+ux BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active March 7, 2026 03:09
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized