Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
LogLevel warn
PageLogFormat
MaxLogSize 0
ErrorPolicy retry-job
# Allow remote access
Port 631
Listen /run/cups/cups.sock
# Share local printers on the local network.
Browsing On
BrowseLocalProtocols dnssd
FROM alpine:3.13
#RUN echo http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories
#RUN echo http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories
#RUN echo http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
RUN apk update; apk --update --no-cache add make cmake gcc g++ musl-dev binutils autoconf automake libtool pkgconfig check-dev file patch
# add my cloudsmith ppa
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
#curl -1sLf 'https://dl.cloudsmith.io/public/suntong/repo/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/cloudsmith.suntong.keyring.gpg
#ls -l /usr/share/keyrings/cloudsmith.suntong.keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/suntong/repo/setup.deb.sh' \
| sudo -E bash || true
sudo chmod o+r /etc/apt/sources.list.d/* /usr/share/keyrings/*
sudo apt -y update
@suntong
suntong / Get Ready For ESM.md
Last active August 21, 2024 05:15
Get Ready For ESM

Get Ready For ESM

Note,

The following was first published by Sindre Sorhus in Jan 13 2021 at https://blog.sindresorhus.com/get-ready-for-esm-aa53530b3f77 but have since disappeard from the Internet. Thus republishing it below --

JavaScript Modules will soon be a reality for Node.js package maintainers.

sudo apt install equivs

equivs-build <package_name>

@suntong
suntong / Go 语言圣经学习笔记.md
Last active March 22, 2022 20:51
Go 语言圣经学习笔记
/**
* Wechaty - WeChat Bot SDK for Personal Account, Powered by TypeScript, Docker, and 💖
* - https://github.com/chatie/wechaty
*/
const {
Wechaty,
ScanStatus,
log,
} = require('wechaty')
@suntong
suntong / nfpm.yaml
Last active December 9, 2021 17:15
# Name. (required)
name: foo
# Architecture. (required)
# This will expand any env var you set in the field, eg version: ${GOARCH}
# The architecture is specified using Go nomenclature (GOARCH) and translated
# to the platform specific equivalent. In order to manually set the architecture
# to a platform specific value, use deb_arch, rpm_arch and apk_arch.
arch: amd64
@suntong
suntong / nfpm.sh
Last active December 9, 2021 04:00
#!/bin/sh
set -e
# Code generated by godownloader on 2019-12-25T12:47:14Z. DO NOT EDIT.
#
usage() {
this=$1
cat <<EOF
$this: download go binaries for goreleaser/nfpm