Skip to content

Instantly share code, notes, and snippets.

@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active January 6, 2025 02:27
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@steveroush
steveroush / addGrid.gvpr
Created September 22, 2024 20:49
add a grid to any Graphviz graph
/**************************************************************************
add a grid to a graph in .dot format
**************************************************************************/
BEGIN{
int i, Indx, bcnt, LR;
string Type, Val, Gcolor[], Gstyle[], Gsize[], tmpstr;
string Hcolor, Vcolor, Hstyle, Vstyle, gridType, gridAlign;
float Hsize, Vsize, deltaX, deltaY, minX, minY, maxX, maxY;
@steveroush
steveroush / radialLayout.gvpr
Last active January 6, 2025 02:25
radialLayout.gvpr - a multi-centric radial layout engine for Graphviz
/********************************************************************************
RadialLayout - a radial layout engine for Graphviz
radialLayout.gvpr takes a super-subset of Graphviz input and creates an enhanced output with explicit positioning for all nodes. Positioning for each node is based either on new angle & distance attributes or on explicit "pos" value. This output can be fed into `neato -n` (see https://graphviz.org/faq/#FaqDotWithNodeCoords) to route all defined edges.
New node attributes:
- radialangle - angle from the origin line units:
- radians
- degrees
- clock-face hour posiyion (4oc)
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active January 6, 2025 02:22
crack activate Office on mac with license file
@adrianyy
adrianyy / drvscan.cpp
Created May 2, 2019 16:37
vulnerable driver scanner
#include <string>
#include <vector>
#include <fstream>
#include <iostream>
#include <filesystem>
#include <Windows.h>
#include <winternl.h>
static_assert( sizeof( void* ) == 8 );

1. 常用药物

感冒/发烧类

  • 布洛芬(退烧、止痛)
  • 对乙酰氨基酚(泰诺)

抗病毒/流感类

  • 奥司他韦(达菲,需处方)

消炎类

  • 阿莫西林(需处方)
  • 红霉素软膏(外用)
@kristianwiklund
kristianwiklund / printer.cfg
Last active January 6, 2025 02:20
Klipper config for ramps 1.4 with x-stepper on E1 and bltouch for a wanhao i3 v2.1
# This file contains common pin mappings for RAMPS (v1.3 and later)
# boards. RAMPS boards typically use a firmware compiled for the AVR
# atmega2560 (though other AVR chips are also possible).
# See the example.cfg file for a description of available parameters.
#[servo bltouch]
#pin: ar11
#maximum_servo_angle: 180
#minimum_pulse_width: 0.0006
@mihalyr
mihalyr / forensics-cheatsheet.md
Created January 29, 2020 14:15
Linux Compromise Assessment Command Cheat Sheet
NECの無線LANルータをブリッジモードで動作させるときに、管理画面に接続する方法をまとめる
(説明書が分かりづらいうえに誤解を招く表現になっている)
AtermWG1400HPで確認した。
用意するもの:
- Aterm本体
- 設定用の端末
- 有線LANを強く推奨(無線LANの設定をいじるので)