Skip to content

Instantly share code, notes, and snippets.

@miljan-aleksic
miljan-aleksic / Stream.php
Last active December 5, 2023 01:17
Cloudflare Streams - Signed URL php example
<?php
class Stream
{
/**
* Signs a url token for the stream reproduction
*
* @param string $uid The stream uid.
* @param array $key The key id and pem used for the signing.
* @param string $exp Expiration; a unix epoch timestamp after which the token will not be accepted.
@ruanbekker
ruanbekker / dnsmasq.conf
Last active March 20, 2024 18:38
Tinkering with Loki, Promtail, Grafana, Prometheus, Nginx and Dnsmasq
log-queries
log-facility=/var/log/dnsmasq.log
no-resolv
server=8.8.4.4
server=8.8.8.8
address=/router/10.1.1.1
address=/server/10.1.1.2
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active September 22, 2024 13:21
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@mmasashi
mmasashi / README.md
Last active May 1, 2021 10:38
Install Oracle instant client (sqlplus) v12.1 on MacOSX

Install Oracle instant client (sqlplus) on MacOSX

  1. Get Oracle instant client for MacOSX
  1. Unarchive downloaded zip files into a same directory
  • ex: $HOME/Downloads/instantclient_12_1
  1. Create install.sh and copy the following code and past it on that file.
@subfuzion
subfuzion / curl.md
Last active September 22, 2024 09:45
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

原文

警告:请务必读完本文!全篇读完!

无论新老用户,都有可能掉进陷阱。 下面我们列出了常见的问题,并解释如何解决他们。 在 Freenode IRC 的 #nginx 频道,我们经常看到这些问题。

[TOC]

@phoenixlzx
phoenixlzx / sniproxy.conf
Last active November 23, 2018 11:26
SNIProxy configuration
# sniproxy example configuration file
# lines that start with # are comments
# lines with only white space are ignored
user daemon
# PID file
pidfile /var/run/sniproxy.pid
resolver {
@suxiaogang
suxiaogang / V2EX.css
Last active June 22, 2022 02:55
V2EX.CSS
* {
font-family: PingFang SC, Helvetica, 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
}
.wwads-cn {
display: none;
}
body {
background-image: none;
@Kaiyuan
Kaiyuan / baiduyunDLink.php
Last active December 21, 2015 13:59
/?url=百度云下载页面
@kennyz
kennyz / kongwu_pi_tips.md
Last active December 25, 2021 12:41
kongwu pi tips

折腾Pi,解决疑难杂症最好还是去官网论坛

image http://www.raspberrypi.org/phpBB3/

支持Apple TimeMachine,实现Mac备份

在磁盘中创建备份目录 mkdir /media/usbdisk/mactimebak 推荐使用ext4分区(打开notime)

安装nettalk